Skip to content

Commit ca07961

Browse files
authored
Update role ct_configrecorder_override_consumer.py
changed role to service linked role AWSServiceRoleForConfig
1 parent 5672ec9 commit ca07961

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ct_configrecorder_override_consumer.py

Lines changed: 1 addition & 1 deletion
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)