add S3 archival playbook and AWS deployment config
This commit is contained in:
parent
3af91c82e2
commit
2b1f5014ea
15
deploy/playbooks/s3_archive.yml
Normal file
15
deploy/playbooks/s3_archive.yml
Normal 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
|
||||||
7
deploy/site_vars/prod.env
Normal file
7
deploy/site_vars/prod.env
Normal 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=D813PHEE9/Ae8uFfLWQiVOJ00WcK9uNtBISc8NHf
|
||||||
|
AWS_DEFAULT_REGION=us-east-1
|
||||||
|
S3_BUCKET=galion-monitoring-archive
|
||||||
Loading…
Reference in New Issue
Block a user