#!/usr/bin/env bash

source db_settings.env
psql -f mapview_24h_clustered.sql | aws s3 cp - "${EXPORT_TARGET}"/json/view24h.json --acl public-read

#!/usr/bin/env bash

source db_settings.env
psql -q -f mapview_24h_clustered.sql |\
  aws s3 cp - "${EXPORT_TARGET}"/json/view24h.json \
  --acl public-read \
  --cache-control "max-age=300"

Exclude psql statement confirmation output and set max age.
Exclude psql statement confirmation output and set max age.
