{"id":20511576,"url":"https://github.com/10sr/tflint-ruleset-domainname","last_synced_at":"2026-04-19T00:34:15.685Z","repository":{"id":183434348,"uuid":"670024088","full_name":"10sr/tflint-ruleset-domainname","owner":"10sr","description":"TFLint Plugin to Check if Domain Name for DNS Record is Valid","archived":false,"fork":false,"pushed_at":"2023-10-30T09:48:03.000Z","size":44,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-16T09:08:00.085Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/10sr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2023-07-24T06:07:29.000Z","updated_at":"2024-05-07T15:11:52.000Z","dependencies_parsed_at":"2024-06-21T05:26:03.504Z","dependency_job_id":"a3dadca0-86e7-4bdb-b471-078c5fb65aa1","html_url":"https://github.com/10sr/tflint-ruleset-domainname","commit_stats":null,"previous_names":["10sr/tflint-ruleset-domainname"],"tags_count":4,"template":false,"template_full_name":"terraform-linters/tflint-ruleset-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10sr%2Ftflint-ruleset-domainname","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10sr%2Ftflint-ruleset-domainname/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10sr%2Ftflint-ruleset-domainname/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10sr%2Ftflint-ruleset-domainname/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/10sr","download_url":"https://codeload.github.com/10sr/tflint-ruleset-domainname/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242117648,"owners_count":20074434,"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-15T20:36:26.201Z","updated_at":"2026-04-19T00:34:15.624Z","avatar_url":"https://github.com/10sr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n[![Build Status](https://github.com/10sr/tflint-ruleset-domainname/workflows/build/badge.svg?branch=main)](https://github.com/10sr/tflint-ruleset-domainname/actions)\n\ntflint-ruleset-domainname\n=========================\n\nCheck if domain name for DNS record is valid.\n\n**CAUTION: I developed this plugin mainly for my personal usage.\nSo there should be many corner cases where this plugin does not cover,\nand currently this plugin only supports `aws_route53_record` resources.\n(But, contributions are of course welcome :raised_hands:)**\n\n\n```hcl\n# Fail\nresource \"aws_route53_record\" \"invalid\" {\n    type = \"A\"\n    name = \"invalid domain.example.com\"\n}\n\n# Pass\nresource \"aws_route53_record\" \"valid\" {\n    type = \"A\"\n    name = \"valid-domain.example.com\"\n}\n```\n\n\nRequirements\n------------\n\n- TFLint v0.42+\n\n\n\nInstallation\n------------\n\nYou can install the plugin with `tflint --init`. Declare a config in `.tflint.hcl` as follows:\n\n\n\n```hcl\nplugin \"domainname\" {\n  enabled = true\n\n  version = \"0.0.3\"\n  source  = \"github.com/10sr/tflint-ruleset-domainname\"\n\n  signing_key = \u003c\u003c-KEY\n  -----BEGIN PGP PUBLIC KEY BLOCK-----\n\n  mQINBGTHqDgBEADIxKlgONJ3IREBc5P5nr+pmHBnNwanXtR2nNnUFUj4Ro3Q5og5\n  G+evy7n3nShuNbgY64vO3glUPs1vOqgPllRuxRepBoDrplqOHoOFwCvNUQjp8IpM\n  LjhvHvwfgX2kOkTdBkTQwf6fLs67xVsXE1pBj8tQq4j5TfOJ/+tofn6N2kokDxXD\n  ...\n  KEY\n}\n```\n\n`signing_key` is available from [signing_key.pub](signing_key.pub).\n\n\nRules\n-----\n\n|Name|Description|Severity|Enabled|Link|\n| --- | --- | --- | --- | --- |\n|route53_domain_name|Check letters in route53 domain name|ERROR|✔|[AWS Doc](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html#domain-name-format-hosted-zones)|\n\n\n\nBuilding the plugin\n-------------------\n\nClone the repository locally and run the following command:\n\n```\n$ make\n```\n\nYou can easily install the built plugin with the following:\n\n```\n$ make install\n```\n\nYou can run the built plugin like the following:\n\n```\n$ cat \u003c\u003c EOS \u003e .tflint.hcl\nplugin \"domainname\" {\n  enabled = true\n}\nEOS\n$ tflint\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F10sr%2Ftflint-ruleset-domainname","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F10sr%2Ftflint-ruleset-domainname","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F10sr%2Ftflint-ruleset-domainname/lists"}