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.
Description
This pull request updates the
customer_gateways
variable to use an object type instead ofany
, as outlined in Terraform's best practices. By providing an object structure formap
, the configuration becomes clearer and easier to validate, leading to more predictable outcomes.Official : https://developer.hashicorp.com/terraform/language/expressions/type-constraints#dynamic-types-the-any-constraint
Motivation and Context
bgp_asn
andip_address
are consistently provided.any
type, which is discouraged due to the absence of specific typing.Breaking Changes
bgp_asn
andip_address
), they will encounter validation errors during deployment.null
or another specified default value, which should be accounted for in downstream logic.customer_gateways
definitions and update them to match the new object structure to ensure successful deployment.How Has This Been Tested?
I have updated at least one of the
examples/*
projects to verify this change.I have tested and validated these changes using one or more of the provided
examples/*
projects:I have executed
pre-commit run -a
on this pull request to ensure compliance.I have verified these changes do not introduce breaking errors in deployment.