GoogleCloudPlatform / terraformer

CLI tool to generate terraform files from existing infrastructure (reverse Terraform). Infrastructure to Code
Apache License 2.0
12.58k stars 1.64k forks source link

AWS: could not resolve endpoint #385

Closed crrlcx closed 4 years ago

crrlcx commented 4 years ago

Issue

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

Versions

Environment:

AWS_SDK_LOAD_CONFIG=true

Import error:

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

Executed command

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 commented 4 years ago

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

DSdatsme commented 4 years ago

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 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 commented 4 years ago

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