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
How to assume role #934
Comments
@GeorgeHosuAdswizz thanks for contacting us. The simplest way to support what you're looking for it to set the env var The Sessions getting started guide has more information on this. You can also do this in code too like the following: sess, err := session.NewSessionWithOptions(session.Options{
// enable shared config support.
SharedConfigState: SharedConfigEnable,
// Optionally set the profile to use from the shared config.
Profile: myProfile,
}) |
Hi @GeorgeHosuAdswizz Thanks for reaching out to us, let us know if there is anything more we can answer or help with. |
Tank you very much for the help, I was very busy at the time and forgot to close the issue, sorry for that :s |
Hello, I have previously configured the aws cli in order to assume a role when I run commands on s3. However the cli does ask me to run each command as aws s3 --profile <my_role>.
When i try to use the go sdk however I simply get an access denied error. Is there any way to quickly configure the go aws sdk in order to assume a role before making any further requests to s3 ? It need to me secure (do note that I already have the require credentials inside ~/.aws/config)
The text was updated successfully, but these errors were encountered: