debian-forge-composer/templates/packer/variables.pkr.hcl
Ondřej Budai 72de1b3bbe packer: don't save the AMIs on PRs
This should save us a ton of resources as we don't use AMIs from PRs.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2022-03-11 09:06:43 +01:00

39 lines
882 B
HCL

# You need to specify all the following variables (except for region)
# when running `packer build`
# AWS account configuration.
variable "aws_access_key" {
type = string
default = ""
}
variable "aws_secret_key" {
type = string
default = ""
}
variable "region" {
type = string
default = "us-east-1"
}
# Automatically set by environment variables
variable "composer_commit" { type = string }
# Controls whether AMIs should be created. If you just need to test whether the image can be built, leave it as true
variable "skip_create_ami" {
type = bool
default = true
}
# 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" {
type = string
default = ""
}