Carina

Resource

aws.s3.BucketAcl

Example

let bucket = aws.s3.Bucket {
  bucket = 'carina-example-acl-bucket'

  tags = {
    Environment = 'example'
  }
}

let ownership = aws.s3.BucketOwnershipControls {
  bucket           = bucket.bucket
  object_ownership = aws.s3.BucketOwnershipControls.ObjectOwnership.bucket_owner_preferred
}

aws.s3.BucketAcl {
  bucket = ownership.bucket
  acl    = aws.s3.BucketAcl.Acl.private
}

Argument Reference

acl

The canned ACL to apply to the bucket.

bucket

The bucket to which to apply the ACL.

Enum Values

acl (Acl)

Value DSL Identifier
authenticated-read aws.s3.BucketAcl.Acl.authenticated_read
private aws.s3.BucketAcl.Acl.private
public-read aws.s3.BucketAcl.Acl.public_read
public-read-write aws.s3.BucketAcl.Acl.public_read_write

Shorthand formats: authenticated_read or Acl.authenticated_read