Created
September 23, 2019 11:31
-
-
Save robbytaylor/b0a9aca3ec57d5513c3635566ce9311e to your computer and use it in GitHub Desktop.
AWS SCP restrict an action except to a single role
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": [ | |
{ | |
"Effect": "Deny", | |
"Action": [ | |
"s3:PutObject" | |
], | |
"Resource": "*", | |
"Condition": { | |
"ArnNotLike": { | |
"aws:PrincipalARN": "arn:aws:iam::123456789012:role/DeploymentPipeline" | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment