Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neilkuan/ecs-fargate-cicd-blue-green-demo
ecs-fargate-cicd-blue-green-demo
https://github.com/neilkuan/ecs-fargate-cicd-blue-green-demo
Last synced: 9 days ago
JSON representation
ecs-fargate-cicd-blue-green-demo
- Host: GitHub
- URL: https://github.com/neilkuan/ecs-fargate-cicd-blue-green-demo
- Owner: neilkuan
- License: apache-2.0
- Created: 2021-09-23T14:04:06.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-27T00:32:26.000Z (10 days ago)
- Last Synced: 2024-10-27T16:42:06.154Z (10 days ago)
- Language: TypeScript
- Size: 4.25 MB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ecs-fargate-cicd-blue-green-demo
### To Install
```bash
yarn
```###
```bash
cdk diff
```### Create ECR Repository
```bash
aws ecr create-repository --repository-name nginxaws ecr get-login-password --region ap-northeast-1 | docker login --username AWS --password-stdin xxxxxxx.dkr.ecr.xxxxx.amazonaws.com
docker tag nginx:latest xxxxxxx.dkr.ecr.xxxxx.amazonaws.com/nginx:latest
docker push xxxxxxx.dkr.ecr.xxxxx.amazonaws.com/nginx:latest
```### To Deploy
```bash
cdk deploy
```### clone `CodeCommit` repo.
```bash
git clone ssh://git-codecommit.xxxx.amazonaws.com/v1/repos/ecsCicdDemocp ecsCicdDemo-template/* ecsCicdDemo/
cd ecsCicdDemo/
# !!!! edit , , , to your env CfnOutput
# and then commit deploy to code commit repo.git add .
git commit -m "release 0.0.1"
git push
```### To Destroy
```bash
cdk destroy
```