#!/bin/sh
set -eu
umask 077
export AWS_PAGER=""
: "${EVIDENCE_DIR:?set a new private evidence directory}"
mkdir -p "$EVIDENCE_DIR"
aws ec2 get-ebs-encryption-by-default > "$EVIDENCE_DIR/source-01.txt"
aws ec2 describe-volumes > "$EVIDENCE_DIR/source-02.txt"
aws rds describe-db-instances > "$EVIDENCE_DIR/source-03.txt"
aws s3api list-buckets > "$EVIDENCE_DIR/source-04.txt"
date -u +%Y-%m-%dT%H:%M:%SZ > "$EVIDENCE_DIR/collected-at.txt"
# Raw outputs may be sensitive; review and normalize locally before sharing.
