-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Labels
area/new-resourceLabel for new resources being asked/proposedLabel for new resources being asked/proposedmaintainer/need-followupstage/needs-feedbackNeeds feedback from the community (are you also interested in/experiencing this?)Needs feedback from the community (are you also interested in/experiencing this?)type/feature
Description
SAM should provide a way to easily create static websites hosted on S3 and CloudFront. The purpose of this Issue is to gather requirements from the community to ensure we address primary use-cases.
Requirements:
- Create an S3 Bucket configured with
WebsiteConfiguration- Option for enabling S3 redirect configuration for clean SPA routes
- Allow specifying
CodeUriwhich points to the assets directory to upload to S3.- Currently, Lambda Functions get uploaded to an existing S3 Bucket prior to SAM transformation, whereas the S3 bucket for websites will be created within the stack. One option is to upload to an existing S3 Bucket (the same one used for Lambda and APIs) and have a CloudFormation Custom Resource for copying to the Website S3 bucket.
- The same Custom Resource could be used for deployments (invalidate CloudFront cache)
CodeUrishould be optional to allow users to handle UI deployments external to SAM.- We may decide to punt the CodeUri/Deployment story as a follow-up so that we can deliver the infrastructure story first.
- Create a CloudFront distribution to provide caching, edge nodes, custom domain support, etc.
- CloudFront distribution should provide opinionated defaults, but all properties should be configurable by end user
- Allow for specifying a custom domain name
- Route53 configuration
- ACM Certificate (optionally pass in your own)
- Support for redirecting non-www to www
Please describe your use case and let us know how SAM could make it easier for you to create websites.
brysontyrrell, Dunedan, jaxondu, Nr18, mtoftum and 54 more
Metadata
Metadata
Assignees
Labels
area/new-resourceLabel for new resources being asked/proposedLabel for new resources being asked/proposedmaintainer/need-followupstage/needs-feedbackNeeds feedback from the community (are you also interested in/experiencing this?)Needs feedback from the community (are you also interested in/experiencing this?)type/feature