-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
remote config for S3 can not use assume role #7014
Comments
Hello, Same request: I have about 10 AWS profiles in my ~/.aws/config (might push them to ~/.aws/credentials, not a big deal). Would be marvelous if The second solution might be the best regarding future supports, as proposed by @t-yamo |
+1 |
This might be related: #10067 |
I have the exact config as @t-yamo in terms of aws config and I am still seeing this error in Terraform 0.11.x Just to clarify, my aws config -
My terraform code for remote state
After that I did the following commands
I get this error instead
My questions are
|
Hi all! Sorry for the long silence on this issue. We've just merged a PR updating the aws sdk which adds support for Since the fix is merged into master, I am going to close this issue. Thanks! 🎉 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
I have two AWS accounts
development
andproduction
.There is an IAM user in
development
, and there is an IAM role inproduction
(production
has no IAM users).And the IAM user in
development
can behave as the IAM role inproduction
.I can use
aws s3 ls --profile=development
andaws s3 ls --profile=production
correctly.And I can use
terraform remote config -backend=s3 -backend-config="profile=development" ...
correctly too.But I can't use
terraform remote config -backend=s3 -backend-config="profile=production" ...
.Error message is
* No valid credential sources found for AWS S3 remote.
.Maybe, remote config for S3 checks only profiles in
~/.aws/credentials
.~/.aws/credentials
~/.aws/config
The text was updated successfully, but these errors were encountered: