Skip to content

Es/fix Terraform domain deploy #12843

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

Merged
merged 4 commits into from
Jul 8, 2025
Merged

Conversation

cloutierMat
Copy link
Contributor

@cloutierMat cloutierMat commented Jul 8, 2025

Motivation

Reported by a customer, creating a elasticsearch domain would fail unsing Terraform. The Terraform provider was looking for DomainProcessingStatus=Active. Since this property was not returned by LocalStack the apply would immediately fail.

This pr starts the implementation of DomainProcessingStatus through the Domain lifecycle.

As I was testing with Terraform, I noticed that most values provided by the user were not being added to the created resource, we would instead only add the default value. This would create issue on subsequent applies. There is still much to do to have CRUD layer parity AWS, but I started the process of at least using the user's value when creating the original DomainStatus.

Changes

  • Changed test_create_domain to a validated test_domain_lifecycle tests
  • Fixed Cfn tests and updated it's snapshot
  • Now updating the value of DomainProcessingStatus though the Domain lifecycle
  • Improved get_domain_status to use the user request to improve it's default values

@cloutierMat cloutierMat added aws:es AWS Elasticsearch semver: patch Non-breaking changes which can be included in patch releases labels Jul 8, 2025
Copy link

github-actions bot commented Jul 8, 2025

Test Results - Preflight, Unit

21 854 tests  ±0   20 197 ✅ ±0   6m 17s ⏱️ -1s
     1 suites ±0    1 657 💤 ±0 
     1 files   ±0        0 ❌ ±0 

Results for commit 1310437. ± Comparison against base commit 10e25f6.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jul 8, 2025

Test Results (amd64) - Acceptance

7 tests  ±0   5 ✅ ±0   3m 10s ⏱️ +4s
1 suites ±0   2 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit 1310437. ± Comparison against base commit 10e25f6.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jul 8, 2025

Test Results (amd64) - Integration, Bootstrap

    5 files      5 suites   2h 20m 59s ⏱️
5 280 tests 4 352 ✅ 928 💤 0 ❌
5 286 runs  4 352 ✅ 934 💤 0 ❌

Results for commit 1310437.

♻️ This comment has been updated with latest results.

@cloutierMat cloutierMat force-pushed the es/add-domain_processing_status branch from 7424e6e to 1310437 Compare July 8, 2025 17:29
@cloutierMat cloutierMat changed the title Es/add domain processing status Es/fix Terraform domain deploy Jul 8, 2025
Copy link

github-actions bot commented Jul 8, 2025

LocalStack Community integration with Pro

    2 files  ±0      2 suites  ±0   1h 43m 6s ⏱️ -37s
4 923 tests ±0  4 147 ✅ ±0  776 💤 ±0  0 ❌ ±0 
4 925 runs  ±0  4 147 ✅ ±0  778 💤 ±0  0 ❌ ±0 

Results for commit 1310437. ± Comparison against base commit 10e25f6.

This pull request removes 1 and adds 1 tests. Note that renamed tests count towards both.
tests.aws.services.opensearch.test_opensearch.TestOpensearchProvider ‑ test_create_domain
tests.aws.services.opensearch.test_opensearch.TestOpensearchProvider ‑ test_domain_lifecycle

@cloutierMat cloutierMat marked this pull request as ready for review July 8, 2025 18:31
Copy link
Member

@silv-io silv-io left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! This is awesome. Kudos on fixing the snapshot test as well.

@cloutierMat cloutierMat merged commit f0a1649 into master Jul 8, 2025
43 checks passed
@cloutierMat cloutierMat deleted the es/add-domain_processing_status branch July 8, 2025 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws:es AWS Elasticsearch semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants