Title: Update quoted type constraints to compliance with Terraform 0.15.3 #54
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.
Pull Request Description
Description
This pull request addresses the issue of deprecated quoted references and type constraints in the AWS static site example, which is causing errors and warnings when running
terraform init
. The errors are related to usage of quoted references for type constraints, a behavior deprecated in versions later than Terraform 0.11. This PR updates the references to align with the new Terraform standards.Changes Made
.terraform/modules/my_site.aws_reverse_proxy/aws_reverse_proxy/variables.tf
.terraform/modules/my_site.aws_static_site/variables.tf
Resolution
Updated the type constraints to remove the quotes around "map" and updated to
map(string)
to explicitly indicate that the map elements are strings, as per Terraform latest version requirements.Testing Done
Tested the changes locally by running
terraform init
to confirm that the errors related to invalid quoted type constraints no longer occur. Additionally, verified that the changes did not impact the functionality of the AWS static site deployment.Version Info
This PR resolves the deprecation warnings and errors and ensures the AWS static site example is compatible with the latest Terraform standards.