cloud-discovery icon indicating copy to clipboard operation
cloud-discovery copied to clipboard

How to use UseAWSRole?

Open hyphus opened this issue 5 years ago • 2 comments

I am trying to figure out how to use this tool using either aws sts get-session-token or the UseAWSRole option but I can't seem to make this work.

Are there any examples or documentation on how use those options?

I've tried using the access keys that I get from running aws sts get-session-token as well as running curl -k -v -u admin:pass --raw --data '{"credential":[{"UseAWSRole":"True"}]}' https://localhost:9083/discover. Both result in no error logged in the container and the only relevant output I get is "curl: (52) Empty reply from server"

hyphus avatar Apr 10 '19 23:04 hyphus

Hi @bcheezum This is currently no supported but see #7 on how to use start tokens.

Feel free to contribute native start support to the package

liron-l avatar Apr 11 '19 07:04 liron-l

The issue you linked just says that it's supposed to work but there's no example of how. Looking at the code I didn't see anything that takes the session token.

hyphus avatar Apr 11 '19 16:04 hyphus