Skip to content

Unable to resolve sts.us-east-1.api.aws #4347

Answered by KaibaLopez
milosgajdos asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @milosgajdos ,
Sorry for the slow response here, what is happening here basically is UseDualStack only applied to s3 where as UseDualStackEndpoint is generic for all services...
It's not the best solution but try this as a workaround:

svc := s3.New(sess, &aws.Config{
		UseDualStackEndpoint:          endpoints.DualStackEndpointStateEnabled,
}

As a side note, is there a reason why you are setting

S3ForcePathStyle:              aws.Bool(true),

Don't think this is affecting your sample just, it tends to be problematic so unless required I'd avoid it.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by vudh1
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
guidance Question that needs advice or information.
2 participants
Converted from issue

This discussion was converted from issue #4242 on April 01, 2022 17:38.