Optional AWS Profile & Cross-Account Access

Allows encoding of the AWS profile to use in the build profile, and enabling the built AMI with a list of AWS accounts that are allowed access.
This commit is contained in:
Jake Buchholz 2020-06-13 17:24:33 -07:00 committed by Mike Crute
parent 925e62ceef
commit 001db8ef99
2 changed files with 5 additions and 1 deletions

View File

@ -4,7 +4,8 @@
builders = [
{
type = "amazon-ebssurrogate"
type = "amazon-ebssurrogate"
profile = "{{user `aws_profile`}}"
### Builder Instance Details
@ -60,6 +61,7 @@ builders = [
}
ena_support = "true"
sriov_support = "true"
ami_users = "{{user `aws_users`}}"
}
]

View File

@ -26,6 +26,8 @@ build_ami_owner = "137112412989"
build_ami_latest = "true"
# AMI build/deploy
aws_profile = null # AWS profile to build AMI
aws_accounts = null # comma-separated AWS accounts allowed to launch AMI
ami_name_prefix = "alpine-ami-"
ami_name_suffix = ""
ami_desc_prefix = "Alpine Linux "