-
-
Notifications
You must be signed in to change notification settings - Fork 272
feat(variables): Add variable types to default_origin, cache_behavior, ordered_cache_behavior. #167
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
base: master
Are you sure you want to change the base?
Conversation
domain_name = origin.value.domain_name | ||
origin_id = lookup(origin.value, "origin_id", origin.key) | ||
origin_path = lookup(origin.value, "origin_path", "") | ||
connection_attempts = lookup(origin.value, "connection_attempts", null) | ||
connection_timeout = lookup(origin.value, "connection_timeout", null) | ||
origin_access_control_id = lookup(origin.value, "origin_access_control_id", lookup(lookup(aws_cloudfront_origin_access_control.this, lookup(origin.value, "origin_access_control", ""), {}), "id", null)) | ||
|
||
dynamic "s3_origin_config" { | ||
for_each = length(keys(lookup(origin.value, "s3_origin_config", {}))) == 0 ? [] : [lookup(origin.value, "s3_origin_config", {})] | ||
|
||
content { | ||
origin_access_identity = lookup(s3_origin_config.value, "cloudfront_access_identity_path", lookup(lookup(aws_cloudfront_origin_access_identity.this, lookup(s3_origin_config.value, "origin_access_identity", ""), {}), "cloudfront_access_identity_path", null)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all origin params have been re-ordered to match provider documentation and remove opinionation.
note: there's more |
This PR has been automatically marked as stale because it has been open 30 days |
Not stale On Sep 26, 2025, at 08:08, github-actions[bot] ***@***.***> wrote:github-actions[bot] left a comment (terraform-aws-modules/terraform-aws-cloudfront#167)
This PR has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this PR will be closed in 10 days
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Adds typing to the variable
origin
instead of usingtype = any