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

[BUG]: Output facing error when using response_headers_policy with empty array remove_headers #35

Closed
1 task done
DingGGu opened this issue Feb 11, 2025 · 1 comment · Fixed by #36
Closed
1 task done
Labels
⚠️ bug Categorize bug reports.

Comments

@DingGGu
Copy link
Contributor

DingGGu commented Feb 11, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Description of the bug

Cannot decode output

╷
│ Error: Splat of null value
│
│   on .terraform/modules/response_headers_policy/modules/response-headers-policy/outputs.tf line 33, in output "remove_headers":
│   33:   value       = toset(aws_cloudfront_response_headers_policy.this.remove_headers_config[0].items[*].header)
│     ├────────────────
│     │ aws_cloudfront_response_headers_policy.this.remove_headers_config[0].items is null
│
│ Splat expressions (with the * symbol) cannot be applied to null sequences.

Steps To Reproduce

Use modules/response-headers-policy

module "response_headers_policy" {
  source = "./modules/response-headers-policy"

  remove_headers = []
}

Which version of the app are you using?

1.2.0

@DingGGu DingGGu added the ⚠️ bug Categorize bug reports. label Feb 11, 2025
Copy link

👋 Welcome! Looks like this is your first issue.

Hey, thanks for your contribution! Please give us a bit of time to review it. 😄

Be sure to follow the issue template!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚠️ bug Categorize bug reports.
Projects
None yet
1 participant