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:
Ondřej Budai 2022-03-08 15:52:16 +01:00 committed by Ondřej Budai
parent 5ecbfbad9e
commit e45578d3b0
3 changed files with 4 additions and 7 deletions

View file

@ -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 }

View file

@ -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