fix: type var.instance and use spec-derived for_each keys in legacy modules#538
Merged
Conversation
…apply Type variable "instance" with object spec and remove use_ack_acm gating from for_each maps (ack_acm_resources, acm_cert secrets, acm_modified_domains) to prevent unknown for_each keys when ack_acm_controller_details is unresolved on first apply. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Same fix as AWS — typed var.instance.spec prevents merge() tainting on first apply. Includes use_dns01 and dns01_cluster_issuer fields used by both modules. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
sanmesh-kakade
requested review from
anshulsao,
ishaankalra,
pramodh-ayyappan,
rr0hit,
unni-facets and
vishnukv-facets
as code owners
March 25, 2026 08:30
Contributor
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
WalkthroughType constraints strengthened on the Changes
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 Trivy (0.69.3)Trivy execution failed: Unknown error Comment |
unni-facets
approved these changes
Mar 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
variable "instance"withobject({spec = ...})across all three legacy modules (AWS, GCP, Azure) to preventmerge()tainting withtype=anythat causes unknownfor_eachkeys on first applyuse_ack_acmgating fromack_acm_resources,acm_certsecrets, andacm_modified_domains— now iterates over spec-derived values (always known at plan time) instead ofvar.inputs.ack_acm_controller_details(potentially unknown on first apply)facets-modules-redesign(3dfb8f3for AWS,70d419bfor GCP/Azure)Modules changed
modules/ingress/nginx_gateway_fabric_legacy_aws/1.0— typedinstancevariable + removeduse_ack_acmfor_eachgatingmodules/ingress/nginx_gateway_fabric_legacy_gcp/1.0— typedinstancevariablemodules/ingress/nginx_gateway_fabric_legacy_azure/1.0— typedinstancevariableTest plan
terraform plansucceeds on first apply (no unknownfor_eacherrors)instance🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Chores