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

Download error for third party provider is misleading #512

Open
jaxxstorm opened this issue Oct 17, 2023 · 4 comments
Open

Download error for third party provider is misleading #512

jaxxstorm opened this issue Oct 17, 2023 · 4 comments
Labels
awaiting-feedback kind/bug Some behavior is incorrect or out of spec

Comments

@jaxxstorm
Copy link

jaxxstorm commented Oct 17, 2023

What happened?

I am trying to use a YAML program with a third party community provider.

Instead of using the provider url to download, it is reaching out to the Pulumi repo:

 pulumi:pulumi:Stack (aws-accounts-example):
    E1017 11:27:07.867952   47371 log.go:91] GitHub rate limit exceeded for https://api.github.com/repos/pulumi/pulumi-awscontroltower/releases/latest, try again in 59m15.132057s. You can set GITHUB_TOKEN to make an authenticated request with a higher rate limit.
    E1017 11:27:07.903415   47371 log.go:91] GitHub rate limit exceeded for https://api.github.com/repos/pulumi/pulumi-awscontroltower/releases/latest, try again in 59m16.09659s. You can set GITHUB_TOKEN to make an authenticated request with a higher rate limit.

I tried adding the pluginDownloadURL property to the provider with no luck

Example

name: aws-accounts
runtime: yaml
description: A Pulumi YAML program to create an AWS account in AWS Control Tower
resources:
  provider:
    type: pulumi:providers:awscontroltower
    options:
      pluginDownloadURL: "github://api.github.com/lbrlabs"

Output of pulumi about

N/A

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

@jaxxstorm jaxxstorm added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Oct 17, 2023
@justinvp justinvp added awaiting-feedback and removed needs-triage Needs attention from the triage team labels Oct 18, 2023
@justinvp
Copy link
Member

@jaxxstorm, I can't repro this. When I run the above program, it downloads the plugin. From the Slack thread, could it be that you were running into this before a version of that provider was released on GitHub?

@jaxxstorm
Copy link
Author

i think this was because the publish hadn't finished, I believe the error is misleading.

@Frassle
Copy link
Member

Frassle commented Oct 21, 2023

I believe the error is misleading.

Agree'd. If a download URL is given we shouldn't ever be falling back to github.com/pulumi/. Suggests that somewhere along the line the URL got lost.

@jaxxstorm jaxxstorm changed the title Unable to download third party provider Download error for third party provider is misleading Oct 22, 2023
@jaxxstorm
Copy link
Author

I've updated the issue title to better reflect the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-feedback kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

3 participants