alicloud_oss_bucket_https_config

Provides a OSS Bucket Https Config resource. Whether the bucket can only be accessed with specific TLS versions.

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

Example Usage

Basic Usage

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

resource "random_integer" "default" {
  min = 10000
  max = 99999
}

resource "alicloud_oss_bucket" "CreateBucket" {
  storage_class = "Standard"
  bucket        = "${var.name}-${random_integer.default.result}"
}


resource "alicloud_oss_bucket_https_config" "default" {
  tls_versions = ["TLSv1.2"]
  bucket       = alicloud_oss_bucket.CreateBucket.bucket
  enable       = true
}

Deleting alicloud_oss_bucket_https_config or removing it from your configuration

Terraform cannot destroy resource alicloud_oss_bucket_https_config. 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 Https Config can be imported using the id, e.g.

$ terraform import alicloud_oss_bucket_https_config.example <id>