Skip to content

Commit d08e994

Browse files
authored
Merge pull request #21 from aws-samples/update-role
Update role ct_configrecorder_override_consumer.py
2 parents 5672ec9 + ca07961 commit d08e994

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ct_configrecorder_override_consumer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def assume_role(account_id, role='AWSControlTowerExecution'):
8484

8585
# ControlTower created configuration recorder with name "aws-controltower-BaselineConfigRecorder" and we will update just that
8686
try:
87-
role_arn = 'arn:aws:iam::' + account_id + ':role/aws-controltower-ConfigRecorderRole'
87+
role_arn = 'arn:aws:iam::' + account_id + ':role/aws-service-role/config.amazonaws.com/AWSServiceRoleForConfig'
8888

8989
CONFIG_RECORDER_DAILY_RESOURCE_STRING = os.getenv('CONFIG_RECORDER_OVERRIDE_DAILY_RESOURCE_LIST')
9090
CONFIG_RECORDER_OVERRIDE_DAILY_RESOURCE_LIST = CONFIG_RECORDER_DAILY_RESOURCE_STRING.split(

0 commit comments

Comments
 (0)