diff --git a/locals.tf b/locals.tf index 230810b..128ba87 100644 --- a/locals.tf +++ b/locals.tf @@ -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 = [] })