/terraform-aws-route53acm

Terraform module to create A record in route 53 and validate AWS ACM

Primary LanguageHCLApache License 2.0Apache-2.0

GitHub release (latest by date)

terraform-aws-route53acm

A Terraform module to create an A Record in AWS Route53 and validate ACM

Usage

module "route53acm" {
  source  = "KamranBiglari/route53acm/aws"
  version = "~> 1.0"
  domain = "yourdomain.com"
  endpoint = "apigateway.dev"
  record = {
    type = "CNAME"
    ttl = 60
    records = ["d-1234567890.execute-api.us-east-1.amazonaws.com"]
  }
  tags = {
      Name = "apigateway.dev"
      Environment = "dev"
      Team = "devops"
  }
}

Examples

Requirements

Name Version
terraform >= 1.0.11
aws >= 4.8.0

Providers

Name Version
aws >= 4.8.0

Modules

No modules.

Resources

Name Type
aws_acm_certificate.this resource
aws_route53_record.endpoint resource
aws_route53_record.this resource
aws_route53_zone.this data source

Inputs

Name Description Type Default Required
domain Domain name string n/a yes
endpoint Prefix of endpoint name string n/a yes
record Endpoint record any null no
tags A mapping of tags to assign. map(string) {} no

Outputs

Name Description
certificate_arn n/a
domain n/a
endpoint n/a
fqdn n/a