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

key group does not default to null #307

Open
JamesCalleja opened this issue May 8, 2024 · 0 comments
Open

key group does not default to null #307

JamesCalleja opened this issue May 8, 2024 · 0 comments
Labels
bug 🐛 An issue with the system

Comments

@JamesCalleja
Copy link

Describe the Bug

key group defaults to an empty list and this does not allow conditional use

variable "trusted_key_groups" {
type = list(string)
default = []
description = "A list of key group IDs that CloudFront can use to validate signed URLs or signed cookies."
}

Expected Behavior

should be allowed to pass an empty sting and default to null value

Steps to Reproduce

{ zone_id = "XXXXXXXXXXx"
domain_name = "domain-name.com"
bucket = "XXXXXX.s3.amazonaws.com"
trusted_key_groups = ""
comment = "CloudFront"
},

Screenshots

No response

Environment

No response

Additional Context

to fix please update variables

variable "trusted_key_groups" {
type = list(string)
default = null
description = "A list of key group IDs that CloudFront can use to validate signed URLs or signed cookies."
}

@JamesCalleja JamesCalleja added the bug 🐛 An issue with the system label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
Development

No branches or pull requests

1 participant