How to work with issues and files created through the provider? #2212
mattias-fjellstrom
started this conversation in
General
Replies: 1 comment
-
Same thing for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a general question about two resources:
github_repository_file
andgithub_issue
(and there are possibly more resources that have the same issue).I thought about creating a module for setting up new repositories. Apart from configuring each repository in a given way, I also want each repository to have a few common files and some "starter issues".
However, once a team starts working with the repo they might make changes to these files, and they will work with and resolve the issues. But the next time I run a
terraform apply
I will reset the changes they have made.My question is, how are these resources supposed to be used? I could run a single
apply
and then remove them from my state and from my configuration, but that is a lot of manual work. I also understand that it wouldn't really make sense for Terraform to ignore the changes made to the files. It just feels like these resources really shouldn't be part of the provider. Could anyone enlighten me here?Beta Was this translation helpful? Give feedback.
All reactions