-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
logicmonitor_device_group configuration drift #85
Comments
hey @ChrisCAG . i've faced similar issue with other resources when pass and some value for password are used. The problem is LM api returns password as ********** so it always thinks that you try to change it. eg for my psql devices i have custom properties like
so i had to use
this makes my plan clean.. but if i want to add more users / passwords i need to comment custom_properties in lifecycle block apply a code and uncomment it back.. for extra in logicmonitor_device_group basically i had to use the same approach..
because it was constantly spamming with changes i've never made |
Yeah, my aim is to incorporate this all into an automated CI/CD Pipeline to avoid state drift, keeping main as a good state only. obviously not being able to automate changes to properties or host groups isnt ideal. |
I used a combination of |
could I get an example of the code you've used for the above? forcing a replacement may mean we lose device specific configuration & tuning each time we replace it? |
I have the following configuration set on a device group.
When ever I run a plan for terraform, its constantly trying to remove configuration I've not specified
As you can see from the output, its trying to change a sensitive value constantly, (even though the vault is not updated) and its constantly trying to strip out the extra block.
if i add the following block to my configuration
I get the following error after an apply.
Expected outcome here is "your environment matches configuration"
The text was updated successfully, but these errors were encountered: