{"id":18578928,"url":"https://github.com/libre-devops/terraform-digitalocean-dns-records","last_synced_at":"2025-06-25T08:40:07.926Z","repository":{"id":226114848,"uuid":"767790653","full_name":"libre-devops/terraform-digitalocean-dns-records","owner":"libre-devops","description":"A module used to update DNS records on digitalocean 💧","archived":false,"fork":false,"pushed_at":"2024-03-05T23:18:26.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-16T02:12:39.378Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/libre-devops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-05T22:44:31.000Z","updated_at":"2024-03-05T22:44:37.000Z","dependencies_parsed_at":"2024-03-06T00:26:18.462Z","dependency_job_id":"95a705b3-756f-418c-94c7-2a30a83ee945","html_url":"https://github.com/libre-devops/terraform-digitalocean-dns-records","commit_stats":null,"previous_names":["libre-devops/terraform-digitalocean-dns-records"],"tags_count":1,"template":false,"template_full_name":"libre-devops/terraform-module-template","purl":"pkg:github/libre-devops/terraform-digitalocean-dns-records","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libre-devops%2Fterraform-digitalocean-dns-records","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libre-devops%2Fterraform-digitalocean-dns-records/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libre-devops%2Fterraform-digitalocean-dns-records/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libre-devops%2Fterraform-digitalocean-dns-records/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libre-devops","download_url":"https://codeload.github.com/libre-devops/terraform-digitalocean-dns-records/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libre-devops%2Fterraform-digitalocean-dns-records/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261838158,"owners_count":23217584,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T23:38:18.973Z","updated_at":"2025-06-25T08:40:07.903Z","avatar_url":"https://github.com/libre-devops.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"```hcl\ndata \"digitalocean_domain\" \"domain\" {\n  for_each = { for k, v in var.records : k =\u003e v if v.create_domain == false }\n  name     = each.value.domain_name\n}\n\nresource \"digitalocean_domain\" \"domain\" {\n  for_each   = { for k, v in var.records : k =\u003e v if v.create_domain == true }\n  name       = each.value.domain_name\n  ip_address = each.value.domain_ip_address\n}\n\nresource \"digitalocean_record\" \"records\" {\n  for_each = { for k, v in var.records : k =\u003e v }\n  domain   = each.value.create_domain == true ? digitalocean_domain.domain[each.key].id : data.digitalocean_domain.domain[each.key].id\n  type     = each.value.record_type\n  name     = each.value.record_name\n  value    = each.value.record_value\n  port     = each.value.port\n  priority = each.value.priority\n  weight   = each.value.weight\n  ttl      = each.value.ttl\n  flags    = each.value.flags\n  tag      = each.value.tag\n}\n```\n## Requirements\n\nNo requirements.\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_digitalocean\"\u003e\u003c/a\u003e [digitalocean](#provider\\_digitalocean) | n/a |\n\n## Modules\n\nNo modules.\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [digitalocean_domain.domain](https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/domain) | resource |\n| [digitalocean_record.records](https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/record) | resource |\n| [digitalocean_domain.domain](https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/data-sources/domain) | data source |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_records\"\u003e\u003c/a\u003e [records](#input\\_records) | The records to be created for digital ocean | \u003cpre\u003elist(object({\u003cbr\u003e    create_domain     = optional(bool, false)\u003cbr\u003e    record_type       = string\u003cbr\u003e    record_name       = string\u003cbr\u003e    record_value      = string\u003cbr\u003e    domain_name       = string\u003cbr\u003e    domain_ip_address = optional(string)\u003cbr\u003e    port              = optional(number)\u003cbr\u003e    priority          = optional(number)\u003cbr\u003e    weight            = optional(number)\u003cbr\u003e    ttl               = optional(number)\u003cbr\u003e    flags             = optional(number)\u003cbr\u003e    tag               = optional(string)\u003cbr\u003e  }))\u003c/pre\u003e | n/a | yes |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_domain_id\"\u003e\u003c/a\u003e [domain\\_id](#output\\_domain\\_id) | The domain id if created |\n| \u003ca name=\"output_domain_ttl\"\u003e\u003c/a\u003e [domain\\_ttl](#output\\_domain\\_ttl) | The domain ttl if created |\n| \u003ca name=\"output_domain_urn\"\u003e\u003c/a\u003e [domain\\_urn](#output\\_domain\\_urn) | The domain urn if created |\n| \u003ca name=\"output_record_fqdn\"\u003e\u003c/a\u003e [record\\_fqdn](#output\\_record\\_fqdn) | FQDN of each record |\n| \u003ca name=\"output_record_id\"\u003e\u003c/a\u003e [record\\_id](#output\\_record\\_id) | Id of each record |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibre-devops%2Fterraform-digitalocean-dns-records","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibre-devops%2Fterraform-digitalocean-dns-records","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibre-devops%2Fterraform-digitalocean-dns-records/lists"}