-
Notifications
You must be signed in to change notification settings - Fork 160
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
Errors with aws:route53/getZone:getZone
after upgrading to 5.14.0
#2144
Comments
Hi @henriiik How are you authenticating against your provider? Paul |
Hi @stack72,
|
As a way to unblock your deployments, please set |
Are you able to tell me what environment variables are being set? (Just the names) |
These are the ones i have set
|
heya @henriiik - I'm struggling to repro this locally using a pre-setup Route 53 and the following bit of code:
My default AWS profile sets the region:
My env vars are:
|
Hello! You need to have the provider assume a role like in the example @cyberox posted above. I was able to create a minimal repo and push it to this repo: https://github.com/henriiik/aws-provider-bug first preview works, since role is not created yet. However the update fails. $ pulumi up
Previewing update (dev)
View Live: https://app.pulumi.com/henriiik/aws-provider-bug/dev/previews/8c188fb4-6197-411b-a6df-6faeee1e6c01
Type Name Plan Info
+ pulumi:pulumi:Stack aws-provider-bug-dev create 6 messages
+ ├─ aws:iam:Role role create
+ └─ pulumi:providers:aws provider create
Do you want to perform this update? yes
Updating (dev)
View Live: https://app.pulumi.com/henriiik/aws-provider-bug/dev/updates/1
Type Name Status Info
+ pulumi:pulumi:Stack aws-provider-bug-dev **creating failed** 1 error; 6 messages
+ ├─ aws:iam:Role role created
+ └─ pulumi:providers:aws provider created
Diagnostics:
pulumi:pulumi:Stack (aws-provider-bug-dev):
error: Running program '/Users/henke/dev/aws-provider-bug' failed with an unhandled exception:
Error: invocation of aws:route53/getZone:getZone returned an error: unable to validate AWS credentials. Make sure you have:
• Set your AWS region, e.g. `pulumi config set aws:region us-west-2`
• Configured your AWS credentials as per https://pulumi.io/install/aws.html
You can also set these via cli using `aws configure`.
at Object.callback (/Users/henke/dev/aws-provider-bug/node_modules/@pulumi/runtime/invoke.ts:159:33)
at Object.onReceiveStatus (/Users/henke/dev/aws-provider-bug/node_modules/@grpc/grpc-js/src/client.ts:338:26)
at Object.onReceiveStatus (/Users/henke/dev/aws-provider-bug/node_modules/@grpc/grpc-js/src/client-interceptors.ts:426:34)
at Object.onReceiveStatus (/Users/henke/dev/aws-provider-bug/node_modules/@grpc/grpc-js/src/client-interceptors.ts:389:48)
at /Users/henke/dev/aws-provider-bug/node_modules/@grpc/grpc-js/src/call-stream.ts:276:24
at processTicksAndRejections (node:internal/process/task_queues:78:11)
Resources:
+ 3 created
Duration: 6s subsequent preview fail $ pulumi up
Previewing update (dev)
View Live: https://app.pulumi.com/henriiik/aws-provider-bug/dev/previews/6275c9b0-5938-4d0a-8429-b69a866d8791
Type Name Plan Info
pulumi:pulumi:Stack aws-provider-bug-dev 1 error
Diagnostics:
pulumi:pulumi:Stack (aws-provider-bug-dev):
error: Running program '/Users/henke/dev/aws-provider-bug' failed with an unhandled exception:
Error: invocation of aws:route53/getZone:getZone returned an error: unable to validate AWS credentials. Make sure you have:
• Set your AWS region, e.g. `pulumi config set aws:region us-west-2`
• Configured your AWS credentials as per https://pulumi.io/install/aws.html
You can also set these via cli using `aws configure`.
at Object.callback (/Users/henke/dev/aws-provider-bug/node_modules/@pulumi/runtime/invoke.ts:159:33)
at Object.onReceiveStatus (/Users/henke/dev/aws-provider-bug/node_modules/@grpc/grpc-js/src/client.ts:338:26)
at Object.onReceiveStatus (/Users/henke/dev/aws-provider-bug/node_modules/@grpc/grpc-js/src/client-interceptors.ts:426:34)
at Object.onReceiveStatus (/Users/henke/dev/aws-provider-bug/node_modules/@grpc/grpc-js/src/client-interceptors.ts:389:48)
at /Users/henke/dev/aws-provider-bug/node_modules/@grpc/grpc-js/src/call-stream.ts:276:24
at processTicksAndRejections (node:internal/process/task_queues:78:11)
|
Just wanted to weigh in by confirming that setting
edit: We use the following environment vars:
We pass optional settings to the provider. In this case, only the assumeRole and region settings are available and passed to the Provider constructor. The AWS account which corresponds to the accesskey/secretkey set in the env has all the rights needed, and can assume the role specified (this all works prior ro 5.14.0)
|
thank you for the additional background @henriiik - this seems to be specific to custom Providers. I'm running a few scenarios to determine why credentials are not being propagated correctly. |
All right, so this is my current presumption of what happened. In pulumi-aws v5.14, we pulled in changes to the upstream config verification library, which added a verification check for the With our upgrade to v5.14, we suddenly started hitting the error returned on this line, because we had not been propagating the The upside here is that the custom Provider's role assumption will be much more safe and reliable! Please hold tight while we work to properly set that config value and reconsider our error surfacing strategy for this new check. |
@guineveresaenger thanks for the update! |
What happened?
When i upgraded my project to 5.14.0 i started getting the following error a lot (20+ times) when i run a preview. Downgrading to 5.13.0 makes the problem go away.
Steps to reproduce
Expected Behavior
I should get a preview of the my changes
Actual Behavior
The process crashes.
Output of
pulumi about
No response
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: