Skip to content

Commit 927f642

Browse files
committed
feat: switch from template provider to cloudinit
1 parent 20c8cbc commit 927f642

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module "node" {
3939
image_id = module.this.enabled ? data.aws_ssm_parameter.linux_ami[0].value : ""
4040
instance_type = "t3.nano"
4141
health_check_type = "EC2"
42-
user_data_base64 = base64encode(module.this.enabled ? data.template_cloudinit_config.this[0].rendered : "")
42+
user_data_base64 = base64encode(module.this.enabled ? data.cloudinit_config.this[0].rendered : "")
4343
force_delete = true
4444
disable_api_termination = false
4545
update_default_version = true
@@ -85,7 +85,7 @@ module "node" {
8585
context = module.this.context
8686
}
8787

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

9191
gzip = true

0 commit comments

Comments
 (0)