Hello, I’m trying to run Pulumi inside of an AWS C...
# general
l
Hello, I’m trying to run Pulumi inside of an AWS CodeBuild Runner, but it instantly hits rate limiting when trying to download Pulumi plugins from GitHub.
Copy code
E0514 22:00:43.551374     229 plugins.go:600] GitHub rate limit exceeded for <https://api.github.com/repos/pulumiverse/pulumi-time/releases/tags/v0.1.1>, try again in 6m52.448632995s. You can set GITHUB_TOKEN to make an authenticated request with a higher rate limit.
    pulumi:providers:time default_0_1_1_github_/api.github.com/pulumiverse/pulumi-time  error: Could not automatically download and install resource plugin 'pulumi-resource-time' at version v0.1.1, install the plugin using `pulumi plugin install resource time v0.1.1 --server <github://api.github.com/pulumiverse/pulumi-time>`: error downloading provider time to file: failed to download plugin: time-0.1.1: rate limit exceeded: 403 HTTP error fetching plugin from <https://api.github.com/repos/pulumiverse/pulumi-time/releases/tags/v0.1.1>
I’ve tried setting GITHUB_TOKEN to a PAT as the error message suggests, but that just gives an error that the PAT doesn’t have access to the repo. I configured the PAT to have permissions to public repos, but the public repo in this case would be Pulumi or Pulumiverse, not one under my user. I'm not seeing anything on GitHub for making a token that specifically has access to other people's public repos. Anyone know how to solve this?
Copy code
@ previewing update....E0514 23:35:54.453200     245 plugins.go:600] GitHub rate limit exceeded for <https://api.github.com/repos/pulumiverse/pulumi-time/releases/tags/v0.1.1>, try again in 26m47.546835696s. Your current GITHUB_TOKEN doesn't allow access to the repository, so we disabled it for this request. You can set GITHUB_TOKEN to a different token to make a request with a higher rate limit.
    pulumi:providers:time default_0_1_1_github_/api.github.com/pulumiverse/pulumi-time  error: Could not automatically download and install resource plugin 'pulumi-resource-time' at version v0.1.1, install the plugin using `pulumi plugin install resource time v0.1.1 --server <github://api.github.com/pulumiverse/pulumi-time>`: error downloading provider time to file: failed to download plugin: time-0.1.1: rate limit exceeded: 403 HTTP error fetching plugin from <https://api.github.com/repos/pulumiverse/pulumi-time/releases/tags/v0.1.1>
The issue here was that I was pulling the GitHub token from Parameter Store via the AWS CLI tool, and even if you use
--query
it returns the value surrounded in quotes. The solution was to use
jq -r
instead of
--query
. Better than that, I've switched to using a custom Docker image which installs all necessary Pulumi plugins beforehand.