Skip to content

Commit

Permalink
Update Project 17 - AUTOMATE INFRASTRUCTURE WITH IAC USING TERRAFORM …
Browse files Browse the repository at this point in the history
…PART 2.md
  • Loading branch information
proteusxlr authored Jun 5, 2024
1 parent 882d0b7 commit 842413a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -694,13 +694,13 @@ Based on our architecture we need to create Auto-scaling groups for bastion, ngi
1. Create `asg-bastion-nginx.tf` and paste all the code snippet below;
```
# creating sns topic for all the auto scaling groups
resource "aws_sns_topic" "cynthia-sns" {
resource "aws_sns_topic" "proteusxlr-sns" {
name = "Default_CloudWatch_Alarms_Topic"
}
```
2. Create notification for all the auto scaling groups:
```
resource "aws_autoscaling_notification" "cynthia_notifications" {
resource "aws_autoscaling_notification" "proteusxlr_notifications" {
group_names = [
aws_autoscaling_group.bastion-asg.name,
aws_autoscaling_group.nginx-asg.name,
Expand All @@ -714,7 +714,7 @@ resource "aws_autoscaling_notification" "cynthia_notifications" {
"autoscaling:EC2_INSTANCE_TERMINATE_ERROR",
]
topic_arn = aws_sns_topic.cynthia-sns.arn
topic_arn = aws_sns_topic.proteusxlr-sns.arn
}
```
3. Create Launch template and Atuo scaling groups for bastion
Expand Down

0 comments on commit 842413a

Please sign in to comment.