Skip to content

Conversation

@asri-badlah
Copy link

what

This PR updates the data.aws_iam_policy_document.default block in the OpenSearch module to ensure consistent ordering of principals and resources when generating the policy JSON.

why

Terraform was detecting in-place updates for aws_opensearch_domain_policy due to differences in array ordering between what AWS returns and what Terraform generates. This drift is harmless but causes unnecessary terraform plan changes and confusion.

This issue is especially apparent after upgrading Terraform or the AWS provider, as newer versions perform a strict literal comparison of JSON arrays.

matteomallus and others added 5 commits September 26, 2022 18:04
* Update go.sum

* Auto Format

* Update go.sum

* Update go.sum

* Update go.sum

* Fix versions

---------

Co-authored-by: cloudpossebot <[email protected]>
(cherry picked from commit c6e9dfe)
* Added AutoTune support

* Auto Format

* Update variables.tf

Co-authored-by: Igor Rodionov  <[email protected]>

* Update variables.tf

Co-authored-by: Igor Rodionov  <[email protected]>

* Update variables.tf

Co-authored-by: Igor Rodionov  <[email protected]>

* Auto Format

* Rework auto_tune variables to single object

* Try to fix variables.tf lint

* Auto Format

* Update variables.tf

Co-authored-by: Igor Rodionov  <[email protected]>

* Update variables.tf

Co-authored-by: Igor Rodionov  <[email protected]>

---------

Co-authored-by: cloudpossebot <[email protected]>
Co-authored-by: Igor Rodionov  <[email protected]>
(cherry picked from commit 7f83b65)
* Support ebs_throughput to enable using of gp3

* Auto Format

---------

Co-authored-by: cloudpossebot <[email protected]>
(cherry picked from commit dcd0c48)
@asri-badlah asri-badlah requested review from a team as code owners December 1, 2025 11:57
@mergify
Copy link

mergify bot commented Dec 1, 2025

💥 This pull request now has conflicts. Could you fix it @asri-badlah? 🙏

@mergify mergify bot added conflict This PR has conflicts triage Needs triage labels Dec 1, 2025
@matteomallus matteomallus force-pushed the canonicalize-openSearch-IAM-policy branch from 22055e1 to 3036720 Compare December 1, 2025 14:43
@mergify
Copy link

mergify bot commented Dec 1, 2025

Important

Cloud Posse Engineering Team Review Required

This pull request modifies files that require Cloud Posse's review. Please be patient, and a core maintainer will review your changes.

To expedite this process, reach out to us on Slack in the #pr-reviews channel.

@mergify mergify bot added the needs-cloudposse Needs Cloud Posse assistance label Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conflict This PR has conflicts needs-cloudposse Needs Cloud Posse assistance triage Needs triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants