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

Pulumi preview hangs forever when trying to getRoleDefinitionOutput(..) for non existing role #2516

Open
kraakevik opened this issue Oct 3, 2024 · 0 comments
Labels
kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team

Comments

@kraakevik
Copy link

kraakevik commented Oct 3, 2024

Describe what happened

Tried getting a role definition using getRoleDefinitionOutput but accidentally mistyped the role name to something non-existing. Unexpectedly this causes pulumi up to hang forever in the planning phase without any errors.

Sample program

const subscriptionId = authorization_native.getClientConfigOutput().subscriptionId
let provider = new azure.Provider("test", {subscriptionId: subscriptionId})
let scope = pulumi.interpolate`/subscriptions/${subscriptionId}`
let roleDefinition = authorization.getRoleDefinitionOutput({ name: "not-existing", scope: scope }, {provider: provider})

Log output

No response

Affected Resource(s)

No response

Output of pulumi about

CLI
Version 3.117.0
Go Version go1.22.3
Go Compiler gc

Plugins
KIND NAME VERSION
resource azure 6.3.1
resource azure-native 2.64.2
resource azuread 5.53.5
language nodejs unknown

Host
OS ubuntu
Version 22.04
Arch x86_64

This project is written in nodejs: executable='/home//.nvm/versions/node/v20.14.0/bin/node' version='v20.14.0'

Dependencies:
NAME VERSION
@pulumi/azure-native 2.64.2
@pulumi/azure 6.3.1
@pulumi/azuread 5.53.5
@pulumi/pulumi 3.135.0
@types/js-yaml 4.0.9
js-yaml 4.1.0

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).

@kraakevik kraakevik added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team
Projects
None yet
Development

No branches or pull requests

1 participant