v1.0.0
feat: Backport cloudposse/cloudfront-cdn/aws improvements Jakub Wądołowski (@jwadolowski) (#340)
## whatBackport of the following cloudposse/terraform-aws-cloudfront-cdn improvements:
- cloudposse/terraform-aws-cloudfront-cdn#140
- cloudposse/terraform-aws-cloudfront-cdn#142
- cloudposse/terraform-aws-cloudfront-cdn#147
- cloudposse/terraform-aws-cloudfront-cdn#149
Detailed breakdown:
aws_s3_bucket_cors_configurationis deployed only when at least one CORS origin is defined (examples/complete/minimal.tffails if this isn't handled)- don't use
lookup()(or any other default variable value fallback method) - all defaults should be defined in thevariables.tffile - wrap optional variables with
optional()and provide sane defaults (in most cases that'd be empty string/list/nullor predefined AWS default when applicable, e.g. timeout values) - default origin
- add
origin_keepalive_timeoutandorigin_read_timeout
- add
- custom origin improvements
- enable shield configuration
- custom s3 origins
- allow for shield configuration
- fix
origin_access_control_idassignment (origin.value.s3_origin_config.origin_access_control_iddoesn't exist, butorigin.value.origin_access_control_iddoes)
- ordered cache improvements
- gRPC support
cookieblock should setwhitelisted_namesparam only whenforward=whitelist(in all other cases,allandnone, thewhitelisted_namesis automatically set tonull)
why
Both CloudPosse CDN modules should stay in sync (feature-wise) and leverage the same set of improvements.
references
includes #347 to re-generate docs after changes.#347should get merged first