bootstrap SAM stack — S3 bucket + stub Lambda

This commit is contained in:
2026-05-18 05:21:46 -03:00
parent 3629d1183b
commit 5bfabae7a5
20 changed files with 753 additions and 241 deletions

View File

@@ -1,8 +1,8 @@
#!/usr/bin/env bash
# Uploads the host's /mnt/documents tree into the in-cluster MinIO. Lives
# inside the sign_pdfs function folder because it's specific to *this*
# function's data shape (bucket "my-company-reports-bucket", prefix "2026/04/").
# Other functions will have their own seed scripts in their own folders.
# Uploads the host's /mnt/documents tree into the in-cluster MinIO. The seed
# lives under sign_pdfs_v1/ (the original implementation kept around for the
# before/after demo) but the data it produces is shared — both sign_pdfs/ and
# sign_pdfs_v1/ read from the same bucket and prefix in the local lab.
set -euo pipefail
kubectl --context kind-eth -n eth exec -i deploy/lambda -- \
python functions/sign_pdfs/seed.py /mnt/documents
python functions/sign_pdfs_v1/seed.py /mnt/documents