From 49b9ce705a8f23b47749b77de9b708c04570eb1d Mon Sep 17 00:00:00 2001 From: arnol377 Date: Mon, 16 Dec 2024 18:44:55 -0500 Subject: [PATCH] Add data source for AWS SSM parameter in morpheus.tf --- morpheus.tf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/morpheus.tf b/morpheus.tf index 0ca3b24..3ec5e02 100644 --- a/morpheus.tf +++ b/morpheus.tf @@ -1,3 +1,6 @@ +data aws_ssm_parameter "rhel9_ami" { + name = "/enterprise/ami/rhel9" +} module "morpheus" { source = "HappyPathway/image-pipeline/aws" @@ -35,7 +38,7 @@ module "morpheus" { state = local.state_config vpc_config = local.vpc_config ami = { - source_ami = "ami-0e6191a82a929381a" # x86_64 compatible AMI - RHEL9 quick start image + source_ami = data.aws_ssm_parameter.rhel9_ami.value instance_type = "t3.micro" # x86_64 compatible instance type } }