C2W3Lab2 Terraform Error

Please help, i keep getting this error trying to create CloudWatch Dashboard
│ Error: putting CloudWatch Dashboard (de-c2w3lab2-rds-dashboard): operation error CloudWatch: PutDashboard, exceeded maximum number of attempts, 25, https response error StatusCode: 0, RequestID: , request send failed, Post “https://monitoring.us-east-1.amazonaws.com/”: dial tcp: lookup monitoring.us-east-1.amazonaws.com on 127.0.0.11:53: server misbehaving

│ with module.monitoring.aws_cloudwatch_dashboard.rds_dashboard,
│ on modules/monitoring/cloudwatch.tf line 2, in resource “aws_cloudwatch_dashboard” “rds_dashboard”:
│ 2: resource “aws_cloudwatch_dashboard” “rds_dashboard” {

same here!

I have been stuck here for days now

Hi,

Sorry you’re running into this! Could you let me know which step the error appears in?

It looks like a network or DNS issue—restarting the lab environment often helps fix this. Give that a try and let me know if it works!

Greetings,
Its the step 4.1 CloudWatch Showcase of the lab.

Getting the same error

Hi @Fisherman @Lauren_McPhillips

Before deploying the Terraform resources, please ensure all necessary files (e.g., main.tf and cloudwatch.tf) are uncommented as per step 4.1.

If you’re unable to proceed, feel free to fill out the lab refresh form here. You’ll receive a notification once your lab is refreshed.

I’ve also looped in @hawraa.salami for additional support if needed. For reference, here’s a similar issue we came across, though it didn’t have a clear resolution.