Skip to content
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

fix: Fix cache_usage_limits issue when empty map (default value) is provided. #13

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

dszlawski-chaos
Copy link
Contributor

There is a bug in terraform provider which causes issues when deploying empty cache_usage_limits block (described here: hashicorp/terraform-provider-aws#36374), passing empty map in var.cache_usage_limits as [var.cache_usage_limits] generates list with one element [ null, ] which causes terraform to pass empty cache_usage_limits hence triggers provider bug.

Description

Passing empty map in var.cache_usage_limits as [var.cache_usage_limits] generates list with one element [ null, ] which causes terraform to pass empty cache_usage_limits

Motivation and Context

There is a bug in terraform provider which causes issues when deploying empty cache_usage_limits block (described here: hashicorp/terraform-provider-aws#36374), passing empty map in var.cache_usage_limits as [var.cache_usage_limits] generates list with one element [ null, ] which causes terraform to pass empty cache_usage_limits hence triggers provider bug.

Breaking Changes

None.

How Has This Been Tested?

Applied changes with updated module code.

There is a bug in terraform provider which causes issues when deploying empty cache_usage_limits block (described here: hashicorp/terraform-provider-aws#36374), passing empty map in var.cache_usage_limits as [var.cache_usage_limits] generates list with one element [ null, ] which causes terraform to pass empty cache_usage_limits hence triggers provider bug.
@dszlawski-chaos dszlawski-chaos changed the title Fix cache_usage_limits issue when empty map (default value) is provided. fix: Fix cache_usage_limits issue when empty map (default value) is provided. Sep 9, 2024
Copy link
Member

@bryantbiggs bryantbiggs left a comment

Choose a reason for hiding this comment

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

thank you!

@bryantbiggs bryantbiggs merged commit 2a02a2c into terraform-aws-modules:master Sep 9, 2024
14 of 15 checks passed
antonbabenko pushed a commit that referenced this pull request Sep 9, 2024
## [1.2.3](v1.2.2...v1.2.3) (2024-09-09)

### Bug Fixes

* Fix cache_usage_limits issue when empty map (default value) is provided. ([#13](#13)) ([2a02a2c](2a02a2c))
@antonbabenko
Copy link
Member

This PR is included in version 1.2.3 🎉

Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants