Skip to content

Instantly share code, notes, and snippets.

@robbytaylor
Created September 23, 2019 11:31
Show Gist options
  • Save robbytaylor/b0a9aca3ec57d5513c3635566ce9311e to your computer and use it in GitHub Desktop.
Save robbytaylor/b0a9aca3ec57d5513c3635566ce9311e to your computer and use it in GitHub Desktop.
AWS SCP restrict an action except to a single role
{
"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