I'm trying to combine ECR and Elastic Beanstalk with the following CodePipeline setup:
buildspec.yml
which Builds a docker image and pushes it to ECR repositoryNote that Step 2 doesn't contain any artifacts, it merely builds the new image from the source code by using docker build -t <my-image> .
and pushes it to ECR with the latest tag.
My Questions are:
Dockerrun.aws.json
which point to the ECR image file every time?For anyone looking for the answer: include only the Dockerrun.aws.json
file in artifacts of buildspec.yml
and point it's image
field to the ECR image.