EC2 connection error

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’))

Dear @akash_mernedi
Thanks for reaching out.

Can you please confirm the following:

  1. Is this error still happening?
  2. 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?


help me pls

Hello @kittipat_ss,

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"
1 Like

Do I need to rerun terraform? I’m having a problem that after replacing I find that terraform cannot be run.

Hello @kittipat_ss,

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

  1. de-c4w4a1-connection-rds can be deleted from AWS glue > connections:

  1. de-c4w4a1-glue-role can be found in IAM > Roles:

  1. Someone had deftunes_serving and deftunes_transform in this post and remove those schemas from Redshift

oh thx