Skip to content

Commit

Permalink
fix: removes deprecated template provider (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwhaley authored Dec 24, 2022
1 parent 1e594ce commit d2a90a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/terraform-aws-alternat/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ data "aws_ami" "amazon_linux_2" {
}
}

data "template_cloudinit_config" "config" {
data "cloudinit_config" "config" {
for_each = { for obj in var.vpc_az_maps : obj.az => obj.route_table_ids }

gzip = true
Expand Down Expand Up @@ -233,7 +233,7 @@ resource "aws_launch_template" "nat_instance_template" {
})
}

user_data = data.template_cloudinit_config.config[each.key].rendered
user_data = data.cloudinit_config.config[each.key].rendered
}

resource "aws_security_group" "nat_instance" {
Expand Down

0 comments on commit d2a90a0

Please sign in to comment.