pulumi_wasm_providers_aws_mini::s3

Module bucket_v_2

source
Expand description

Provides a S3 bucket resource.

This resource provides functionality for managing S3 general purpose buckets in an AWS Partition. To manage Amazon S3 Express directory buckets, use the aws_directory_bucket resource. To manage S3 on Outposts, use the aws.s3control.Bucket resource.

Object Lock can be enabled by using the object_lock_enable attribute or by using the aws.s3.BucketObjectLockConfigurationV2 resource. Please note, that by using the resource, Object Lock can be enabled/disabled without destroying and recreating the bucket.

§Example Usage

§Private Bucket With Tags

resources:
  example:
    type: aws:s3:BucketV2
    properties:
      bucket: my-tf-test-bucket
      tags:
        Name: My bucket
        Environment: Dev

§Import

Using pulumi import, import S3 bucket using the bucket. For example:

$ pulumi import aws:s3/bucketV2:BucketV2 bucket bucket-name

Structs§

Functions§

  • Registers a new resource with the given unique name and arguments