Creating vector buckets with tags - Amazon Simple Storage Service
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Creating vector buckets with tags

You can tag Amazon S3 vector buckets when you create them. There is no additional charge for using tags on vector buckets beyond the standard S3 API request rates. For more information, see Amazon S3 pricing. For more information about tagging vector buckets, see Using tags with S3 vector buckets.

Permissions

To create a vector bucket with tags, you must have the following permissions:

  • s3vectors:CreateVectorBucket

  • s3vectors:TagResource

Troubleshooting errors

If you encounter an error when attempting to create a vector bucket with tags, you can do the following:

  • Verify that you have the required Permissions to create the vector bucket and add a tag to it.

  • Check your IAM user policy for any attribute-based access control (ABAC) conditions. You may be required to label your vector buckets only with specific tag keys and values. For more information, see Using tags for attribute-based access control (ABAC).

Steps

You can create a vector bucket with tags applied by using the Amazon S3 console, the Amazon Command Line Interface (Amazon CLI), the Amazon S3 REST API, and Amazon SDKs.

To create a vector bucket with tags using the Amazon S3 console
  1. Sign in to the Amazon Web Services Management Console and open the Amazon S3 console at https://console.amazonaws.cn/s3/.

  2. In the left navigation pane, choose vector buckets.

  3. Choose create vector bucket to create a new vector bucket.

  4. Create a vector bucket as you normally would; see Creating a vector bucket.

  5. On the Create vector bucket page, Tags is an option when creating a new vector bucket.

  6. Enter a name for the vector bucket.

  7. Choose Add new Tag to open the Tags editor and enter a tag key-value pair. The tag key is required, but the value is optional.

  8. To add another tag, select Add new Tag again. You can enter up to 50 tag key-value pairs.

  9. After you complete specifying the options for your new vector bucket, choose Create vector bucket.

For information about the Amazon S3 REST API support for creating a vector bucket with tags, see the following section in the Amazon S3 Vectors API Reference:

CreateVectorBucket

To install the Amazon CLI, see Installing the Amazon CLI in the Amazon Command Line Interface User Guide.

The following CLI example shows you how to create a vector bucket with tags by using the Amazon CLI. To use the command replace the user input placeholders with your own information.

When you create a vector bucket you must provide configuration details and use the following naming convention: example-vector-bucket

aws s3vector create-vector-bucket --vector-bucket-name acc-bucket \ --tags Department=Accounting,Stage=Prod