Skip to content

Commit c812499

Browse files
committed
Welcome to StackSimplify
1 parent e8c866e commit c812499

File tree

7 files changed

+28
-7
lines changed

7 files changed

+28
-7
lines changed

17-AWS-CloudWatch/terraform-manifests/c11-acm-certificatemanager.tf

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@ module "acm" {
88
domain_name = trimsuffix(data.aws_route53_zone.mydomain.name, ".")
99
zone_id = data.aws_route53_zone.mydomain.zone_id
1010

11-
subject_alternative_names = [
12-
"*.devopsincloud.com"
11+
12+
subject_alternative_names = [
13+
#"*.devopsincloud.com"
14+
"cloudwatch.stacksimplify.com"
1315
]
16+
1417
tags = local.common_tags
1518
# Validation Method
1619
validation_method = "DNS"
1720
wait_for_validation = true
18-
}
21+
}
1922

2023
# Output ACM Certificate ARN
2124
output "this_acm_certificate_arn" {

17-AWS-CloudWatch/terraform-manifests/c12-route53-dnsregistration.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# DNS Registration
22
resource "aws_route53_record" "apps_dns" {
33
zone_id = data.aws_route53_zone.mydomain.zone_id
4-
name = "cloudwatch.devopsincloud.com"
4+
name = "cloudwatch.stacksimplify.com"
55
type = "A"
66
alias {
77
#name = module.alb.lb_dns_name

17-AWS-CloudWatch/terraform-manifests/c13-06-autoscaling-ttsp.tf

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,17 @@ resource "aws_autoscaling_policy" "alb_target_requests_greater_than_yy" {
3030
resource_label = "${module.alb.arn_suffix}/${module.alb.target_groups["mytg1"].arn_suffix}" # UPDATED NOV2023
3131
}
3232
target_value = 10.0
33-
}
33+
}
34+
35+
# Added depends_on to ensure the ALB and its listeners are fully created
36+
# and routing traffic to the target group before this Target Tracking
37+
# Scaling Policy is attached. Without this, Terraform may try to create
38+
# the policy too early and fail with:
39+
# "ValidationError: The load balancer does not route traffic to the target group"
40+
depends_on = [
41+
aws_autoscaling_group.my_asg,
42+
module.alb
43+
]
3444
}
3545

3646
# Updated Nov2023

17-AWS-CloudWatch/terraform-manifests/c14-05-cloudwatch-synthetics.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ resource "aws_synthetics_canary" "sswebsite2" {
8181
handler = "sswebsite2.handler"
8282
zip_file = "sswebsite2/sswebsite2v1.zip"
8383
#runtime_version = "syn-nodejs-puppeteer-3.1"
84-
runtime_version = "syn-nodejs-puppeteer-6.0" # UPDATED NOV2023
84+
#runtime_version = "syn-nodejs-puppeteer-6.0" # UPDATED NOV2023
85+
runtime_version = "syn-nodejs-puppeteer-6.2" # UPDATED AUG2025
8586
start_canary = true
8687

8788
run_config {

17-AWS-CloudWatch/terraform-manifests/c6-02-datasource-route53-zone.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Get DNS information from AWS Route53
22
data "aws_route53_zone" "mydomain" {
3-
name = "devopsincloud.com"
3+
#name = "devopsincloud.com"
4+
name = "stacksimplify.com"
45
}
56

67
# Output MyDomain Zone ID

17-AWS-CloudWatch/terraform-manifests/local-exec-output-files/creation-time-vpc-id.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ VPC created on Wed May 5 11:45:36 IST 2021 and VPC ID: vpc-0af52c0e11e9c3b7b
1717
VPC created on Sun May 9 11:35:11 IST 2021 and VPC ID: vpc-0d426b9e05f2b859f
1818
VPC created on Mon May 10 11:40:49 IST 2021 and VPC ID: vpc-0e55e5d8610e814af
1919
VPC created on Thu Nov 30 10:51:47 IST 2023 and VPC ID: vpc-0e94d0c2c4d8ab3c8
20+
VPC created on Sat Aug 2 16:22:53 IST 2025 and VPC ID: vpc-0c80bf366458191c3
21+
VPC created on Sat Aug 2 17:24:15 IST 2025 and VPC ID: vpc-08a7d868c41077c24
22+
VPC created on Sat Aug 2 18:11:13 IST 2025 and VPC ID: vpc-0d89ae522c38db3de

17-AWS-CloudWatch/terraform-manifests/local-exec-output-files/destroy-time-prov.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ Destroy time prov Wed May 5 14:07:03 IST 2021
1717
Destroy time prov Sun May 9 11:44:35 IST 2021
1818
Destroy time prov Mon May 10 11:53:15 IST 2021
1919
Destroy time prov Thu Nov 30 11:13:11 IST 2023
20+
Destroy time prov Sat Aug 2 17:10:58 IST 2025
21+
Destroy time prov Sat Aug 2 18:01:52 IST 2025
22+
Destroy time prov Sat Aug 2 18:14:50 IST 2025

0 commit comments

Comments
 (0)