Skip to content

Commit

Permalink
Merge pull request #8368 from ministryofjustice/ifs-ami-selection
Browse files Browse the repository at this point in the history
update ami selection
  • Loading branch information
roncitrus authored Oct 22, 2024
2 parents 94c483a + 9abea64 commit 2beb442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terraform/environments/cdpt-ifs/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ resource "aws_iam_role_policy" "app_execution" {

resource "aws_launch_template" "ec2-launch-template" {
name_prefix = "${local.application_name}-ec2-launch-template"
image_id = jsondecode(data.aws_ssm_parameter.ecs_optimized_ami.value)["image_id"] #local.application_data.accounts[local.environment].ami_image_id
image_id = "resolve:ssm:/aws/service/ecs/optimized-ami/amazon-linux-2/recommended/image_id"
instance_type = local.application_data.accounts[local.environment].instance_type
key_name = "${local.application_name}-ec2"
ebs_optimized = true
Expand Down

0 comments on commit 2beb442

Please sign in to comment.