You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Receiving error when running terraform plan when using no optional settings.
The code that is causing the error: condition = length(var.cloudfront_geo_restriction_locations) == 2
Default value of cloudfront_geo_restriction_locations if undefined by user is [].
Error Message
│ Error: Invalid value for variable
│
│ on .terraform/modules/cloudfront-s3-website/variables.tf line 62:
│ 62: variable "cloudfront_geo_restriction_locations" {
│ ├────────────────
│ │ var.cloudfront_geo_restriction_locations is empty tuple
│
│ must be a valid ISO 3166-1-alpha-2 code
│
│ This was checked by the validation rule at .terraform/modules/cloudfront-s3-website/variables.tf:65,3-13.
Problem
condition = length(var.cloudfront_geo_restriction_locations) == 2
Error Message
Current settings/version
Proposed solution
Remove the validation causing the error from these lines.
The text was updated successfully, but these errors were encountered: