Skip to content

Method utils.sts_regional_endpoint(region) always returns the global STS endpoint for all regions? #1332

@GrabbenD

Description

@GrabbenD

Describe the bug
We'd like to return the regional STS endpoint with utils.sts_regional_endpoint(region), although this method always returns the global endpoint https://sts.amazonaws.com for all valid regions as well as non existent ones.

To reproduce
This can be easily reproduced with a one liner:

python3 -c 'import sagemaker; print(sagemaker.utils.sts_regional_endpoint("eu-west-1"))'

Expected behavior
We're expecting to get a regional endpoint such as: sts.eu-west-1.amazonaws.com if the method parameter is eu-west-1 instead of the global endpoint https://sts.amazonaws.com. The regional endpoints can be found in the AWS documentation: Managing AWS STS in an AWS Region.

System information

  • SageMaker Python SDK version: 1.50.18.post0
  • Framework name (eg. PyTorch) or algorithm (eg. KMeans): N/A
  • Framework version: N/A
  • Python version: 3.7.5
  • CPU or GPU: N/A
  • Custom Docker image (Y/N): N

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions