Skip to content

Commit

Permalink
r/aws_elasticsearch_domain: Treat SUCCEEDED_WITH_ISSUES status as s…
Browse files Browse the repository at this point in the history
…uccess when upgrading cluster.
  • Loading branch information
ewbankkit committed Aug 23, 2024
1 parent d13a494 commit 2840da0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .changelog/38086.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
```release-note:enhancement
```release-note:bug
resource/aws_elasticsearch_domain_policy: Change `domain_name` to [ForceNew](https://developer.hashicorp.com/terraform/plugin/sdkv2/schemas/schema-behaviors#forcenew)
```

```release-note:enhancement
resource/aws_elasticsearch_domain: Treat `SUCCEEDED_WITH_ISSUES` status as success when upgrading cluster
```
2 changes: 1 addition & 1 deletion internal/service/elasticsearch/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,7 @@ func statusDomainUpgrade(ctx context.Context, conn *elasticsearch.Client, name s
func waitUpgradeSucceeded(ctx context.Context, conn *elasticsearch.Client, name string, timeout time.Duration) (*elasticsearch.GetUpgradeStatusOutput, error) {
stateConf := &retry.StateChangeConf{
Pending: enum.Slice(awstypes.UpgradeStatusInProgress),
Target: enum.Slice(awstypes.UpgradeStatusSucceeded),
Target: enum.Slice(awstypes.UpgradeStatusSucceeded, awstypes.UpgradeStatusSucceededWithIssues),
Refresh: statusDomainUpgrade(ctx, conn, name),
Timeout: timeout,
MinTimeout: 10 * time.Second,
Expand Down

0 comments on commit 2840da0

Please sign in to comment.