Skip to content

Commit

Permalink
feat: upgrade to AL2023 (cleanup using coalesce + line fmt)
Browse files Browse the repository at this point in the history
  • Loading branch information
oycyc committed May 17, 2024
1 parent b734a58 commit 8c20030
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ data "aws_ami" "amazon_linux_2023" {
name = "virtualization-type"
values = ["hvm"]
}
}
}
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ DOC

resource "aws_launch_template" "default" {
name_prefix = module.this.id
image_id = length(var.ami) > 0 ? var.ami : data.aws_ami.amazon_linux_2023.id
image_id = coalesce(var.ami, data.aws_ami.amazon_linux_2023.id)
instance_type = var.instance_type
key_name = var.key_pair_name
user_data = base64encode(var.user_data)
Expand Down

0 comments on commit 8c20030

Please sign in to comment.