Bucket Tagging

This commit is contained in:
2026-05-21 10:28:47 -05:00
parent 528497094b
commit 1936646b20
2 changed files with 39 additions and 0 deletions

View File

@@ -76,6 +76,14 @@ aws s3api put-bucket-policy \
]
}'
# ------------------------
# Cost Allocation Tags setzen
# ------------------------
echo "Setze Cost Allocation Tag (BucketName)..."
aws s3api put-bucket-tagging \
--bucket ${S3_BUCKET_NAME} \
--tagging "TagSet=[{Key=BucketName,Value=${S3_BUCKET_NAME}}]"
echo "S3 Bucket $S3_BUCKET_NAME wurde erfolgreich erstellt und konfiguriert."
echo "Bucket-ARN: arn:aws:s3:::$S3_BUCKET_NAME"