Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS: could not resolve endpoint #385

Closed
crrlcx opened this issue Feb 12, 2020 · 3 comments · Fixed by #400
Closed

AWS: could not resolve endpoint #385

crrlcx opened this issue Feb 12, 2020 · 3 comments · Fixed by #400

Comments

@crrlcx
Copy link

crrlcx commented Feb 12, 2020

Issue

Unable to load resources from AWS global region and selected regions.

Versions

  • Terraformer version: v0.8.6
  • Terraformer platform: linux-amd64
  • Terraform AWS provider version: v2.48.0

Environment:

AWS_SDK_LOAD_CONFIG=true

Import error:

UnknownEndpointError: could not resolve endpoint
        partition: "aws", service: "route53", region: "", known: [aws-global]

Executed command

  • With global region:
    terraformer-aws import aws --connect true --path-output ./amazon/resources --path-pattern '{output}/{service}_global' --resources iam,route53,cloudfront --regions global --state local --profile=terraform
  • With selected regions:
    terraformer-aws import aws --connect true --path-output ./amazon/resources --path-pattern '{output}/{service}_' --resources acm,alb,auto_scaling,ec2_instance,elasticache,elb,firehose,igw,lambda,nacl,rds,s3,sg,subnet,vpc,vpn_connection,vpn_gateway --regions eu-central-1 --state local --profile=terraform

Trace

2020/02/12 14:58:01 aws importing default region
2020/02/12 14:58:01 aws importing... iam
2020/02/12 14:58:01 UnknownEndpointError: could not resolve endpoint
        partition: "aws", service: "iam", region: "", known: [aws-global]
2020/02/12 14:58:01 UnknownEndpointError: could not resolve endpoint
        partition: "aws", service: "iam", region: "", known: [aws-global]
2020/02/12 14:58:01 UnknownEndpointError: could not resolve endpoint
        partition: "aws", service: "iam", region: "", known: [aws-global]
2020/02/12 14:58:01 UnknownEndpointError: could not resolve endpoint
        partition: "aws", service: "iam", region: "", known: [aws-global]
2020/02/12 14:58:01 UnknownEndpointError: could not resolve endpoint
        partition: "aws", service: "iam", region: "", known: [aws-global]
2020/02/12 14:58:08 aws importing... route53
2020/02/12 14:58:08 UnknownEndpointError: could not resolve endpoint
        partition: "aws", service: "route53", region: "", known: [aws-global]
2020/02/12 14:58:14 aws importing... cloudfront
2020/02/12 14:58:17 UnknownEndpointError: could not resolve endpoint
        partition: "aws", service: "cloudfront", region: "", known: [aws-global]
<>

PS:

Work as expected with Terraformer version: v0.8.5

@UstyuzhaninAV
Copy link

The same issue
Terraform v0.12.20
terraformer version v0.8.5

meshuga added a commit to meshuga/terraformer that referenced this issue Feb 13, 2020
meshuga added a commit to meshuga/terraformer that referenced this issue Feb 16, 2020
meshuga added a commit to meshuga/terraformer that referenced this issue Feb 19, 2020
@DSdatsme
Copy link

Hi @meshuga ,
I see this is merged and closed, but I am still facing the same issue in one of my AWS account.
Command: terraformer import aws --resources=route53

  • Terraformer version: v0.8.6
  • Terraformer platform: darwin-amd64
terraformer import aws   --resources route53                                                                                                      106.209.185.156   31%  ─╯
2020/03/17 14:43:36 aws importing default region
2020/03/17 14:43:36 aws importing... route53
2020/03/17 14:43:36 UnknownEndpointError: could not resolve endpoint
	partition: "aws", service: "route53", region: "", known: [aws-global]
2020/03/17 14:43:44 aws Connecting....
2020/03/17 14:43:44 aws save route53
2020/03/17 14:43:44 aws save tfstate for route53

@meshuga
Copy link
Contributor

meshuga commented Mar 17, 2020

@DSdatsme the fix to the problem hasn’t been released yet. You can compile master to use the fixed version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants