mirror of
https://gitea.com/mcereda/oam.git
synced 2026-03-05 08:24:25 +00:00
chore: improve commands examples after field experience
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user