- Newest
- Most votes
- Most comments
Hello.
As of September 18, 2025, creating S3 Vector buckets via CloudFormation or Terraform is not supported.
As described in the GitHub Issue below, creating S3 Vector via Terraform is expected to be released when the service becomes GA.
https://github.com/hashicorp/terraform-provider-aws/issues/43409
Although CloudFormation does not directly support this, creation is supported by the AWS CLI and SDK.
Therefore, in the case of CloudFormation, it can be created by using a custom resource.
https://docs.aws.amazon.com/AmazonS3/latest/API/API_S3VectorBuckets_CreateVectorBucket.html
https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-vectors-buckets-create.html
Terraform now supports s3 Vector bucket and indexes
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3vectors_vector_bucket
answered 9 months ago
Amazon S3 Vectors is a relatively new feature (currently in preview), and as of now, there doesn't appear to be direct Terraform support for creating vector buckets.
While Terraform has resources for standard S3 buckets (aws_s3_bucket), S3 vector buckets require specific API operations that are different from regular S3 buckets. Vector buckets are created using dedicated API operations like create-vector-bucket in the AWS CLI.
For now, you have a few options:
-
Use AWS CloudFormation templates if you need Infrastructure as Code capabilities for S3 vector buckets.
-
Use the AWS CLI within your automation scripts. You could incorporate AWS CLI commands in your deployment pipeline:
aws s3vectors create-vector-bucket --vector-bucket-name "your-vector-bucket-name"
-
Use AWS CDK which might have more up-to-date constructs for newer AWS services.
-
Create a custom Terraform provider or module that wraps the AWS CLI commands for S3 Vectors.
Since S3 Vectors is still in preview, it's likely that Terraform support will be added in the future as the service becomes more widely available. Until then, you'll need to use one of the alternative approaches mentioned above for automating the creation of vector buckets.
Sources
Creating a vector bucket - Amazon Simple Storage Service
Tutorial: Getting started with S3 Vectors - Amazon Simple Storage Service
S3 provision related | AWS re:Post
Introducing Amazon S3 Vectors: First cloud storage with native vector support at scale (preview) | AWS News Blog
answered a year ago
Relevant content
asked 4 months ago
- AWS OFFICIALUpdated 4 months ago
