Skip to content

Commit

Permalink
Use coalesce for georestriction variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomdango committed Jul 14, 2023
1 parent e7d5f19 commit af7ee31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ locals {
acm_certificate_arn = var.cloudfront.acm_certificate_arn
assets_paths = coalesce(var.cloudfront.assets_paths, [])
custom_headers = coalesce(var.cloudfront.custom_headers, [])
geo_restriction = try(var.cloudfront.geo_restriction, {
geo_restriction = coalesce(try(var.cloudfront.geo_restriction, null), {
restriction_type = "none"
locations = []
})
Expand Down

0 comments on commit af7ee31

Please sign in to comment.