repository import: "inputs to import do not match the existing resource" #757
Labels
area/import
An issue related to `pulumi import` or the import resource option.
kind/bug
Some behavior is incorrect or out of spec
We use the automation API to create repositories based on desired state. Sometimes we need to import a repository.
At this time, we set very few properties, and want everything else to default (securityAndAnalysis already failed this. so we work around it):
This works fine and reconciles when we create the repository through pulumi. But on importing, it will fail very nondescript.
This is a repository without any special settings, created via GitHub Web.
When attempting to import this resource via pulumi CLI, I get the supposedly imported properties:
When trying to set these when importing, it still fails. Without any hint as to what's missing:
(setting private and visibility will fail, and default branch emits warnings as seen above; oh and githubProvider is needed because pulumi via
auto.EnvVars
didn't pick up on app config via environment at all!)Can you give me any pointers as to what I can do that's not stopping the entire thing and editing the state by hand (by basing it on another created by pulumi).
importing via CLI creates bricked state:
The text was updated successfully, but these errors were encountered: