tools/appsre-build-worker-packer: Add image_users variable
packer will share the ami with those users.
This commit is contained in:
parent
2420504e1d
commit
3c729be3c5
3 changed files with 15 additions and 0 deletions
|
|
@ -37,6 +37,9 @@ source "amazon-ebs" "image_builder" {
|
|||
# Set a name for the resulting AMI.
|
||||
ami_name = "${var.image_name}"
|
||||
|
||||
# Share the resulting AMI with accounts
|
||||
ami_users = "${var.image_users}"
|
||||
|
||||
# Network configuration for the instance building our image.
|
||||
associate_public_ip_address = true
|
||||
ssh_interface = "public_ip"
|
||||
|
|
|
|||
|
|
@ -15,6 +15,11 @@ variable "osbuild_commit" { type = string }
|
|||
|
||||
# The name of the resulting AMI and the underlying EBS snapshot
|
||||
variable "image_name" { type = string }
|
||||
# A list of users to share the AMI with
|
||||
variable "image_users" {
|
||||
type = list(string)
|
||||
default = []
|
||||
}
|
||||
|
||||
# Skip ansible tags
|
||||
variable "ansible_skip_tags" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue