Skip to content

Commit

Permalink
Tribunals: add ec2 instances back in (#9043)
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-k1998 authored Dec 10, 2024
1 parent 4146990 commit 1673313
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions terraform/environments/tribunals/asg-shared.tf
Original file line number Diff line number Diff line change
Expand Up @@ -238,37 +238,37 @@ resource "aws_launch_template" "tribunals-backup-lt" {
}

# # Finally, create the Auto scaling group for the launch template
# resource "aws_autoscaling_group" "tribunals-all-asg" {
# vpc_zone_identifier = [data.aws_subnet.public_subnets_a.id]
# desired_capacity = 1
# max_size = 1
# min_size = 1
# name = local.app_name

# launch_template {
# id = aws_launch_template.tribunals-all-lt.id
# version = "$Latest"
# }

# tag {
# key = "Name"
# value = "tribunals-instance"
# propagate_at_launch = true
# }
# }

# resource "aws_instance" "tribunals_backup" {
# launch_template {
# id = aws_launch_template.tribunals-backup-lt.id
# version = "$Latest"
# }

# tags = {
# Environment = local.environment
# Name = "tribunals-backup-instance"
# Role = "Backup"
# }
# }
resource "aws_autoscaling_group" "tribunals-all-asg" {
vpc_zone_identifier = [data.aws_subnet.public_subnets_a.id]
desired_capacity = 1
max_size = 1
min_size = 1
name = local.app_name

launch_template {
id = aws_launch_template.tribunals-all-lt.id
version = "$Latest"
}

tag {
key = "Name"
value = "tribunals-instance"
propagate_at_launch = true
}
}

resource "aws_instance" "tribunals_backup" {
launch_template {
id = aws_launch_template.tribunals-backup-lt.id
version = "$Latest"
}

tags = {
Environment = local.environment
Name = "tribunals-backup-instance"
Role = "Backup"
}
}

###########################################################################

Expand Down

0 comments on commit 1673313

Please sign in to comment.