https://github.com/sambaiz/aws-cdk-circleci-sample
cdk diff & deploy by CI
https://github.com/sambaiz/aws-cdk-circleci-sample
aws aws-cdk circleci infrastructure-as-code
Last synced: about 1 month ago
JSON representation
cdk diff & deploy by CI
- Host: GitHub
- URL: https://github.com/sambaiz/aws-cdk-circleci-sample
- Owner: sambaiz
- Created: 2019-05-19T09:39:38.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T03:08:54.000Z (over 2 years ago)
- Last Synced: 2025-03-17T14:22:10.258Z (about 1 month ago)
- Topics: aws, aws-cdk, circleci, infrastructure-as-code
- Language: TypeScript
- Homepage: https://www.sambaiz.net/article/223/
- Size: 816 KB
- Stars: 8
- Watchers: 2
- Forks: 5
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# aws-cdk-circleci-sample
## Features
- When create a PR, post results of `cdk diff` on there.

- When the branch is merged, run `cdk deploy`.
- Notify the result on Slack.

## Flow
1. push codes on a branch
2. create PR to the develop branch
3. post env=stg diff by CI
4. review and merge
5. create PR from develop to master
6. deploy with env=stg and post env=prd diff by CI
7. review and merge
8. deploy with env=prd by CI## Settings
1. upload `cfn/iam-ci-user-stack.yaml` from AWS CloudFormation Console and get AccessKey/Secret from Outputs (Optional)
2. Set AWS Permissions and following environment variables to CircleCI- ASSUME_ROLE_ARN
- GITHUB_TOKEN
- SLACK_WEBHOOK## Article
[CDK/CircleCI/GitHubでAWSリソース管理リポジトリを作る - sambaiz-net](https://www.sambaiz.net/article/223/)