Create a VPC endpoint for Amazon STS
To start using Amazon STS with your VPC, create an interface VPC endpoint for Amazon STS. For more information, see Access an Amazon service using an interface VPC endpoint in the Amazon VPC User Guide.
After you create the VPC endpoint, you must use the matching regional endpoint to send
your Amazon STS requests. Amazon STS recommends that you use both the setRegion
and
setEndpoint
methods to make calls to a Regional endpoint. You can use the
setRegion
method alone for manually enabled Regions, such as Asia Pacific
(Hong Kong). In this case, the calls are directed to the STS Regional endpoint. To learn how
to manually enable a Region, see Managing Amazon
Regions in the Amazon Web Services General Reference. If you use the
setRegion
method alone for Regions enabled by default, the calls are
directed to the global endpoint of https://sts.amazonaws.com
.
When you use regional endpoints, Amazon STS calls other Amazon services using either public endpoints or private interface VPC endpoints, whichever are in use. For example, assume that you have created an interface VPC endpoint for Amazon STS and have already requested temporary credentials from Amazon STS from resources that are located in your VPC. In that case, these credentials begin flowing through the interface VPC endpoint by default. For more information about making Regional requests using Amazon STS, see Manage Amazon STS in an Amazon Web Services Region.