Interview Prep/AWS/Rapid-Fire AWS CLI

How do you sync a directory to S3, deleting removed files, with a dry run first?

BeginnerProductionRapid-Fire AWS CLI
Answer
aws s3 sync ./dist s3://web-assets-prod/ --delete --dryrun
aws s3 sync ./dist s3://web-assets-prod/ --delete \
  --cache-control "public,max-age=31536000,immutable" --exclude index.html
aws s3 cp ./dist/index.html s3://web-assets-prod/index.html --cache-control "no-cache"
aws All AWS questions

More on Rapid-Fire AWS CLI