configure-aws-credentials icon indicating copy to clipboard operation
configure-aws-credentials copied to clipboard

Inaccessible host: `sts.eu-central-1.amazonaws.com' at port `undefined'.

Open lcmgh opened this issue 2 years ago • 2 comments

Environment: corporate, self hosted runner

My self hosted runners have a proxy setup as described here: https://docs.github.com/en/actions/hosting-your-own-runners/using-a-proxy-server-with-self-hosted-runners

A prior action Slidem/inplace-envsubst-action I'm running works fine and can fetch internet dependencies, therefore I assume internet connectivity is OK but aws-actions/configure-aws-credentials@v1 fails with:

Run aws-actions/configure-aws-credentials@v1
  with:
    aws-access-key-id: ***
    aws-secret-access-key: ***
    aws-region: eu-central-1
    role-to-assume: arn:aws:iam::xxxx:role/xxxxxxxxxxxxxxx
    role-duration-seconds: 1[20](https://xxx/runs/146919?check_suite_focus=true#step:5:20)0
    role-skip-session-tagging: true
  env:
    KUBERNETES_CLUSTER: xxxx
Error: Inaccessible host: `sts.eu-central-1.amazonaws.com' at port `undefined'. This service may not be available in the `eu-central-1' region.

Any ideas?

lcmgh avatar Apr 05 '22 14:04 lcmgh

After ensuring that http_proxy and https_proxy env. variables are set on the runner curl call to the endpoint works fine without additional flags but the action still fails with same error.

lcmgh avatar Apr 06 '22 08:04 lcmgh

Solution seems to be https://github.com/aws-actions/configure-aws-credentials/pull/246. Can you please merge :)

lcmgh avatar Apr 06 '22 09:04 lcmgh

Closing this out in favor of #222, we're hoping to merge #246 soon so stay tuned 🙂

peterwoodworth avatar Oct 11 '22 19:10 peterwoodworth

⚠️Comment Visibility Warning⚠️

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. If you wish to keep having a conversation with other community members under this issue feel free to do so.

github-actions[bot] avatar Oct 11 '22 19:10 github-actions[bot]