Closed hrmcardle0 closed 2 months ago
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.
When I use the --profile option, it appears to not work when using --resources="iam".
For example:
terraformer import aws --resources="s3" --regions=eu-west-1 --profile account2
Works.
terraformer import aws --resources="iam" --regions=eu-west-1 --profile account2
Does not work, it errors out. It looks like the region never gets populated or something based on the sts call:
[ERROR] plugin.terraform-provider-aws_v5.36.0_x5: Response contains error diagnostic: tf_proto_version=5.4 tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=4992a382-e12f-c657-9ec9-ca6da322e342 @caller=github.com/hashicorp/terraform-plugin-go@v0.21.0/tfprotov5/internal/diag/diagnostics.go:62 diagnostic_detail="" diagnostic_severity=ERROR diagnostic_summary="Retrieving AWS account details: validating provider credentials: retrieving caller identity from STS: operation error STS: GetCallerIdentity, https response error StatusCode: 0, RequestID: , request send failed, Post \"https://sts..amazonaws.com/\": dial tcp: lookup sts..amazonaws.com: no such host" tf_rpc=Configure @module=sdk.proto timestamp=2024-02-13T20:12:36.639Z