alicloud_oss_bucket_acl

Provides a OSS Bucket Acl resource. The Access Control List (ACL) of a specific bucket.

For information about OSS Bucket Acl and how to use it, see What is Bucket Acl.

Example Usage

Basic Usage

variable "name" {
  default = "terraform-example"
}

provider "alicloud" {
  region = "cn-hangzhou"
}

resource "alicloud_oss_bucket" "CreateBucket" {
  storage_class = "Standard"
  bucket        = var.name
}


resource "alicloud_oss_bucket_acl" "default" {
  bucket = alicloud_oss_bucket.CreateBucket.bucket
  acl    = "private"
}

Deleting alicloud_oss_bucket_acl or removing it from your configuration

Terraform cannot destroy resource alicloud_oss_bucket_acl. Terraform will remove this resource from the state file, however resources may remain.

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

OSS Bucket Acl can be imported using the id, e.g.

$ terraform import alicloud_oss_bucket_acl.example <id>