packer: remove the ami_id variable
We want to build multiple images at once so they have to be defined elsewhere. Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
parent
5ecbfbad9e
commit
e45578d3b0
3 changed files with 4 additions and 7 deletions
|
|
@ -9,9 +9,6 @@ variable "region" {
|
|||
default = "us-east-1"
|
||||
}
|
||||
|
||||
# Base image
|
||||
variable "ami_id" { type = string }
|
||||
|
||||
# Automatically set by environment variables in GitHub Actions.
|
||||
variable "composer_commit" { type = string }
|
||||
variable "osbuild_commit" { type = string }
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ source "amazon-ebs" "image_builder" {
|
|||
region = var.region
|
||||
|
||||
# Use a static RHEL 8.5 Cloud Access Image.
|
||||
source_ami = "${var.ami_id}"
|
||||
source_ami = "ami-06f1e6f8b3457ae7c"
|
||||
|
||||
# Remove previous image before making the new one.
|
||||
force_deregister = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue