DNS Configuration Conditioning :

- Add AWS_R53_ENABLED variable
- Update Documentation
- Add ToDo
This commit is contained in:
Damien A
2024-01-02 19:32:23 +01:00
parent fb2e5422c2
commit 22072de929
6 changed files with 21 additions and 3 deletions

View File

@@ -3,5 +3,5 @@ output "public_ip" {
}
output "containerlab_fqdn" {
value = "${aws_route53_record.containerlab_fqdn.name}.${data.aws_route53_zone.selected.name}"
value = var.AWS_R53_ENABLED && length(aws_route53_record.containerlab_fqdn) > 0 ? "${aws_route53_record.containerlab_fqdn[0].name}.${data.aws_route53_zone.selected.name}" : ""
}