https://pulumi.com logo
#general
Title
# general
p

polite-sandwich-68547

06/19/2023, 12:03 PM
what a strange error I got using `pulumi import`:
Copy code
error: preview failed: failed to validate provider config: could not find latest version for provider cloudwatch: 404 HTTP error fetching plugin from <https://api.github.com/repos/pulumi/pulumi-cloudwatch/releases/latest>. If this is a private GitHub repository, try providing a token via the GITHUB_TOKEN environment variable. See: <https://github.com/settings/tokens>
e

echoing-dinner-19531

06/19/2023, 2:11 PM
import needs a provider to do the data read, and it defaults to trying to lookup an first class provider from pulumi but we don't have a cloudwatch provider so it fails. The private warning is so that users trying to download a private provider get a hint that they might just be missing their github token.