Global InfraGlobal Infra Cloud
aws

s3-bucket

CLI reference for s3-bucket (aws).

gi aws s3-bucket

Subcommands

CommandDescription
gi aws s3-bucket get <id>Get a s3-bucket.
gi aws s3-bucket listList s3-buckets.
gi aws s3-bucket createCreate 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.

Flags

list flags

FlagAliasDescription
--filter-fFilter assets (e.g. attributes.name=my-asset)

create flags

FlagAliasDescription
--file—Path to a YAML or JSON file describing the asset

update flags

FlagAliasDescription
--file—Path to a YAML or JSON file with updated attributes

Examples

# 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>

Usage Notes

On this page