Skip to content

Use incorrect sts endpoint when using China regions #47

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

Closed
zxkane opened this issue Mar 18, 2020 · 4 comments · Fixed by #48
Closed

Use incorrect sts endpoint when using China regions #47

zxkane opened this issue Mar 18, 2020 · 4 comments · Fixed by #48

Comments

@zxkane
Copy link

zxkane commented Mar 18, 2020

Use aws credential like below,

    - name: Configure AWS credentials
      uses: aws-actions/configure-aws-credentials@v1
      with:
        aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
        aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
        aws-session-token: ${{secrets.AWS_SESSION_TOKEN}}
        aws-region: cn-northwest-1

Got below error,

Run aws-actions/configure-aws-credentials@v1
##[error]Inaccessible host: `sts.cn-northwest-1.amazonaws.com'. This service may not be available in the `cn-northwest-1' region.

According to the doc of AWS China region, the correct endpoint of STS in China region is sts.cn-northwest-1.amazonaws.com.cn. Of course, cn-northwest-1 will be replaced as cn-north-1 in BJS region.

@zxkane
Copy link
Author

zxkane commented Mar 18, 2020

It's also a regression issue in latest release though there is only ak/sk given. It works after having to stick aws-actions/configure-aws-credentials to version v1.1.2.

@clareliguori
Copy link
Contributor

Thanks for reporting this! The fix is now merged onto the v1 tag

@TiagoGouvea
Copy link

I'm getting this now:

Run aws-actions/configure-aws-credentials@v1
  with:
    aws-access-key-id: ***
    aws-secret-access-key: ***
    aws-region: sa-east-1c
Error: Inaccessible host: `sts.sa-east-1c.amazonaws.com'. This service may not be available in the `sa-east-1c' region.

It seems to be resolved but happens on my first use with this action.

Can you help me, please?

@zxkane
Copy link
Author

zxkane commented Oct 15, 2020 via email

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 a pull request may close this issue.

3 participants