01
Static assets bucket
Holds built front-end files, read by CloudFront through an origin access identity.
Component 10
Store built front-end assets and Lambda deployment packages in S3.
Inputs in, outputs out. Illustrative wiring, not a standalone deployment.
Supply primary and DR regions and an account id. Pass the CloudFront origin access identity so the bucket policy grants the distribution read access and nobody else. Configure provider requirements and credentials in your root module; check the documentation for all required inputs and version changes.
module "storage" {
source = "pomo-studio/ssr-storage/aws"
version = "~> 0.2"
app_name = "my-app"
account_id = data.aws_caller_identity.current.account_id
primary_region = "us-east-1"
dr_region = "us-west-2"
enable_dr = true
}Key inputs
Useful outputs
01
Holds built front-end files, read by CloudFront through an origin access identity.
02
Holds the Lambda packages each region runs from.
03
Versioning on everywhere; the assets bucket replicates to the DR region.
Built with