Skip to content
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

go-getter uses only EC2 instance credentials when accessing S3 but not PODs #456

Open
jeffsaremi opened this issue Sep 12, 2023 · 0 comments

Comments

@jeffsaremi
Copy link

This code does not work under kubernetes since the instance creds are not available

go-getter/get_s3.go

Lines 220 to 228 in e66f244

creds = credentials.NewChainCredentials(
[]credentials.Provider{
&credentials.EnvProvider{},
&credentials.SharedCredentialsProvider{Filename: "", Profile: ""},
&ec2rolecreds.EC2RoleProvider{
Client: ec2metadata.New(session.New(&aws.Config{
Endpoint: aws.String(metadataURLOverride),
})),
},

As such we can't access S3 paths under k8s. I have tried versions up to 1.7.2
Does anyone have a fix for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant