@static defines S3 buckets for hosting static assets


This .arc file defines static buckets:


staging test-bukkit
production main-bukkit

Note: S3 buckets are global to AWS so if at first you don't succeed, try picking another bucket name


Locally, if the folder /public exists, whenever you run npx deploy the contents are synchronized to the staging bucket. If you set ARC_DEPLOY=production the contents of /public are deployed to the production bucket.

To only deploy static assets from /public (and not function sources from /src), you can provide any of --static, static or -s flags, i.e. npx deploy static.

To delete remote static assets on the S3 bucket that do not exist locally, provide the optional --delete flag, i.e. npx deploy static --delete.

Next: Create dynamo tables with @tables