Skip to content

Commit

Permalink
workaround issue causing inconsistant planswith ssm param object (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
automationforthepeople authored Apr 6, 2023
1 parent 25ef085 commit 4b8b91a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ resource "aws_autoscaling_group" "app" {

resource "aws_launch_configuration" "app" {
name_prefix = "tf-lc-${data.aws_vpc.vpc.tags["Name"]}-${var.app}-"
image_id = aws_ssm_parameter.ami_id_param.insecure_value
image_id = var.ami_id != "" ? var.ami_id : nonsensitive(data.aws_ssm_parameter.ami_id_param[0].value)
instance_type = var.instance_type
iam_instance_profile = var.iam_instance_profile
key_name = var.key_name
Expand Down

0 comments on commit 4b8b91a

Please sign in to comment.