Provides a Private Zone Record resource.
Basic Usage
resource "alicloud_pvtz_zone" "zone" {
name = "foo.test.com"
}
resource "alicloud_pvtz_zone_record" "foo" {
zone_id = alicloud_pvtz_zone.zone.id
rr = "www"
type = "CNAME"
value = "bbb.test.com"
ttl = 60
}
The following arguments are supported:
zone_id
- (Required, ForceNew) The name of the Private Zone Record.lang
- (Optional, Available in 1.109.0+) User language.resource_record
- (Optional, ForceNew, Deprecated from v1.109.0+) The resource record of the Private Zone Record.rr
- (Optional, ForceNew) The rr of the Private Zone Record.type
- (Required) The type of the Private Zone Record. Valid values: A, CNAME, TXT, MX, PTR, SRV.value
- (Required) The value of the Private Zone Record.ttl
- (Optional) The ttl of the Private Zone Record. Default to 60
.priority
- (Optional) The priority of the Private Zone Record. At present, only can "MX" record support it. Valid values: [1-99]. Default to 1.remark
- (Optional, Available in 1.103.2+) The remark of the Private Zone Record.status
- (Optional, Available in 1.109.0+) Resolve record status. Value:
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 1 mins) Used when creating the Private Zone Record.update
- (Defaults to 1 mins) Used when updating the Private Zone Record.delete
- (Defaults to 1 mins) Used when terminating the Private Zone Record. The following attributes are exported:
id
- This ID of this resource. The value is formate as <record_id>:<zone_id>
.record_id
- The Private Zone Record ID.Private Zone Record can be imported using the id, e.g.
$ terraform import alicloud_pvtz_zone_record.example abc123456