Skip to content

Commit

Permalink
Added permission to run ecs task to build policy (#32)
Browse files Browse the repository at this point in the history
* Added permission to run ecs task to build policy

Running one-off tasks during build process requires `ecs:RunTask` action. Ability to run such tasks is required for example when applying database migrations. This schema shows how it could be done with CircleCI: https://cdn-images-1.medium.com/max/800/1*eCVCawlDjC_nwIUYdLNxfQ.png

* Update main.tf

* Fixed lint problems
  • Loading branch information
LukGerman authored and aknysh committed Jan 17, 2019
1 parent 92cc9af commit 0db486b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ data "aws_iam_policy_document" "permissions" {
"ecr:InitiateLayerUpload",
"ecr:PutImage",
"ecr:UploadLayerPart",
"ecs:RunTask",
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents",
Expand Down

0 comments on commit 0db486b

Please sign in to comment.