1 parent 4b51d07 commit e2975f6Copy full SHA for e2975f6
1 file changed
terraform_infra/backend_asg.tf
@@ -4,7 +4,7 @@ resource "aws_launch_template" "backend" {
4
instance_type = var.instance_type
5
vpc_security_group_ids = [aws_security_group.backend_sg.id]
6
key_name = var.key_name
7
- user_data = file("${path.module}/scripts/backend_user_data.sh")
+ user_data = filebase64("${path.module}/scripts/backend_user_data.sh")
8
9
lifecycle {
10
create_before_destroy = true
@@ -94,4 +94,4 @@ resource "aws_cloudwatch_metric_alarm" "backend_cpu_high" {
94
dimensions = {
95
AutoScalingGroupName = aws_autoscaling_group.backend_asg.name
96
}
97
-}
+}
0 commit comments