Last active
March 25, 2023 20:53
-
-
Save spasam/99717728968625700beda0fe42bf70d5 to your computer and use it in GitHub Desktop.
Prevent deletion of AWS Config aggregation authorizations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "GRCONFIGAGGREGATIONAUTHORIZATIONPOLICY", | |
"Effect": "Deny", | |
"Action": [ | |
"config:DeleteAggregationAuthorization" | |
], | |
"Resource": [ | |
"arn:aws:config:*:*:aggregation-authorization*" | |
], | |
"Condition": { | |
"ArnNotLike": { | |
"aws:PrincipalArn": "arn:aws:iam::*:role/AWSControlTowerExecution" | |
}, | |
"StringLike": { | |
"aws:ResourceTag/aws-control-tower": "managed-by-control-tower" | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment