alicloud_oss_bucket_cname_token
更新时间:
Provides a OSS Bucket Cname Token resource.
The token used to verify the ownership of the bucket custom domain name.
For information about OSS Bucket Cname Token and how to use it, see What is Bucket Cname Token.
-> NOTE: Available since v1.233.0.
Example Usage
Basic Usage
variable "name" {
default = "terraform-example"
}
provider "alicloud" {
region = "cn-hangzhou"
}
resource "alicloud_oss_bucket" "CreateBucket" {
bucket = var.name
storage_class = "Standard"
}
resource "alicloud_oss_bucket_cname_token" "defaultZaWJfG" {
bucket = alicloud_oss_bucket.CreateBucket.bucket
domain = "tftestacc.com"
}
Deleting alicloud_oss_bucket_cname_token
or removing it from your configuration
Terraform cannot destroy resource alicloud_oss_bucket_cname_token
. Terraform will remove this resource from the state file, however resources may remain.
Argument Reference
The following arguments are supported:
bucket
- (Required, ForceNew) The name of the bucketdomain
- (Required, ForceNew) The custom domain
Attributes Reference
The following attributes are exported:
id
- The ID of the resource supplied above.The value is formulated as<bucket>:<domain>
.token
- Token used to verify domain ownership
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Bucket Cname Token.
Import
OSS Bucket Cname Token can be imported using the id, e.g.
$ terraform import alicloud_oss_bucket_cname_token.example <bucket>:<domain>
文档内容是否对您有帮助?