mirror of
https://github.com/floci-io/floci.git
synced 2026-11-26 15:21:05 -05:00
Real CloudFront always returns DistributionConfig.OriginGroups and DistributionConfig.Restrictions on Create/Get/ListDistributions. Floci omitted both, so the Terraform AWS provider dereferenced a nil OriginGroups.Quantity and panicked while flattening the distribution. Emit an empty OriginGroups block plus a Restrictions/GeoRestriction block (defaulting to RestrictionType "none") in the distribution config body and in distribution summaries, and parse an incoming GeoRestriction so submitted restriction types and locations are echoed back. Closes #1930