Skip to content

Commit

Permalink
add execution role to task definition
Browse files Browse the repository at this point in the history
Signed-off-by: Clay Cheng <[email protected]>
  • Loading branch information
Claych authored and PettitWesley committed Mar 3, 2023
1 parent c103ac5 commit 9a501af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions integ/test_init/integ_test/integ_test/integ_test_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
},
)

task_definition.execution_role.add_managed_policy(
iam.ManagedPolicy.from_managed_policy_arn(self, 'ecsExecutionRole',
managed_policy_arn='arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy')
)

task_definition.task_role.add_managed_policy(
iam.ManagedPolicy.from_aws_managed_policy_name("AmazonS3FullAccess")
)
Expand Down

0 comments on commit 9a501af

Please sign in to comment.