terraform-aws-cloudfront-cdn icon indicating copy to clipboard operation
terraform-aws-cloudfront-cdn copied to clipboard

CloudFront Origin Group

Open air3ijai opened this issue 3 years ago • 0 comments

Describe the Feature

CloudFront has a future to create Origin Group which is very usefully for high availability configuration.

Expected Behavior

A way to configure Origin Group, like

  origin_groups = {
    primary_origin_id  = null # will get translated to the origin id of the origin created by this module.
    failover_origin_id = module.s3_bucket.bucket_id
    failover_criteria  = [
      403,
      404,
      500,
      502
    ]
  }

Use Case

Optimizing high availability with CloudFront origin failover

Describe Ideal Solution

Such an option is already supported in the module cloudposse/cloudfront-s3-cdn/aws. Something similar will be a good option.

Thank you!

air3ijai avatar Dec 15 '21 22:12 air3ijai