Skip to content

Commit

Permalink
random fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sg committed Jun 25, 2024
1 parent 0ca82d3 commit b65c6ec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Manually Deploy a CDK stack with OIDC
name: Deploy a CDK stack to dev env with OIDC

on:
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*.js
.*.js
!jest.config.js
*.d.ts
node_modules
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ These instructions will get you a copy of this project up and running in your ow
- Create a repo for this project.
- Setup Github environments and secrets in the repo you just created. Use SECRETS, not variables.
- Add repositories you want to grant deployment permissions to the `github-actions-role-stack.ts` file.
- Bootstrap the project with cdk deploy --all.
- Bootstrap the project with cdk deploy --all for every aws account you plan to deploy to.
- Configure the actions workflow to suit your needs.
- Add new projects to the `github-actions-role-stack.ts` file as needed.

### Setup Github Environments and Secrets

1. Create an environment in your Github repository settings.
- Name the environment based on where it is deploying. (ie prod, dev, staging, etc based on your needs.)
- Name the environment based on where it is deploying. (ie prod, dev, staging, etc. based on your needs.)
- The default is the main branch is prod.
2. Create secret variables in each Github environment you are deploying too. USE SECRETS, NOT variables.
- `AWS_ACCOUNT_ID`: The AWS account ID where the CDK application will be deployed. (Your AWS account number)
- `AWS_REGION`: The AWS region where the CDK application will be deployed. (us-east-1)
- `ENVIRONMENT`: The name of the deployment environment. Default is main branch is prod. (ie prod, dev, staging, etc)
- `ENVIRONMENT`: The name of the deployment environment. Default is main branch is prod. (ie prod, dev, staging, etc.)

### Add Repositories you want to grant deployment permissions to

Expand Down

0 comments on commit b65c6ec

Please sign in to comment.