terraform-aws-kops-route53

Terraform module to lookup an IAM role associated with kops masters, and attach an IAM policy to the role with permissions to modify Route53 record sets.

Terraform AWS Kops Route53

GitHub Repo https://github.com/cloudposse/terraform-aws-kops-route53
Terraform Module terraform-aws-kops-route53
Release Release
Build Status Build Status

It provides the IAM permissions needed by route53-kubernetes for kops.

This is useful to make Kubernetes services discoverable via AWS DNS services.

Usage

HCL

module "kops_route53" {
  source                           = "git::https://github.com/cloudposse/terraform-aws-kops-route53.git?ref=master"
  domain_name                      = "example.com"
  proces_domain_validation_options = "true"
  ttl                              = "300"
}

Variables

Name Default Description Required
namespace Namespace (e.g. cp or cloudposse) Yes
stage Stage (e.g. prod, dev, staging) Yes
name Name (e.g. route53) Yes
attributes [] Additional attributes (e.g. policy or role) No
tags {} Additional tags (e.g. map("Cluster","k8s.domain.com") No
delimiter - Delimiter to be used between namespace, stage, name, and attributes No
masters_name masters K8s masters subdomain name in the Kops DNS zone No

Outputs

Name Description
policy_id Policy ID
policy_name Policy name
policy_arn Policy ARN