From 9a501af5a332c36872500023d60db3766bf90934 Mon Sep 17 00:00:00 2001 From: Clay Cheng Date: Wed, 1 Mar 2023 19:14:13 +0000 Subject: [PATCH] add execution role to task definition Signed-off-by: Clay Cheng --- integ/test_init/integ_test/integ_test/integ_test_stack.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/integ/test_init/integ_test/integ_test/integ_test_stack.py b/integ/test_init/integ_test/integ_test/integ_test_stack.py index 2d8ebd772..57f919208 100644 --- a/integ/test_init/integ_test/integ_test/integ_test_stack.py +++ b/integ/test_init/integ_test/integ_test/integ_test_stack.py @@ -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") )