Skip to content

Instantly share code, notes, and snippets.

@badri
Created March 30, 2026 01:12
Show Gist options
  • Select an option

  • Save badri/51f528f5a115819bc64a40e96370335b to your computer and use it in GitHub Desktop.

Select an option

Save badri/51f528f5a115819bc64a40e96370335b to your computer and use it in GitHub Desktop.
IAM profile for creating workload infra
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "EC2Full",
"Effect": "Allow",
"Action": [
"ec2:RunInstances",
"ec2:TerminateInstances",
"ec2:StartInstances",
"ec2:StopInstances",
"ec2:Describe*",
"ec2:CreateTags",
"ec2:DeleteTags",
"ec2:CreateSecurityGroup",
"ec2:DeleteSecurityGroup",
"ec2:AuthorizeSecurityGroupIngress",
"ec2:AuthorizeSecurityGroupEgress",
"ec2:RevokeSecurityGroupIngress",
"ec2:RevokeSecurityGroupEgress",
"ec2:CreateKeyPair",
"ec2:ImportKeyPair",
"ec2:DeleteKeyPair",
"ec2:CreateVolume",
"ec2:DeleteVolume",
"ec2:AttachVolume",
"ec2:DetachVolume"
],
"Resource": "*"
},
{
"Sid": "ValidateCredentials",
"Effect": "Allow",
"Action": [
"sts:GetCallerIdentity"
],
"Resource": "*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment