Created
October 30, 2019 09:28
-
-
Save s0enke/7ae62b7b63899c23ac9258fb9b732859 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{ | |
"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