Learn how to create an IAM user with the correct permissions for Focal Deploy
Navigate to the AWS Management Console and sign in with your AWS account.
Open IAM Consolefocal-deployNote: Make sure to select "Programmatic access" - this creates an access key for API calls, which Focal Deploy needs.
You have two options for attaching permissions:
Quick setup for testing. Grants broad permissions.
AmazonEC2FullAccessAmazonS3FullAccessAmazonRoute53FullAccessMore secure - grants only necessary permissions.
FocalDeployPolicy{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ec2:Describe*",
"ec2:RunInstances",
"ec2:TerminateInstances",
"ec2:StartInstances",
"ec2:StopInstances",
"ec2:RebootInstances",
"ec2:CreateSecurityGroup",
"ec2:DeleteSecurityGroup",
"ec2:AuthorizeSecurityGroupIngress",
"ec2:AuthorizeSecurityGroupEgress",
"ec2:RevokeSecurityGroupIngress",
"ec2:RevokeSecurityGroupEgress",
"ec2:CreateKeyPair",
"ec2:DeleteKeyPair",
"ec2:CreateTags",
"ec2:DeleteTags",
"ec2:AllocateAddress",
"ec2:AssociateAddress",
"ec2:DisassociateAddress",
"ec2:ReleaseAddress"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"s3:CreateBucket",
"s3:DeleteBucket",
"s3:ListBucket",
"s3:GetBucketLocation",
"s3:PutObject",
"s3:GetObject",
"s3:DeleteObject",
"s3:PutBucketPolicy",
"s3:GetBucketPolicy",
"s3:PutBucketWebsite",
"s3:PutBucketPublicAccessBlock"
],
"Resource": [
"arn:aws:s3:::*",
"arn:aws:s3:::*/*"
]
},
{
"Effect": "Allow",
"Action": [
"route53:CreateHostedZone",
"route53:DeleteHostedZone",
"route53:ListHostedZones",
"route53:GetHostedZone",
"route53:ChangeResourceRecordSets",
"route53:ListResourceRecordSets",
"route53:GetChange"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"rds:CreateDBInstance",
"rds:DeleteDBInstance",
"rds:DescribeDBInstances",
"rds:ModifyDBInstance",
"rds:CreateDBSubnetGroup",
"rds:DeleteDBSubnetGroup"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"cloudfront:CreateDistribution",
"cloudfront:DeleteDistribution",
"cloudfront:GetDistribution",
"cloudfront:ListDistributions",
"cloudfront:UpdateDistribution"
],
"Resource": "*"
}
]
}Environment: ProductionCRITICAL: This is your only chance to see the secret access key!
AWS will never show it again. Save it securely now.
You'll see two values:
AKIAIOSFODNN7EXAMPLEwJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEYSave these credentials:
Production AWSus-east-1Success! Your AWS credentials are now securely stored and encrypted. You can start deploying!
Need help? Contact support or join our Discord community