This project is a serverless helper for configuring Cache-Control headers on objects uploaded to S3.
Node installed on the deployment machine
Create a .env
in the root directory of this project containing the necessary settings:
S3_BUCKET_NAME=s3-bucket-name
S3_PATH_PREFIX=s3-path-prefix
AWS_REGION=region-where-s3-bucket-lives
npm install
npx sls deploy -s dev
npx sls remove -s dev