C2W3Lab2, Terraform apply error, Why this error?

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.

Hi @Thacy @rehangag

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.

1 Like

I rebooted the lab, and the issue was solved. Thank you for your intervention.

1 Like

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:

  1. Create a new folder and move all current lab files into it (e.g., name it old_files).
  2. Click the question mark icon in the top-right corner of the lab interface.
  3. 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.