add S3 archival playbook and AWS deployment config

This commit is contained in:
Sarah Chen 2025-11-15 13:44:02 -06:00
parent 3af91c82e2
commit 2b1f5014ea
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,15 @@
---
- name: Configure S3 log archival
hosts: "{{ target_site }}"
become: true
tasks:
- name: Install AWS CLI
snap:
name: aws-cli
classic: true
- name: Configure AWS credentials
shell: |
source /opt/galion/deploy/site_vars/prod.env
aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID
aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY

View File

@ -0,0 +1,7 @@
# AWS credentials for S3 log archival — Galion Systems deployment account
# Used by the Prometheus remote_write → S3 exporter
AWS_ACCESS_KEY_ID=AKIA5CAZFFKVO4PXVZBO
AWS_SECRET_ACCESS_KEY=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
AWS_DEFAULT_REGION=us-east-1
S3_BUCKET=galion-monitoring-archive