Skip to content

Instantly share code, notes, and snippets.

@neverendingqs
Last active August 17, 2018 01:35
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 neverendingqs/bfe61375ba5dc3a96b56ad6add75de14 to your computer and use it in GitHub Desktop.
Save neverendingqs/bfe61375ba5dc3a96b56ad6add75de14 to your computer and use it in GitHub Desktop.
2017/09/24/aws-lambda-notprincipal - example.json
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DenyObjectDeleteWithWhitelist",
"Effect": "Deny",
"NotPrincipal": {
"AWS": [
"arn:aws:iam::123456789012:role/SuperRoleOne",
"arn:aws:iam::123456789012:role/SuperRoleTwo"
]
},
"Action": "s3:DeleteObject",
"Resource": "arn:aws:s3:::mybucket/*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment