Skip to content

Instantly share code, notes, and snippets.

@s0enke
Created October 30, 2019 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save s0enke/7ae62b7b63899c23ac9258fb9b732859 to your computer and use it in GitHub Desktop.
Save s0enke/7ae62b7b63899c23ac9258fb9b732859 to your computer and use it in GitHub Desktop.
{
"Sid": "ProtectBackups",
"Condition": {
"ArnNotLike": {
"aws:PrincipalARN": "arn:aws:iam::*:role/AWSControlTowerExecution"
}
},
"Action": [
"backup:Delete*",
"backup:Update*"
],
"Resource": [
"arn:aws:backup:*:*:backup-plan:*",
"arn:aws:backup:*:*:backup-vault:*"
],
"Effect": "Deny"
},
{
"Sid": "ProtectRecoveryPoint",
"Condition": {
"ArnNotLike": {
"aws:PrincipalARN": "arn:aws:iam::*:role/BackupRole"
}
},
"Action": [
"backup:DeleteRecoveryPoint"
],
"Resource": [
"*"
],
"Effect": "Deny"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment