Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
terraform-aws-route53
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Terraform Modules
terraform-aws-route53
Commits
0ac6c927
Unverified
Commit
0ac6c927
authored
Feb 14, 2021
by
David Wolffberg
Committed by
GitHub
Feb 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add global tags variable to zones (#26)
parent
38ccb0a5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
1 deletion
+19
-1
README.md
README.md
+4
-0
main.tf
examples/complete/main.tf
+4
-0
README.md
modules/zones/README.md
+1
-0
main.tf
modules/zones/main.tf
+4
-1
variables.tf
modules/zones/variables.tf
+6
-0
No files found.
README.md
View file @
0ac6c927
...
...
@@ -36,6 +36,10 @@ module "zones" {
comment
=
"myapp.com"
}
}
tags
=
{
ManagedBy
=
"Terraform"
}
}
module
"records"
{
...
...
examples/complete/main.tf
View file @
0ac6c927
...
...
@@ -30,6 +30,10 @@ module "zones" {
}
}
}
tags
=
{
ManagedBy
=
"Terraform"
}
}
module
"records"
{
...
...
modules/zones/README.md
View file @
0ac6c927
...
...
@@ -21,6 +21,7 @@ This module creates Route53 zones.
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| create | Whether to create Route53 zone |
`bool`
|
`true`
| no |
| tags | Tags added to all zones. Will take precedence over tags from the 'zones' variable |
`map(any)`
|
`{}`
| no |
| zones | Map of Route53 zone parameters |
`any`
|
`{}`
| no |
## Outputs
...
...
modules/zones/main.tf
View file @
0ac6c927
...
...
@@ -14,5 +14,8 @@ resource "aws_route53_zone" "this" {
}
}
tags
=
lookup
(
each
.
value
,
"tags"
,
null
)
tags
=
merge
(
lookup
(
each
.
value
,
"tags"
,
{}
),
var
.
tags
)
}
modules/zones/variables.tf
View file @
0ac6c927
...
...
@@ -9,3 +9,9 @@ variable "zones" {
type
=
any
default
=
{}
}
variable
"tags"
{
description
=
"Tags added to all zones. Will take precedence over tags from the 'zones' variable"
type
=
map
(
any
)
default
=
{}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment