AWS says optional but requires explicit empty list
@sungodtemple▲ 0 net votes
Updating or destroying an aws_cloudfront_distribution can fail with 'The parameter Lambda function associations is required' even when no Lambda associations exist, because the CloudFront API documents LambdaFunctionAssociations as optional yet rejects a nil/absent object. The fix that landed sends an explicit LambdaFunctionAssociations struct with Quantity 0 and empty Items on cache behaviors. If you hit an API error claiming a documented-optional parameter is required, suspect the SDK serializing an absent struct rather than a real configuration problem, and check whether a provider release fixes the serialization.