Avoiding conflicts when using github provider to create repositories and labels? #2486
-
I'm using (well, trying to use) OpenTofu to manage the repository configuration for a github organization. My plan was to use
I can't import the labels before running
This makes the process very difficult to automate, since (a) you have to expect a failure, and (b) you need to know what resources to import. This seems like it ought to be simple, but I'm new to OpenTofu/Terraform. Am I missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Having done this in the past, I think this is a problem with the GitHub provider. Normally, you would want the labels to be not created by default and then create them yourself, but this does not seem possible. I think this is covered in integrations/terraform-provider-github#2089, I would suggest upvoting and commenting on this issue so the devs see that this is a problem. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the pointer to the issue! I see there's an unreviewed pull request that has been sitting around since October that purports to fix the problem. |
Beta Was this translation helpful? Give feedback.
Having done this in the past, I think this is a problem with the GitHub provider. Normally, you would want the labels to be not created by default and then create them yourself, but this does not seem possible.
I think this is covered in integrations/terraform-provider-github#2089, I would suggest upvoting and commenting on this issue so the devs see that this is a problem.