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” {
│
I have this issue too. I also found this thread from about a month ago (C2_W3_Lab_2_CloudWatch - Can't Create CloudWatch Dashboard - #5 by junming1202), but there is no confirmed solution.
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 before, though it didn’t have a clear resolution.
@benjamintabaresjr Thank you for notifying me! I noted the issue. We are now working on updating some graded labs including the capstone labs. I will be checking the issue in this lab afterwards and post here once I have an update.
I rebooted the lab, and the issue was solved. Thank you for your intervention.
I’m afraid after submitting the form and getting the lab refreshed, I still got the same error.
Hi @rehangag
Could you please try to reboot your lab environment this time?
I’m afraid I keep getting the same error.
If it helps, the dashboard attempt takes 7 minutes before failing with the mentioned error
(module.monitoring.aws_cloudwatch_dashboard.rds_dashboard: Still creating… [7m0s elapsed]),
and the database in the earlier steps also takes a long time to create (module.bastion_host.aws_db_instance.database: Creation complete after 4m14s [id=db-PGGM45C4Q6XXQ42VMNYHR3BBJQ]) although it does eventually succeed.
Hi,
I’m sorry for the inconvenience you’re experiencing.
Could you kindly please try to retrieve the original lab files using the following steps:
- Create a new folder and move all current lab files into it (e.g., name it
old_files
). - Click the question mark icon in the top-right corner of the lab interface.
- Select “Get the latest version.” Reference
If that doesn’t resolve the issue, we may need to wait for an update from the course team. They’re currently working on updating some of the graded labs, and we hope this will help resolve the problem soon.
I rebooted the server and refreshed the lab files, but there is no difference.
Hi,
Sorry for the inconvenience. Just checking in—are you still experiencing the issue? If so, we may need to wait for an update from the course staff.
Thanks for your patience!
I tried again today but this time the terminal kept crashing for the terraform apply command in step 2, so I couldn’t reach step 4.1 (the place with the issue).
Hi,
For all commands, to avoid the terminal from crashing and to print the errrors inline, append || echo "$?"
to the command, for example:
terraform apply || echo "$?"
Hi everyone, I’ve been experiencing this issue today. I got the “latest version” of the lab, but that didn’t solve the issue. Is there any news? Thanks!
Hey @hawraa.salami,
Just checking in to see if there’s any update on the issue.
I came across this similar thread that might be helpful for context—though it didn’t seem to have a clear fix either.