Athenaで日付周りの扱いでハマったので備忘録です。
current_dateではうまく行かず。current_timestampを使うのがポイント。
-- Athena 先月、今月
SELECT
date_trunc('month', current_timestamp) - interval '1' month AS "先月月初",
date_trunc('month', current_timestamp) - interval '1' day AS "先月月末",
date_trunc('month', current_timestamp) AS "今月月初",
date_trunc('month', current_timestamp) + interval '1' month - interval '1' day AS "今月月末"
;