Skip to content

Instantly share code, notes, and snippets.

@spasam
Last active March 25, 2023 20:53
Show Gist options
  • Save spasam/99717728968625700beda0fe42bf70d5 to your computer and use it in GitHub Desktop.
Save spasam/99717728968625700beda0fe42bf70d5 to your computer and use it in GitHub Desktop.
Prevent deletion of AWS Config aggregation authorizations
{
"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