99designs / iamy

A cli tool for importing and exporting AWS IAM configuration to YAML files
MIT License
238 stars 24 forks source link

iamy sporadically fail with errors. #75

Open apetrenko-TA opened 3 years ago

apetrenko-TA commented 3 years ago

Iamy sporadically fail with error:

Error fetching S3 data: Error listing buckets: Error while getting details for S3 bucket bucketname: RequestError: send request failed
caused by: Get https://s3.us-west-2.amazonaws.com/bucketname?location=: dial tcp: lookup s3.us-west-2.amazonaws.com: no such host286 <nil>

It failing all the time with errors on different bucket. looks like it is throttling from amazon side.

Iamy version v2.3.2

patrobinson commented 3 years ago

@apetrenko-TA this is a DNS resolution error and indicates a low level network error that's not related to iamy. I suggest checking what DNS server you have configured and trying an alternative (8.8.8.8 or 1.1.1.1)

sfdc-slumos commented 2 years ago

Running into this too. It seemed to start around the time this issue was opened, but I'm only getting around to digging deeper.

I get this error on every run, always on GetLocation for some S3 bucket that changes each run. It seems to always occur after 500-600 lines of output from --debug.

So far I've tried setting DNS to 1.1.1.1 and 8.8.8.8 and even adding s3.amazonaws.com to /etc/hosts.

sfdc-slumos commented 2 years ago

Tried on an EC2 instance and it worked on the first try. Maybe macOS issue? @apetrenko-TA?