Skip to content

Commit

Permalink
Add data source for AWS SSM parameter in morpheus.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
arnol377 committed Dec 16, 2024
1 parent 0e23827 commit 49b9ce7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion morpheus.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
data aws_ssm_parameter "rhel9_ami" {
name = "/enterprise/ami/rhel9"
}

module "morpheus" {
source = "HappyPathway/image-pipeline/aws"
Expand Down Expand Up @@ -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
}
}

0 comments on commit 49b9ce7

Please sign in to comment.