aws
s3-bucket
CLI reference for s3-bucket (aws).
gi aws s3-bucket
| Command | Description |
|---|
gi aws s3-bucket get <id> | Get a s3-bucket. |
gi aws s3-bucket list | List s3-buckets. |
gi aws s3-bucket create | Create a new s3-bucket. |
gi aws s3-bucket update <id> | Update a s3-bucket. |
gi aws s3-bucket delete <id> | Delete a s3-bucket. |
gi aws s3-bucket generate_uid <id> | Generate unique id cross region/platform for s3-bucket asset. |
gi aws s3-bucket sha1 <id> | Compute a sha1 of the bucket |
gi aws s3-bucket shrink <id> | Shrink the S3 bucket storage. |
| Flag | Alias | Description |
|---|
--filter | -f | Filter assets (e.g. attributes.name=my-asset) |
| Flag | Alias | Description |
|---|
--file | — | Path to a YAML or JSON file describing the asset |
| Flag | Alias | Description |
|---|
--file | — | Path to a YAML or JSON file with updated attributes |
# List all
gi aws s3-bucket list
# Get by id
gi aws s3-bucket get <id>
# Filter by attribute
gi aws s3-bucket list -f attributes.name=my-value
# Create from file
gi aws s3-bucket create --file asset.yaml
# Update
gi aws s3-bucket update <id> --file asset.yaml
# Delete
gi aws s3-bucket delete <id>
# Generate_uid
gi aws s3-bucket generate_uid <id>
# Sha1
gi aws s3-bucket sha1 <id>
# Shrink
gi aws s3-bucket shrink <id>