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

Action no longer allows environment variables to be passed as arguments #43

Closed
kevin-beatdapp opened this issue Mar 6, 2020 · 2 comments

Comments

@kevin-beatdapp
Copy link

The Github runner cannot resolve the STS client hostname when the aws-region is passed as an environment variable argument:

image

I fixed this issue by passing in the argument manually, however 816f5cc introduced a change that broke previously working workflows.

@clareliguori
Copy link
Member

Based on this community forum post, I believe the correct syntax for passing the environment variable as an input to the action should be aws-region: ${{env.AWS_DEFAULT_REGION}}. Your current syntax passes the region as the literal string $AWS_DEFAULT_REGION. I can add some validation around that string to provide a better error message.

https://github.community/t5/GitHub-Actions/How-to-pass-environment-variable-to-an-input/td-p/32003

@clareliguori
Copy link
Member

The validation change is pushed to the v1 tag now, so you should get a clearer error message around the region string.

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

No branches or pull requests

2 participants