Skip to content

Commit

Permalink
Merge pull request #82 from overmindtech/update_tg_arn
Browse files Browse the repository at this point in the history
Create a second Target Group
  • Loading branch information
jameslaneovermind authored Mar 5, 2024
2 parents 9999d44 + 89077e9 commit 125e866
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions modules/scenarios/asg_change.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@ resource "aws_lb_target_group" "my_target_group" {
}
}

# Create a second Target Group
resource "aws_lb_target_group" "my_new_target_group" {
name = "asg-new-change-tg"
port = 80
protocol = "HTTP"
vpc_id = data.aws_vpc.default.id

health_check {
path = "/"
}
}

# Create an Auto Scaling Group
resource "aws_autoscaling_group" "my_asg" {
name = "asg-change-test-asg"
Expand Down

0 comments on commit 125e866

Please sign in to comment.