Can i run Terraform only once ? #1557
Unanswered
anpolychrono
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a problem where I want to create a user only if it doesn't exists. The provider has a data resource to check the existing users, so I can use it to decide when to create a user. But on the 2nd run of plan/apply the user will be deleted. How would you handle it ? I am thinking if there is an option to run the Terraform only once meaning disable reconcile, this way i will be sure that the new user is not delete on the 2nd run :
Code example:
Beta Was this translation helpful? Give feedback.
All reactions