Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Multi-Origin Distribution in CloudFront with Copilot CLI #5755

Open
Raffasolaries opened this issue Apr 4, 2024 · 1 comment
Labels
area/override Issues related to overrides. type/enhancement Issues that are improvements for existing features. type/request Issues that are created by customers.

Comments

@Raffasolaries
Copy link

We are currently facing a limitation in configuring AWS CloudFront distributions through the Copilot CLI, specifically regarding the integration of multiple service types (static site and load-balanced web service) within a single distribution. The primary goal is to adhere to host header security best practices by having multiple origins with distinct cache behaviors on the same CloudFront distribution.

The current setup does not allow adding additional cache behaviors for different paths when the Load Balanced Web Service is used. This restriction hampers the ability to efficiently serve static assets alongside dynamic content under a unified CloudFront distribution.

To facilitate better architecture and security, we require the capability to configure multiple origins and corresponding cache behaviors within a single CloudFront distribution via the Copilot CLI. This feature is crucial for achieving optimal performance and security by allowing distinct caching strategies for static and dynamic content.

We kindly request the addition of this feature to support complex distributions and enhance the flexibility and security of applications deployed with the Copilot CLI.

@Lou1415926 Lou1415926 added type/enhancement Issues that are improvements for existing features. type/request Issues that are created by customers. labels Apr 5, 2024
@Lou1415926
Copy link
Contributor

Hey @Raffasolaries thanks for the feature request! That makes sense to me. Meanwhile, I think yaml patch (or cdk overrides if you are more familiar with cdk) may help unblock you!

@Lou1415926 Lou1415926 added the area/override Issues related to overrides. label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/override Issues related to overrides. type/enhancement Issues that are improvements for existing features. type/request Issues that are created by customers.
Projects
None yet
Development

No branches or pull requests

2 participants