Skip to content

Commit

Permalink
Merge pull request #235 from alrayyes/feat/dns-resource
Browse files Browse the repository at this point in the history
feat: implement resource record set resource
  • Loading branch information
alrayyes authored Dec 30, 2024
2 parents bf19dc2 + cca0e64 commit cc4f195
Show file tree
Hide file tree
Showing 10 changed files with 1,232 additions and 313 deletions.
58 changes: 58 additions & 0 deletions docs/resources/dns_resource_record_set.md
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 examples/resources/leaseweb_dns_resource_record_set/resource.tf
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
}
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ require (
golang.org/x/text v0.21.0 // indirect
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20241216192217-9240e9c98484 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20241223144023-3abc09e42ca8 // indirect
google.golang.org/grpc v1.69.2 // indirect
google.golang.org/protobuf v1.36.0 // indirect
google.golang.org/protobuf v1.36.1 // indirect
gopkg.in/validator.v2 v2.0.1 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -220,14 +220,14 @@ golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8T
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM=
google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds=
google.golang.org/genproto/googleapis/rpc v0.0.0-20241216192217-9240e9c98484 h1:Z7FRVJPSMaHQxD0uXU8WdgFh8PseLM8Q8NzhnpMrBhQ=
google.golang.org/genproto/googleapis/rpc v0.0.0-20241216192217-9240e9c98484/go.mod h1:lcTa1sDdWEIHMWlITnIczmw5w60CF9ffkb8Z+DVmmjA=
google.golang.org/genproto/googleapis/rpc v0.0.0-20241223144023-3abc09e42ca8 h1:TqExAhdPaB60Ux47Cn0oLV07rGnxZzIsaRhQaqS666A=
google.golang.org/genproto/googleapis/rpc v0.0.0-20241223144023-3abc09e42ca8/go.mod h1:lcTa1sDdWEIHMWlITnIczmw5w60CF9ffkb8Z+DVmmjA=
google.golang.org/grpc v1.69.2 h1:U3S9QEtbXC0bYNvRtcoklF3xGtLViumSYxWykJS+7AU=
google.golang.org/grpc v1.69.2/go.mod h1:vyjdE6jLBI76dgpDojsFGNaHlxdjXN9ghpnd2o7JGZ4=
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
google.golang.org/protobuf v1.36.0 h1:mjIs9gYtt56AzC4ZaffQuh88TZurBGhIJMBZGSxNerQ=
google.golang.org/protobuf v1.36.0/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE=
google.golang.org/protobuf v1.36.1 h1:yBPeRvTftaleIgM3PZ/WBIZ7XM/eEYAaEyCwvyjq/gk=
google.golang.org/protobuf v1.36.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
Expand Down
Loading

0 comments on commit cc4f195

Please sign in to comment.