-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Question: How to use with AWS IAM Assumed Roles #85
Comments
Hey @salt-mountain, Just checking, is this trying to be run as an unattended script? If so, the first:
will run continuously, waiting for a kill signal before proceeding. Perhaps remove this and put a Also try running this manually such that you have iamlive running in a single terminal session without environment variables and terragrunt running with the following immediately prior:
|
Hey @iann0036 , appreciate the reply.
Yeah, I did kill it. I just wanted to generate the
So to give a little bit of a background - I'm trying to run this in an environment where we have AWS Federated Logins, Trying just those three |
Hey @salt-mountain, The As of now, there's no good way I know to proxy only the AWS traffic, so we unfortunately have to deal with the misdirected traffic. |
I think I goofed a little and I'm further 🤦♂️ I had to explicitly set the But now I'm probably running into exactly what you said with calls to the Terraform registry falling into the proxy as well and timing out. I'll keep at this a while and try to filter out with I appreciate your input! If you dont mind keeping this open for a while I'd like to (hopefully) come back reporting success and maybe some clear steps for anyone else that might run into the same issue. |
Yep, check out some similar issues like #53 , https://github.com/iann0036/iamlive/issues?q=no_proxy I might make this more explicit in the README. |
Hello!
I feel a bit silly asking because I'm sure the answer is staring me in the face but I've hit a wall and wanted to ask for some help because I'm not sure from the documentation alone what I might be doing wrong.
I'm trying to use
iamlive
to determine what the permissions are to stand up some infrastructure. I'm utilizingterragrunt
to invoke severalTerraform
modules. I give Terragrunt a "Deployment IAM Role" that has an expanded permission set to be able to stand up resources but I'm trying to get a granular IAM document that contains the permissions that are involved. I invoketerragrunt
with my local AWS user and theterragrunt.hcl
has aniam_role
field that it assumes without issue.I started by invoking
iamlive
using$ export AWS_CSM_ENABLED=true $ iamlive --set-ini --background --output-file iam_output.txt $ terragrunt run-all init
After it's done, my output document is very small.
This obviously doesn't cover everything like creating EC2s, ASGs, etc. It's basically like
iamlive
loses the thread onceterragrunt
assumes my deployment role to do the actual job of instantiating infrastructure in my AWS account.I then tried invoking
iamlive
like so:The problem is that it just hangs here.
Am I missing something very super obvious about how to invoke this to work with
terragrunt
and IAM Roles.The text was updated successfully, but these errors were encountered: