chore: improve commands examples after field experience

This commit is contained in:
Michele Cereda
2024-02-15 20:55:12 +01:00
parent b1f656987e
commit 8aa1cba088
5 changed files with 32 additions and 1 deletions

View File

@@ -64,6 +64,14 @@ aws s3 sync '.' 's3://arn:aws:s3:us-west-2:123456789012:accesspoint/myaccesspoin
aws s3 rb 's3://my-bucket'
aws s3 rb 's3://my-bucket' --force
# Lifecycle configurations.
aws s3api get-bucket-lifecycle-configuration --bucket 'bucketName'
aws s3api put-bucket-lifecycle-configuration --bucket 'bucketName' \
--lifecycle-configuration 'file://lifecycle.definition.json'
aws s3api delete-bucket-lifecycle-configuration --bucket 'bucketName'
# Show tags on objects.
aws s3api list-objects-v2 \
--bucket 'my-bucket' --prefix 'someObjectsInHereAreTagged' \
@@ -89,6 +97,9 @@ aws s3 delete-bucket-lifecycle --bucket 'batman'
## Lifecycle configuration
> Adding, removing or changing lifecycle rules takes a while.<br/>
> Wait a couple of minutes after the operation to make sure all the bucket's properties are synced.
When one has multiple rules in an S3 Lifecycle configuration, an object can become eligible for multiple S3 Lifecycle actions. In such cases, Amazon S3 follows these general rules:
1. Permanent deletion takes precedence over transition.