Manage your Amazon Web Services integration securely.
~/.aws directory. You can specify a specific AWS Profile. If left blank, it defaults to your environment securely.
ec2:RunInstances, ec2:TerminateInstances (to launch the build VM)ec2:CreateImage, ec2:CreateTags, ec2:Describe* (for Golden AMI)ssm:SendCommand, ssm:GetCommandInvocation (to run Ansible hardening securely)iam:PassRole (required if instance profile is used){
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ec2:RunInstances",
"ec2:TerminateInstances",
"ec2:DescribeInstances",
"ec2:DescribeImages",
"ec2:DescribeSecurityGroups",
"ec2:DescribeSubnets",
"ec2:DescribeVpcs",
"ec2:DescribeVolumes",
"ec2:DescribeSnapshots",
"ec2:CreateTags",
"ec2:CreateImage",
"ec2:CreateSnapshot",
"ec2:ModifyImageAttribute",
"ssm:SendCommand",
"ssm:GetCommandInvocation",
"ssm:ListCommandInvocations",
"ssm:DescribeInstanceInformation"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "iam:PassRole",
"Resource": "arn:aws:iam::*:role/Stratum*InstanceRole",
"Condition": {
"StringEquals": {
"iam:PassedToService": "ec2.amazonaws.com"
}
}
}
]
}
Download a template, create a CloudFormation stack using Upload a template file, then paste the stack outputs below.