I was unable to connect even after rebooting the ec2 instance
Error: HTTPConnectionPool(host=‘%3cml_model_endpoint_url%3e’, port=80): Max retries exceeded with url: / (Caused by NewConnectionError(‘<urllib3.connection.HTTPConnection object at 0x7735858156a0>: Failed to establish a new connection: [Errno -2] Name or service not known’))
The course 4 week 2 has 2 different labs: a) Feature Engineering for ML b)Modeling and Transforming Text Data for ML. Can you please confirm where are you having the issue?
There seems to be an issue connecting with the API Endpoint. Could you check you use the correct --api_url in the terraform/modules/extract_job/glue.tf in step 4.1.2
# Set `"--api_start_date"` to `"2020-01-01"`
"--api_start_date" = "2020-01-01"
# Set `"--api_end_date"` to `"2020-01-31"`
"--api_end_date" = "2020-01-31"
# Replace the placeholder <API-ENDPOINT> with the value from the CloudFormation outputs
"--api_url" = "http://ec2-****.compute-1.amazonaws.com/sessions" <--Use the correct URL
# Notice the target path. This line of the code code is complete - no changes are required
"--target_path" = "s3://${var.data_lake_bucket}/landing_zone/api/sessions"
In this issue those resources should be cleared from AWS console or wait for a new lab session. That will clear them to allow terraform apply to complete. Thank you
de-c4w4a1-connection-rds can be deleted from AWS glue > connections: