Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Commit af841c5

Browse files
committed
Allow update service
1 parent dd2ea04 commit af841c5

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ jobs:
5252
image: sync-svc-cube:${{ github.sha }}
5353

5454
- name: Deploy cube-api task definition
55-
uses: aws-actions/amazon-ecs-deploy-task-definition@df9643053eda01f169e64a0e60233aacca83799a
55+
uses: aws-actions/amazon-ecs-deploy-task-definition@v2.3.0
5656
with:
5757
task-definition: ${{ steps.cube-api-task-def.outputs.task-definition }}
5858
service: cube_api
5959
cluster: production
6060
wait-for-service-stability: true
6161

6262
- name: Deploy cube-refresh-worker task definition
63-
uses: aws-actions/amazon-ecs-deploy-task-definition@df9643053eda01f169e64a0e60233aacca83799a
63+
uses: aws-actions/amazon-ecs-deploy-task-definition@v2.3.0
6464
with:
6565
task-definition: ${{ steps.cube-refresh-worker-task-def.outputs.task-definition }}
6666
service: cube_refresh_worker

terraform/iam.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,13 @@ resource "aws_iam_policy" "sync_svc_cube_ecr_policy" {
5353
"Resource" : aws_ecr_repository.sync_svc_cube_repo.arn
5454
},
5555
{
56-
"Sid" : "AllowTaskDefinitionUpdates",
56+
"Sid" : "AllowEcsServiceDeploys",
5757
"Effect" : "Allow",
5858
"Action" : [
5959
"ecs:DescribeTaskDefinition",
6060
"ecs:RegisterTaskDefinition",
61-
"ecs:DescribeServices"
61+
"ecs:DescribeServices",
62+
"ecs:UpdateService"
6263
],
6364
"Resource" : "*"
6465
},

0 commit comments

Comments
 (0)