-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
aws_elasticsearch_domain removing log_publishing_options continuously shows update #5752
Comments
Any ideas on this? |
I see the same behaviour:
|
Same behaviour here. Terraform v0.11.10 |
AWS' api for these log configuration settings is kind of bizarre. As far as I can tell, it is actually impossible to remove them. Once they get created, you cant remove them. But you can turn them off with the AWS management console (web site) displays them the same regardless of whether they exist but are turned off or don't exist (never were turned on). I ran into this issue and it looks like Terraform is trying to remove the log configurations rather than turning them off. You can work around it like this:
But I think that terraform should probably just set them to disabled instead of trying to delete them, OR work with AWS to fix the api so they can be deleted. |
Same issue. I think there was a similar thing some time ago when disabling masters - AFAIR it was resolved by ignoring the values when
and terraform:
Maybe TF should ignore other logs-related fields when |
Once logs have been enabled once, even if they're disabled afterwards, they will leave part of the configuration present but disable it. Terraform then thinks it needs to make a change to remove them, which does not work. This commit should make the terraform plan a little more quiet. See hashicorp/terraform-provider-aws#5752
The solution proposed here: #5752 (comment) does seem to work but it's only a client side workaround which is not ideal. |
Hi all, we are using this approach meanwhile to overcome the issue:
It brings us ability to not add additional useless code on client side at least. |
Any update on this issue? |
Any update on issue? |
This looks to be fixed now. I'm not sure when but I was having this issue, I have removed the lifecycle configuration and there is no plan diff |
With the resource
aws_elasticsearch_domain
originally I had definedlog_publishing_options
:Howerver I remove those blocks completely, but now everytime I run
plan
orapply
it is showing the follow in-place update:I've run apply multiple times, but the change persists. I believe this may be a bug.
The text was updated successfully, but these errors were encountered: