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

Incorrect sts endpoint when using region cn-north-1 #1040

Closed
jacoy510 opened this issue Mar 23, 2024 · 1 comment
Closed

Incorrect sts endpoint when using region cn-north-1 #1040

jacoy510 opened this issue Mar 23, 2024 · 1 comment
Labels
bug Something isn't working needs-triage This issue still needs to be triaged

Comments

@jacoy510
Copy link

jacoy510 commented Mar 23, 2024

Describe the bug

When trying to configure aws credentials in region cn-north-1, receive the below error
Error: getaddrinfo ENOTFOUND sts.cn-north.amazonaws.com

Expected Behavior

Based on the official document, the sts endpoint for region cn-north-1 should be sts.cn-north-1.amazonaws.com.cn
https://docs.amazonaws.cn/en_us/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html

Current Behavior

Currently when try to configure aws credentials for cn-north-1, it will try to use wrong sts endpoint address sts.cn-north-1.amazonaws.com, which cause the network error

Reproduction Steps

The workflow looks like this:

   steps:
      - name: Configure AWS credentials
        uses: aws-actions/configure-aws-credentials@v4
        with:
          aws-access-key-id: ${{ inputs.aws_access_key}}
          aws-secret-access-key: ${{ inputs.aws_secret_access_key}}
          role-to-assume: ${{ inputs.role_to_assume }}
          aws-region: cn-north-1

Possible Solution

Probably need do some adaptions for CN region to create the correct sts endpoint address

Additional Information/Context

No response

@jacoy510 jacoy510 added bug Something isn't working needs-triage This issue still needs to be triaged labels Mar 23, 2024
Copy link

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage This issue still needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant