Skip to content
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

[Bug]: aws_elasticsearch_domain has persistent diff when IOPS is omitted #28895

Closed
jar-b opened this issue Jan 13, 2023 · 3 comments · Fixed by #28901
Closed

[Bug]: aws_elasticsearch_domain has persistent diff when IOPS is omitted #28895

jar-b opened this issue Jan 13, 2023 · 3 comments · Fixed by #28901
Assignees
Labels
bug Addresses a defect in current functionality. service/elasticsearch Issues and PRs that pertain to the elasticsearch service.
Milestone

Comments

@jar-b
Copy link
Member

jar-b commented Jan 13, 2023

Terraform Core Version

v1.3.4

AWS Provider Version

v4.36.0

Affected Resource(s)

  • aws_elasticsearch_domain

Expected Behavior

If EBS options are enabled, and ebs_options.0.iops is omitted, no diff should be show on a subsequent plan.

Actual Behavior

A persistent diff is present on the iops attribute.

Relevant Error/Panic Output Snippet

Terraform will perform the following actions:

  # aws_elasticsearch_domain.example will be updated in-place
  ~ resource "aws_elasticsearch_domain" "example" {
        id                    = "arn:aws:es:eu-north-1:012345678901:domain/example"
        tags                  = {
            "Domain" = "TestDomain"
        }
        # (8 unchanged attributes hidden)

      ~ ebs_options {
          - iops        = 3000 -> null
            # (4 unchanged attributes hidden)
        }

        # (8 unchanged blocks hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

Terraform Configuration Files

terraform {
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "4.36.0"
    }
  }
}

provider "aws" {}

resource "aws_elasticsearch_domain" "example" {
  domain_name           = "example"
  elasticsearch_version = "7.10"

  cluster_config {
    instance_type = "t3.small.elasticsearch"
  }

  ebs_options {
    ebs_enabled = true
    volume_size = 10
  }

  tags = {
    Domain = "TestDomain"
  }
}

Steps to Reproduce

  1. terraform init and terraform apply with the configuration above.
  2. terraform plan and observe diff

Debug Output

No response

Panic Output

No response

Important Factoids

The same issue documented in #27510, but for the elasticsearch namespace version of this resource.

References

No response

Would you like to implement a fix?

Yes

@jar-b jar-b added bug Addresses a defect in current functionality. needs-triage Waiting for first response or review from a maintainer. and removed needs-triage Waiting for first response or review from a maintainer. labels Jan 13, 2023
@github-actions
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/elasticsearch Issues and PRs that pertain to the elasticsearch service. label Jan 13, 2023
@jar-b jar-b self-assigned this Jan 13, 2023
@github-actions github-actions bot added this to the v4.51.0 milestone Jan 17, 2023
@github-actions
Copy link

This functionality has been released in v4.51.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/elasticsearch Issues and PRs that pertain to the elasticsearch service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant