create site
Upload a folder, get a HTTPS URL. Private S3 origin + CloudFront in front.
bash
awsutopia create site <name> --src <dir> [--dry-run] [--json] [--yes]deploy site is an alias for the same thing.
What you'll get
- Private S3 bucket
utopia-{project}-{env}-site-{name}(encryption, versioning, public access blocked) - CloudFront distribution with the default
*.cloudfront.netcertificate (HTTPS from day one) - Utopia tags on the bucket + distribution so
list/destroycan find it - A printed URL + a rough static cost hint (or
COST_UNAVAILABLEonlist)
bash
awsutopia create site www --src ./dist
# you'll get something like:
# url: https://d1234abcd.cloudfront.net
awsutopia list
awsutopia destroy site www --yes| Flag | Default | Notes |
|---|---|---|
--src | required | Directory of static files to upload |
--dry-run | off | Print the plan; no AWS mutations |
--json | off | Machine-readable success / error envelope |
Custom domains (ACM + Route53) are a separate step: create domain.
HTTPS note
Sprint 6 ships HTTPS via CloudFront's default certificate first. That gets you a real URL without waiting on DNS. Attach your own name later with create domain.
Next
Point a custom name with create domain, tear down with destroy site.