Skip to content

Commit f45f49e

Browse files
committed
feat: switch from template provider to cloudinit provider
1 parent eb2f1dd commit f45f49e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module "proxy" {
4040
image_id = data.aws_ssm_parameter.linux_ami.value
4141
instance_type = "t3.nano"
4242
health_check_type = "ELB"
43-
user_data_base64 = base64encode(module.this.enabled ? data.template_cloudinit_config.this[0].rendered : "")
43+
user_data_base64 = base64encode(module.this.enabled ? data.cloudinit_config.this[0].rendered : "")
4444
force_delete = true
4545
disable_api_termination = false
4646
update_default_version = true
@@ -86,7 +86,7 @@ module "proxy" {
8686
context = module.this.context
8787
}
8888

89-
data "template_cloudinit_config" "this" {
89+
data "cloudinit_config" "this" {
9090
count = module.this.enabled ? 1 : 0
9191

9292
gzip = true

0 commit comments

Comments
 (0)