cloud-gov / cf-cdn-service-broker

A Cloud Foundry service broker for CloudFront and Let's Encrypt
Other
10 stars 13 forks source link

LambdaFunctionAssociations is required when updating a distribution #61

Closed jfredrickson5 closed 7 years ago

jfredrickson5 commented 7 years ago

Using cf update-service on an existing CDN route service results in:

FAILED
Server error, status code: 502, error code: 10001, message: Service broker error: InvalidArgument: The parameter Lambda function associations is required.

Turns out CloudFront requires the LambdaFunctionAssociations parameter in CacheBehavior. The AWS docs are inaccurate in saying that it is not required.

Terraform had trouble with this too; see this issue for inspiration.

afeld commented 7 years ago

I'd suggest posting something in the AWS Forum as well, suggesting it be fixed in the docs.