Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 months 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T03:08:54.000Z (about 2 years ago)
- Last Synced: 2024-10-11T20:13:35.532Z (4 months ago)
- Topics: aws, aws-cdk, circleci, infrastructure-as-code
- Language: TypeScript
- Homepage: https://www.sambaiz.net/article/223/
- Size: 816 KB
- Stars: 8
- Watchers: 3
- 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.
![Post results](./images/pr.png)
- When the branch is merged, run `cdk deploy`.
- Notify the result on Slack.
![Notify on Slack](./images/slack.png)
## 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/)