1
0
mirror of https://github.com/ebosas/microservices.git synced 2025-08-24 20:08:55 +02:00

Build S3 trigger [BuildAll]

This commit is contained in:
ebosas
2021-11-12 11:46:59 +02:00
parent 30b56001a9
commit 3ef2c2ae1a
2 changed files with 12 additions and 2 deletions

View File

@@ -14,5 +14,5 @@ phases:
- docker push $REPO_URI:latest
- docker push $REPO_URI:$TAG
- printf '[{"name":"%s","imageUri":"%s"}]' $SERVICE $REPO_URI:$TAG > imagedefinitions.json
- zip $SERVICE.zip imagedefinitions.json
- aws s3 cp imagedefinitions.json s3://$ARTIFACT_BUCKET/imagedefinitions/$SERVICE.zip
- zip -r $SERVICE.zip imagedefinitions.json
- aws s3 cp $SERVICE.zip s3://$ARTIFACT_BUCKET/imagedefinitions/$SERVICE.zip

View File

@@ -396,6 +396,16 @@ Resources:
- ecr:ListTagsForResource
- ecr:DescribeImageScanFindings
Resource: "*"
# Allow codepipeline to deploy to ECS
- Effect: Allow
Action:
- ecs:DescribeServices
- ecs:DescribeTaskDefinition
- ecs:DescribeTasks
- ecs:ListTasks
- ecs:RegisterTaskDefinition
- ecs:UpdateService
Resource: "*"
# This role is passed by CodePipeline to CloudFormation to use
# when setting up resources in the pipeline