-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #235 from alrayyes/feat/dns-resource
feat: implement resource record set resource
- Loading branch information
Showing
10 changed files
with
1,232 additions
and
313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "leaseweb_dns_resource_record_set Resource - leaseweb" | ||
subcategory: "" | ||
description: |- | ||
Manage a DNS record | ||
--- | ||
|
||
# leaseweb_dns_resource_record_set (Resource) | ||
|
||
Manage a DNS record | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
# Manage a DNS record | ||
resource "leaseweb_dns_resource_record_set" "example" { | ||
domain_name = "example.com" | ||
content = [ | ||
"85.17.150.51", | ||
"85.17.150.52", | ||
"85.17.150.53" | ||
] | ||
name = "example.com." | ||
type = "A" | ||
ttl = 3600 | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `content` (List of String) Array of resource record set Content entries | ||
- `domain_name` (String) Domain Name | ||
- `name` (String) Name of the resource record set. **WARNING!** Changing this value once running will cause this record to be destroyed and a new one to be created. | ||
- `ttl` (Number) Time to live of the resource record set. Valid options are | ||
- *60* | ||
- *300* | ||
- *1800* | ||
- *3600* | ||
- *14400* | ||
- *28800* | ||
- *43200* | ||
- *86400* | ||
- `type` (String) Type of the resource record set. Valid options are | ||
- *A* | ||
- *AAAA* | ||
- *CAA* | ||
- *CNAME* | ||
- *MX* | ||
- *NS* | ||
- *SRV* | ||
- *TXT* | ||
- *SOA* | ||
- *DS* | ||
- *TLSA* |
12 changes: 12 additions & 0 deletions
12
examples/resources/leaseweb_dns_resource_record_set/resource.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Manage a DNS record | ||
resource "leaseweb_dns_resource_record_set" "example" { | ||
domain_name = "example.com" | ||
content = [ | ||
"85.17.150.51", | ||
"85.17.150.52", | ||
"85.17.150.53" | ||
] | ||
name = "example.com." | ||
type = "A" | ||
ttl = 3600 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.