-
Notifications
You must be signed in to change notification settings - Fork 492
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
When running on EC2 not picking up credentials #245
Comments
I'm facing the same problem, have you found solutions? |
@AmaniEzz @paragbhingre it looks like my issue was with setting the following input variables. env:
AWS_EC2_METADATA_DISABLED: true
AWS_SDK_LOAD_CONFIG: true My originaly issue was with using docker/build-push-action which would throw errors because it couldn't read from the IAM role so I experiemented with running this action prior to the docker one and I ran into the same issue. I ended up not needing this action once I omitted the above env variables. I have not re-tested the aws-actions/configure-aws-credentials after omitting the above env variables. |
I didn't clearly understand how did you omitted the env variables? Are they
hidden somewhere or are they default? Sorry i'm new to this.
Appreciate your help
…On Mon, 16 Aug 2021 at 1:48 AM nitrocode ***@***.***> wrote:
@AmaniEzz <https://github.com/AmaniEzz> @paragbhingre
<https://github.com/paragbhingre> it looks like my issue was with setting
the following input variables.
env:
AWS_EC2_METADATA_DISABLED: true
AWS_SDK_LOAD_CONFIG: true
My originaly issue was with using docker/build-push-action
<https://github.com/docker/build-push-action> which would throw errors
because it couldn't read from the IAM role so I experiemented with running
this action prior to the docker one and I ran into the same issue. I ended
up not needing this action once I omitted the above env variables.
I have not re-tested the aws-actions/configure-aws-credentials after
omitting the above env variables.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#245 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AI6CJUQLQGVCDWINFH5WPC3T5A73BANCNFSM5BPWSY3Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
Any update regarding this issue? I'm having the same problem. I tried multiple values for the envar listed here with no luck. |
I'll try to investigate this at some point in the next week |
Hi there! You're getting this error because the JavaScript SDK is unable to load credentials from any of the credential providers. One of the first things the action does it attempt to get the SDK to refresh the running credentials with a call to loadCredentails. If that throws an exception, you'll see the error above.
There are some environment variables that control the behavior of the JS SDK, one of which is Of course, if you're trying to do some other method of authentication other than IAM roles on your runner, you'll need to make sure that's working on your runner with the JS SDK as well. One easy way is to use a simple "hello world" app written against the JavaScript v2 SDK and run that on your runner: https://docs.aws.amazon.com/code-samples/latest/catalog/javascript-nodegetstarted-sample.js.html. If that works, you know the SDK should be able to authenticate. |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
I get the same error
|
context
I noticed that from a previous issue and subsequent pull request that this feature should be supported. I'm using the following yaml but it's not working as expected.
I'm on Amazon Linux 2 self-hosted EC2 instances.
I tried this
which returns
Error: Input required and not supplied: aws-region
I tried this
which returns
references
similar issues in other projects
The text was updated successfully, but these errors were encountered: