Created
March 25, 2020 13:46
-
-
Save danielr18/040826a3ad3c27590ee81d22da07c096 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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "ServerlessPolicy", | |
"Effect": "Allow", | |
"Action": [ | |
"iam:GetRole", | |
"iam:PassRole", | |
"iam:CreateRole", | |
"iam:DeleteRole", | |
"iam:CreateServiceLinkedRole", | |
"iam:DetachRolePolicy", | |
"iam:PutRolePolicy", | |
"iam:AttachRolePolicy", | |
"iam:DeleteRolePolicy", | |
"iam:GetPolicy", | |
"iam:GetPolicyVersion", | |
"apigateway:*", | |
"cloudformation:*", | |
"lambda:*", | |
"s3:*", | |
"autoscaling:Describe*", | |
"cloudwatch:*", | |
"logs:*", | |
"sns:*", | |
"sqs:*" | |
], | |
"Resource": "*" | |
}, | |
{ | |
"Sid": "AllowViewAccountInfo", | |
"Effect": "Allow", | |
"Action": [ | |
"iam:GetAccountPasswordPolicy", | |
"iam:GetAccountSummary", | |
"iam:ListUsers" | |
], | |
"Resource": "*" | |
}, | |
{ | |
"Sid": "AllowManageOwnPasswords", | |
"Effect": "Allow", | |
"Action": [ | |
"iam:ChangePassword", | |
"iam:GetUser", | |
"iam:CreateLoginProfile", | |
"iam:DeleteLoginProfile", | |
"iam:GetLoginProfile", | |
"iam:UpdateLoginProfile" | |
], | |
"Resource": "arn:aws:iam::*:user/${aws:username}" | |
}, | |
{ | |
"Sid": "AllowManageOwnAccessKeys", | |
"Effect": "Allow", | |
"Action": [ | |
"iam:CreateAccessKey", | |
"iam:DeleteAccessKey", | |
"iam:ListAccessKeys", | |
"iam:UpdateAccessKey" | |
], | |
"Resource": "arn:aws:iam::*:user/${aws:username}" | |
}, | |
{ | |
"Sid": "AllowManageOwnSSHPublicKeys", | |
"Effect": "Allow", | |
"Action": [ | |
"iam:DeleteSSHPublicKey", | |
"iam:GetSSHPublicKey", | |
"iam:ListSSHPublicKeys", | |
"iam:UpdateSSHPublicKey", | |
"iam:UploadSSHPublicKey" | |
], | |
"Resource": "arn:aws:iam::*:user/${aws:username}" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment