Skip to content

Instantly share code, notes, and snippets.

@takayukioda
Created September 4, 2019 08:39
Show Gist options
  • Select an option

  • Save takayukioda/c6cc20ac30a3ac108dae0d15a6df9d1a to your computer and use it in GitHub Desktop.

Select an option

Save takayukioda/c6cc20ac30a3ac108dae0d15a6df9d1a to your computer and use it in GitHub Desktop.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowAllActions",
"Effect": "Allow",
"Action": "*",
"Resource": "*"
}
]
}
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowAlmostAllActions",
"Effect": "Allow",
"NotAction": [
"iam:*",
"aws-portal:*"
],
"Resource": "*"
},
{
"Sid": "AllowIAMViewAccess",
"Effect": "Allow",
"Action": [
"iam:GenerateServiceLastAccessedDetails",
"iam:Get*",
"iam:List*"
],
"Resource": "*"
},
{
"Sid": "AllowCreateAccessKey",
"Effect": "Allow",
"Action": [
"iam:CreateAccessKey"
],
"Resource": [
"arn:aws:iam::*:user/${aws:username}"
]
}
{
"Sid": "DenyBillingAccess",
"Effect": "Deny",
"Action": [
"aws-portal:*Account",
"aws-portal:ModifyBilling",
"aws-portal:*PaymentMethods"
],
"Resource": "*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment