EnterpriseDB / barman

Barman - Backup and Recovery Manager for PostgreSQL
https://www.pgbarman.org/
GNU General Public License v3.0
2.14k stars 193 forks source link

Fix tags not being applied on AWS EBS Snapshots #1007

Open ruimarinho opened 3 months ago

ruimarinho commented 3 months ago

This PR resolves an issue where tags specified via command-line arguments were not being correctly applied to snapshots.

Consider the following example:

/usr/bin/barman-cloud-backup --cloud-provider aws-s3 \
--aws-region us-east-1 \
--tags environment,production project,my-project service,barman \
--snapshot-disk $VOLUME_ID \
--snapshot-instance $INSTANCE_ID \
s3://test/barman postgres

Previously, the tags environment, project and service were not included in the snapshot tags; only a single tag (Name) was set by default. This omission made it difficult to filter snapshots based on tags, which is crucial for maintaining security and managing resources effectively.

diogotorres97 commented 2 months ago

ping