Example of a gitlab CI pipeline that deploys to AWS SAM?
Hi, I've started working on my first gitlab CI pipeline (coming from AWS Codepipeline) and am struggling a bit.
My pipeline needs to: Build a docker image and push it to a repository (ECR), compile typescript code and deploy it with AWS SAM, and build
To get started, I attempted to modify this code to work with my own repository; however, I realized after a little while that it does not actually work. The Gitlab user is named "gitlab-examples" so I mistakenly took it to be an official repo, but I don't think that it is.
Does anybody know of a public repo with an example of a working Gitlab CI + AWS Cloudformation/SAM deployment?
Posted Nov 22, 2019, 3:41 AM UTC
I’ve done push to ECR then refresh ECS. It’s a case of getting the awscli right.
Build image Log in to AWS Tag image Push to ECR Refresh ECS
Push to ECR had its own IAM ID.
Just replying to reformat so I can read it, Reddit markdown...
Build image
Log in to AWS
Tag image
Push to ECR
Refresh ECS
About right.