forked from clouddrove/terraform-aws-route53
-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.yaml
119 lines (112 loc) · 3.39 KB
/
README.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
---
#
# This is the canonical configuration for the `README.md`
# Run `make readme` to rebuild the `README.md`
#
# Name of this project
name: Terraform AWS Route53
# License of this project
license: "MIT"
# Canonical GitHub repo
github_repo: clouddrove/terraform-aws-route53
# Badges to display
badges:
- name: "Terraform"
image: "https://img.shields.io/badge/terraform-v0.13-green"
url: "https://www.terraform.io"
- name: "Licence"
image: "https://img.shields.io/badge/License-MIT-blue.svg"
url: "LICENSE.md"
# description of this project
# yamllint disable rule:line-length
description: |-
Terraform module to create Route53 resource on AWS for zone and record set.
# extra content
# please not remove these two If you need add more
include:
- "terraform.md"
# How to use this project
# yamllint disable rule:line-length
usage: |-
Here are some examples of how you can use this module in your inventory structure:
### Public Hostedzone
```hcl
module "route53" {
source = "clouddrove/route53/aws"
version = "0.13.0"
name = "route53"
application = "clouddrove"
environment = "test"
label_order = ["environment", "name", "application"]
public_enabled = true
record_enabled = true
domain_name = "clouddrove.com"
names = [
"www.",
"admin."
]
types = [
"A",
"CNAME"
]
alias = {
names = [
"d130easdflja734js.cloudfront.net"
]
zone_ids = [
"Z2FDRFHATA1ER4"
]
evaluate_target_healths = [
false
]
}
}
```
### Private Hostedzone
```hcl
module "route53" {
source = "clouddrove/route53/aws"
version = "0.13.0"
name = "route53"
application = "clouddrove"
environment = "test"
label_order = ["environment", "name", "application"]
private_enabled = true
record_enabled = true
domain_name = "clouddrove.com"
vpc_id = "vpc-xxxxxxxxxxxxx"
names = [
"www.",
"admin."
]
types = [
"A",
"CNAME"
]
ttls = [
"3600",
"3600",
]
values = [
"10.0.0.27",
"mydomain.com",
]
}
```
### Vpc Association
```hcl
module "route53" {
source = "clouddrove/route53/aws"
version = "0.13.0"
name = "route53"
application = "clouddrove"
environment = "test"
label_order = ["environment", "name", "application"]
private_enabled = true
enabled = true
domain_name = "clouddrove.com"
vpc_id = "vpc-xxxxxxxxxxxxx"
secondary_vpc_id = "vpc-xxxxxxxxxxxxx"
secondary_vpc_region = "eu-west-1"
}
```