Skip to content

Commit e2975f6

Browse files
authored
Refactor backend ASG configuration in Terraform
1 parent 4b51d07 commit e2975f6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

terraform_infra/backend_asg.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ resource "aws_launch_template" "backend" {
44
instance_type = var.instance_type
55
vpc_security_group_ids = [aws_security_group.backend_sg.id]
66
key_name = var.key_name
7-
user_data = file("${path.module}/scripts/backend_user_data.sh")
7+
user_data = filebase64("${path.module}/scripts/backend_user_data.sh")
88

99
lifecycle {
1010
create_before_destroy = true
@@ -94,4 +94,4 @@ resource "aws_cloudwatch_metric_alarm" "backend_cpu_high" {
9494
dimensions = {
9595
AutoScalingGroupName = aws_autoscaling_group.backend_asg.name
9696
}
97-
}
97+
}

0 commit comments

Comments
 (0)