-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
[Bug]: credential_process broken in 5.27.0 #34603
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Confirmed, authentication w/ credential_process is currently broken. v5.13.1: OK Since the bug was introduced w/ v5.27.0, it is likely caused by the AWS SDK for Go 11/17/2023 update #34476 Should this be reported upstream? I'm not too familiar w/ Go and unsure how to further troubleshoot this. Happy to help though if someone can point me in the right direction. |
The issue is upstream. I have reproduced it w/ this simple go file: package main
import (
"context"
"log"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/config"
"github.com/aws/aws-sdk-go-v2/service/s3"
)
func main() {
// Load the Shared AWS Configuration (~/.aws/config)
cfg, err := config.LoadDefaultConfig(context.TODO())
if err != nil {
log.Fatal(err)
}
// Create an Amazon S3 service client
client := s3.NewFromConfig(cfg)
// Get the first page of results for ListObjectsV2 for a bucket
output, err := client.ListObjectsV2(context.TODO(), &s3.ListObjectsV2Input{
Bucket: aws.String("myBucketName"),
})
if err != nil {
log.Fatal(err)
}
log.Println("first page results:")
for _, object := range output.Contents {
log.Printf("key=%s size=%d", aws.ToString(object.Key), object.Size)
}
} Tested w/ I'm inclined to think this PR is the root cause: feat: ini2 parser aws/aws-sdk-go-v2#2365 |
I have opened an issue upstream: aws/aws-sdk-go-v2#2455 |
We're facing this issue too, we're loading our default config like above. We're rolling with:
|
fixed upstream aws/aws-sdk-go-v2#2461 |
Looks like that update was pulled in at version 5.37.0 of the AWS provider, so marking this as closed. If you experience the issue again in later versions, please open a new ticket so that we can triage it as necessary. |
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. |
Terraform Core Version
Terraform v1.6.2 on darwin_amd64
AWS Provider Version
5.27.0
Affected Resource(s)
aws provider authentication using the credential process on 5.27.0
5.26.0 works as expected
Expected Behavior
should authenticate properly using the credential_process to source credentials
Actual Behavior
fails to source AWS credentials from an external process
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
terraform apply --auto-approve
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: