#!/bin/sh

# Variables
S3CMD_EXE=$(which s3cmd)
BUILD_DIR="./public/"
S3_URL="s3://iiro.fi"

# Deploy to S3
$S3CMD_EXE sync $BUILD_DIR $S3_URL \
  --delete-removed \
  --guess-mime-type \
  --no-mime-magic \
  --no-preserve \
  --server-side-encryption

#!/bin/sh

# Variables
BUILD_DIR="./public/"
S3_URL="s3://iiro.fi"

# Deploy to S3
aws s3 sync $BUILD_DIR $S3_URL \
  --delete \
  --sse AES256

Use awscli instead of s3cmd
Use awscli instead of s3cmd
