From d2a90a0db53bcbe260c100c7f5b3e02b16e5eb09 Mon Sep 17 00:00:00 2001 From: Ben Whaley <503816+bwhaley@users.noreply.github.com> Date: Fri, 23 Dec 2022 17:15:03 -0800 Subject: [PATCH] fix: removes deprecated template provider (#43) --- modules/terraform-aws-alternat/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/terraform-aws-alternat/main.tf b/modules/terraform-aws-alternat/main.tf index 1b41648..66f1b23 100644 --- a/modules/terraform-aws-alternat/main.tf +++ b/modules/terraform-aws-alternat/main.tf @@ -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 @@ -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" {