Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Fix records submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
bushong1 committed Dec 21, 2023
1 parent e16c976 commit 3c85a68
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 5 deletions.
14 changes: 14 additions & 0 deletions records/.tflint.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
plugin "aws" {
enabled = true

version = "0.27.0"
source = "github.com/terraform-linters/tflint-ruleset-aws"
}

rule "terraform_required_providers" {
enabled = true

# defaults
source = false
version = true
}
10 changes: 10 additions & 0 deletions records/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 4.61.0"
}
}
required_version = ">= 1.2"
}

# Route53 record for services
resource "aws_route53_record" "routes" {
for_each = toset(var.subdomains)
Expand Down
28 changes: 23 additions & 5 deletions records/variables.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
variable "hosted_zone_id" {}
variable "hosted_zone_dns" {}
variable "subdomains" {}
variable "ttl" {}
variable "endpoint" {}
variable "hosted_zone_id" {
description = "The ID of the hosted zone to create records in."
type = string
}


variable "hosted_zone_dns" {
description = "The DNS name of the hosted zone to create records in."
type = string
}

variable "subdomains" {
description = "A list of subdomains to create records for."
type = list(string)
}
variable "ttl" {
description = "The TTL of the records to create."
type = number
}
variable "endpoint" {
description = "The endpoint to create records for."
type = string
}

0 comments on commit 3c85a68

Please sign in to comment.