aws s3 mb adds a --tags flag for bucket creation
Introduced 2026-03-12 · score 0.94
HOW TO USE IT
When creating an S3 bucket with tags, run `aws s3 mb` with the bucket S3 URI and repeat `--tags <key> <value>` for each tag.
aws s3 mb s3://<bucket-name> --tags <key-1> <value-1> --tags <key-2> <value-2>WHY THIS HELPS
Create an S3 bucket with tags using the AWS CLI.
REQUIREMENTS AND LIMITATIONS
- Version: 2.34.8
- <S3Uri> (required): S3 bucket URI to create.
- --tags <key> <value>: Tag key and value to add to the bucket; use the flag multiple times, once per tag.
- Prerequisite: AWS CLI must be installed and configured.
FIRST-PARTY EVIDENCE
- https://github.com/aws/aws-cli/blob/2.34.8/CHANGELOG.rst
- https://docs.aws.amazon.com/cli/latest/reference/s3/mb.html
Check the installed version and the source before using it. Entry JSON