Skip to content

Commit

Permalink
Merge pull request #28901 from hashicorp/b-elasticsearch-iops-diff
Browse files Browse the repository at this point in the history
`aws_elasticsearch_domain`: Fix persistent IOPS diff
  • Loading branch information
jar-b authored Jan 17, 2023
2 parents 8a25f61 + c0eb0de commit 462e1c2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/28901.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/aws_elasticsearch_domain: Prevent persistent `iops` diff
```
1 change: 1 addition & 0 deletions internal/service/elasticsearch/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ func ResourceDomain() *schema.Resource {
"iops": {
Type: schema.TypeInt,
Optional: true,
Computed: true,
},
"throughput": {
Type: schema.TypeInt,
Expand Down
4 changes: 2 additions & 2 deletions internal/service/elasticsearch/domain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,7 @@ func TestAccElasticsearchDomain_update(t *testing.T) {
}})
}

func TestAccElasticsearchDomain_UpdateVolume_type(t *testing.T) {
func TestAccElasticsearchDomain_VolumeType_update(t *testing.T) {
if testing.Short() {
t.Skip("skipping long-running test in short mode")
}
Expand Down Expand Up @@ -1392,7 +1392,7 @@ func TestAccElasticsearchDomain_UpdateVolume_type(t *testing.T) {
}

// Reference: https://github.com/hashicorp/terraform-provider-aws/issues/13867
func TestAccElasticsearchDomain_WithVolumeType_missing(t *testing.T) {
func TestAccElasticsearchDomain_VolumeType_missing(t *testing.T) {
if testing.Short() {
t.Skip("skipping long-running test in short mode")
}
Expand Down

0 comments on commit 462e1c2

Please sign in to comment.