Skip to content

Instantly share code, notes, and snippets.

@adrianocanofre
Last active Jul 13, 2021
Embed
What would you like to do?
Policy to Homer project
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"ec2:AuthorizeSecurityGroupIngress",
"ec2:DescribeInstances",
"elasticloadbalancing:RegisterTargets",
"elasticloadbalancing:DeleteLoadBalancer",
"elasticloadbalancing:DescribeLoadBalancers",
"ec2:RevokeSecurityGroupEgress",
"ec2:DescribeVolumes",
"ec2:DescribeAccountAttributes",
"ec2:DescribeRouteTables",
"elasticloadbalancing:ModifyTargetGroupAttributes",
"ec2:CreateTags",
"s3:ListJobs",
"elasticloadbalancing:CreateTargetGroup",
"ec2:RunInstances",
"elasticloadbalancing:DeregisterTargets",
"ec2:DescribeInstanceCreditSpecifications",
"ec2:RevokeSecurityGroupIngress",
"elasticloadbalancing:DescribeLoadBalancerAttributes",
"elasticloadbalancing:DescribeTargetGroupAttributes",
"ec2:DescribeSubnets",
"elasticloadbalancing:ModifyLoadBalancerAttributes",
"ec2:DeleteTags",
"ec2:RunScheduledInstances",
"ec2:DescribeInstanceAttribute",
"ec2:DescribeVpcAttribute",
"elasticloadbalancing:CreateListener",
"ec2:DescribeNetworkInterfaces",
"ec2:CreateDefaultSubnet",
"elasticloadbalancing:DescribeListeners",
"ec2:CreateSecurityGroup",
"ec2:ModifyInstanceAttribute",
"ec2:AuthorizeSecurityGroupEgress",
"ec2:TerminateInstances",
"elasticloadbalancing:CreateLoadBalancer",
"ec2:DescribeTags",
"elasticloadbalancing:DescribeTags",
"elasticloadbalancing:DeleteTargetGroup",
"ec2:DescribeSecurityGroups",
"ec2:DescribeImages",
"s3:ListStorageLensConfigurations",
"s3:ListAllMyBuckets",
"ec2:DescribeSecurityGroupReferences",
"ec2:DescribeVpcs",
"ec2:DeleteSecurityGroup",
"elasticloadbalancing:DescribeTargetHealth",
"elasticloadbalancing:SetSecurityGroups",
"elasticloadbalancing:DescribeTargetGroups",
"ec2:DescribeStaleSecurityGroups",
"elasticloadbalancing:ModifyTargetGroup",
"elasticloadbalancing:DeleteListener"
],
"Resource": "*"
},
{
"Sid": "s3Bucket",
"Effect": "Allow",
"Action": [
"s3:ListBucket",
"s3:GetObject",
"s3:PutObject"
],
"Resource": "arn:aws:s3:::*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment