Skip to content

Instantly share code, notes, and snippets.

@kusw3
Created October 3, 2019 07:45
Show Gist options
  • Save kusw3/12b2e7f8624eefb115c9ec418054651a to your computer and use it in GitHub Desktop.
Save kusw3/12b2e7f8624eefb115c9ec418054651a to your computer and use it in GitHub Desktop.
Customer: "A part from readonly access to the AWS account, I'll need to be able to create ELB with HTTPS ports using my org user"
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": "elasticloadbalancing:*",
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "iam:CreateServiceLinkedRole",
"Resource": "arn:aws:iam::*:role/aws-service-role/elasticloadbalancing.amazonaws.com/AWSServiceRoleForElasticLoadBalancing*",
"Condition": {
"StringLike": {
"iam:AWSServiceName": "elasticloadbalancing.amazonaws.com"
}
}
},
{
"Effect": "Allow",
"Action": [
"iam:AttachRolePolicy",
"iam:PutRolePolicy"
],
"Resource": "arn:aws:iam::*:role/aws-service-role/elasticloadbalancing.amazonaws.com/AWSServiceRoleForElasticLoadBalancing*"
},
{
"Effect": "Allow",
"Action": [
"acm:ImportCertificate"
],
"Resource": "*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment