Skip to content

Instantly share code, notes, and snippets.

@mmyoji
Created April 21, 2023 09:28
Show Gist options
  • Save mmyoji/1ed2d01b558b4d8078d32e8af908f172 to your computer and use it in GitHub Desktop.
Save mmyoji/1ed2d01b558b4d8078d32e8af908f172 to your computer and use it in GitHub Desktop.
Path based routing w/ CloudFront to S3/ALB
# https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesPathPattern
# maybe settings are like the following:
- OriginSettings:
- OriginDomain: MY-EXAMPLE-BUCKET.s3.ap-northeast-1.amazonaws.com
OriginPath: /static
- OriginDomain: example-load-balancer-1234567890.ap-northeast-1.alb.amazonaws.com
OriginPath: *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment