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

Enable support for STS regional endpoints when configured to assume a role #37

Merged
merged 1 commit into from
Aug 10, 2021
Merged

Enable support for STS regional endpoints when configured to assume a role #37

merged 1 commit into from
Aug 10, 2021

Conversation

dvulpe
Copy link
Contributor

@dvulpe dvulpe commented Aug 5, 2021

Fixes #35

In AWS VPCs without internet access which have the STS VPC endpoint created the region needs to be explicitly along with the environment variable AWS_STS_REGIONAL_ENDPOINTS=regional otherwise the AWS Java SDK will use the global STS endpoint.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

… role

In AWS VPCs without internet access which have the STS VPC endpoint created the region needs to be explicitly along with the environment variable AWS_STS_REGIONAL_ENDPOINTS=regional otherwise the AWS Java SDK will use the global STS endpoint.
@sayantacC sayantacC assigned sayantacC and unassigned sayantacC Aug 9, 2021
@sayantacC sayantacC self-requested a review August 9, 2021 19:39
@@ -202,6 +202,40 @@ STSAssumeRoleSessionCredentialsProvider createSTSRoleCredentialProvider(String r
Mockito.verify(mockStsRoleProvider, times(1)).close();
}

@Test
public void testAwsRoleArnSessionNameAndStsRegion() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding a test.

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

Successfully merging this pull request may close these issues.

Enable support for regional VPC STS endpoints
2 participants