hangs running in ec2 with admin perms
Closed this issue · 4 comments
Was testing this running in an ec2 instance with admin iam role and it hangs:
./awsweeper --region us-east-1 --dry-run dev.yml
INFO[0000] using region: us-east-1
Haven't had time to dig into why it would be permanently hanging here. Initial permissions tested were:
"ec2:Delete*",
"ec2:Describe*",
"ec2:Disassociate*",
"ec2:TerminateInstances"
Changed that to an admin role and still hangs. Any ideas?
Hi @sonderops, what version of awsweeper are you using? How does your dev.yml look like?
Using the latest version, dev.yml has been tested locally. Tried with a full spectrum of options and with just:
aws_instance:
Turns out to be the same inside the container I've made on or off ec2. Passing in env vars with full perms on the account.
Doesn't seem to be a hang on credentials. I've tried with setting env vars, a credentials file, and iam role. I'll start mucking with the code to see what I can find.
Turns out there is something odd with which container it gets run in. I'll comment if I figure out why.
For those of you trying to run awsweeper in a container. curl is a dependency.