aws_elasticsearch_domain apply changes the resource on every execution #205
Labels
bug
Addresses a defect in current functionality.
service/elasticsearch
Issues and PRs that pertain to the elasticsearch service.
This issue was originally opened by @caquino as hashicorp/terraform#7763. It was migrated here as part of the provider split. The original body of the issue is below.
Hi there,
Elasticsearch domain keeps being changed on every terraform run.
Terraform Version
Terraform v0.7.0-dev (a44573140bfcb26399494df71e89c902e540623d+CHANGES)
Affected Resource(s)
Terraform Configuration Files
Debug Output
As terraform does not crash does not appear to be relevant, but it can be sent upon request.
Panic Output
No crash.
Expected Behavior
After the first execution the resource should not be modified unless some parameter change is made.
Actual Behavior
terraform apply finishes without any error:
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
The state of your infrastructure has been saved to the path
below. This state is required to modify and destroy your
infrastructure, so keep it safe. To inspect the complete state
use the
terraform show
command.State path: terraform.tfstate
Then if a terraform plan is executed
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but
will not be persisted to local or remote state storage.
aws_elasticsearch_domain.main: Refreshing state... (ID: REDACTED)
The Terraform execution plan has been generated and is shown below.
Resources are shown in alphabetical order for quick scanning. Green resources
will be created (or destroyed and then created if an existing resource
exists), yellow resources are being changed in-place, and red resources
will be destroyed. Cyan entries are data sources to be read.
Note: You didn't specify an "-out" parameter to save this plan, so when
"apply" is called, Terraform can't guarantee this is what will execute.
~ aws_elasticsearch_domain.main
access_policies: "{"Statement":[{"Action":"es:","Condition":{"IpAddress":{"aws:SourceIp":"192.168.0.0/24"}},"Effect":"Allow","Principal":"","Resource":"REDACTED:domain/test/"}],"Version":"2012-10-17"}" => "{"Statement":[{"Action":"es:","Condition":{"IpAddress":{"aws:SourceIp":["192.168.0.0/24"]}},"Effec
t":"Allow","Principal":"*"}],"Version":"2012-10-17"}"
advanced_options.rest.action.multi.allow_explicit_index: "false" => "1"
Plan: 0 to add, 1 to change, 0 to destroy.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
terraform plan
orterraform apply
Important Factoids
No interesting facts
The text was updated successfully, but these errors were encountered: