Skip to content

[aws-cpp-sdk-sts]: please add support for regional STS endpoints #3605

@grrtrr

Description

@grrtrr

Problem Description

The STSCredentialsClient has been supporting regional STS endpoints since June 30, 2020 (1474693).

The documentation says that

All new SDK major versions releasing after July 2022 will default to regional.

But this is in regard to the sts_regional_endpoints config file setting or AWS_STS_REGIONAL_ENDPOINTS environment variable, which the C++ SDK does not support.

The Aws::STSClient in aws-sdk-cpp/generated/src/aws-cpp-sdk-sts/source still uses the global STS endpoint (sts.amazonaws.com), according to the rules:

    "UseGlobalEndpoint": {
      "builtIn": "AWS::STS::UseGlobalEndpoint",
      "required": true,
      "default": false,
      "documentation": "Whether the global endpoint should be used, rather then the regional endpoint for us-east-1.",
      "type": "Boolean"
    }

It seems the only way to use a regional STS endpoint with the aws-cpp-sdk-sts endpoint is to override the endpoint manually.

It seems there are some changes to the global STS endpoint resolution in DNS, but this seems to require to enable the AWS DNS resolver in the VPC (which is not necessarily enabled).

Requested change

Please can you enable support for the regional STS endpoint in the aws-cpp-sdk-sts package by default, so that its behaviour matches that of the STSCredentialsClient.

AWS CPP SDK version used

1.11.x (but problem is also present on main).

Compiler and Version used

clang

Operating System and version

ubuntu 22.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions