diff --git a/infra/template.yaml b/infra/template.yaml index 0a75d4f..bf6e487 100644 --- a/infra/template.yaml +++ b/infra/template.yaml @@ -327,6 +327,10 @@ Resources: Principal: Service: ecs-tasks.amazonaws.com Action: sts:AssumeRole + - Effect: Allow + Principal: + AWS: !Sub arn:aws:iam::${AWS::AccountId}:role/CaddyRole-${StageName} + Action: sts:AssumeRole ManagedPolicyArns: - arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy Policies: