Comments (4)
That's a good question. Currently, there is no way to do this using this module.
We can add another key into the map named domain_name
and use it if it is specified.
from terraform-aws-route53.
Something like this:
resource "aws_route53_zone" "this" {
for_each = var.create ? var.zones : tomap({})
name = lookup(each.value, "domain_name", each.key)
comment = lookup(each.value, "comment", null)
force_destroy = lookup(each.value, "force_destroy", false)
dynamic "vpc"
...
}
from terraform-aws-route53.
Yes, please open a PR and update example to show this feature there.
from terraform-aws-route53.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
from terraform-aws-route53.
Related Issues (20)
- The "count" value depends on resource attributes that cannot be determined until apply HOT 4
- Variable Type not working when specific HOT 3
- allow records with latency routing policy HOT 3
- Proposal: To delete data resource from records module HOT 4
- Inconsistent conditional result types (with more than one zone) HOT 4
- [Module 'Records'] Add support for Latency routing policies HOT 4
- Remove non original vpc (cannot use vpc association) HOT 3
- Avoid records re-creation imposed by data.aws_route53_zone.this HOT 10
- Add mx and txt examples HOT 4
- Unable to pass 2 different zone_ids (private and public) in a single module call HOT 3
- [Zones] Add support for passing more than 1 VPC to associate with a private zone HOT 2
- New terraform version does not allow zone_id and zone_name to be used together HOT 7
- Still having for_each issue on version 2.10.1 HOT 2
- Issue with aws_route53_zone lookup HOT 4
- Trying to get the route53_zone_name_servers but getting subdomain name instead HOT 2
- The "for_each" value depends on resource attributes that cannot be determined until apply HOT 3
- Zones outputs are not easily consumable, they are not primitives but objects. HOT 2
- Please add clear documentation to warn other users of the risks related to #66 HOT 2
- Modifying record type causes the record to be deleted and recreated HOT 2
- Unknown output type for module zones causing TFLint to crash HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-aws-route53.