-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
using iamlive in proxy mode with localstack #50
Comments
Hey @phynias, There isn't a setting for that at the moment, but it shouldn't be too hard to implement. The filter is located here: Line 159 in 10ed9e2
You could compile your own version with this modification using Go, otherwise let me know which OS you're on and I can compile you a version. |
ubuntu 20. thanks!!!! anyway we can turn this into an optional or perm setting? |
Hey @phynias, Give this one a try. Add the argument similar to the following (adjust address pattern as necessary):
Note that S3 endpoint detection might break here, so let me know if this works for services like EC2 and I can adjust. |
doesn't look like it's working. no policy is created. i tried just a simple 'ec2 describe-instances' and it returns a reservation json, but iamlive prints no policies. |
i am also not able to use iamlive with localstack. i have localstack hosted on my server on my network, which is working since i can create resources. could an example of using iamlive with localstack be added to the docs? |
@iann0036 Iamlive is great thank you for creating it and making it available. I was interested in using it with Localstack and I set up a way to do this using Docker. It did require adding a command line arg to Iamlive that allows you to set the host that AWS request will be forwarded to. I use that argument to forward AWS requests to rewrite the request in the proxy so they are routed to Localhost rather than AWS. I have submitted a PR with this change. I hope you can review it. Happy to make any needed changes to get it merged. I also have created a repo that shows how this new arg can be used with docker. With it you can run terraform scripts against Localstack and have Iamlive output the IAM policies associated with the actions taken. Here is a link to that repo: https://github.com/rulio/iamlive-localstack/ |
I am currently trying to get iamlive in proxy mode working with localstack, but I am having a problem. I think it has something to do with aws endpoint url and from what I can tell I can't figure out how to set that for iamlive to pickup.
I am just curious if anyone has gotten this working or is there a setting I am overlooked?
The text was updated successfully, but these errors were encountered: