Skip to content

Commit 0a75ad8

Browse files
committed
Base64 handling fix
1 parent b00b481 commit 0a75ad8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ecs_ec2_cluster_template/aws_launch_template.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ resource "aws_launch_template" "main" {
1616
# returns a single list item then leave it as-is and remove this TODO comment.
1717
vpc_security_group_ids = concat([aws_security_group.main.id], var.additional_security_groups)
1818

19-
user_data = base64encode(data.template_cloudinit_config.main.rendered)
19+
user_data = data.template_cloudinit_config.main.rendered
2020

2121
monitoring {
2222
enabled = var.ec2_enable_monitoring

ecs_ec2_cluster_template/template_cloudinit_config.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
data "template_cloudinit_config" "main" {
22
# https://github.com/hashicorp/terraform/issues/11488
3+
# https://github.com/terraform-providers/terraform-provider-aws/issues/497
34
gzip = false
4-
base64_encode = false
5+
base64_encode = true
56

67
part {
78
content_type = "text/x-shellscript"

0 commit comments

Comments
 (0)