From a2e25b6adbf817c090fdace5f1c17d681f498a7e Mon Sep 17 00:00:00 2001 From: Andriy Knysh Date: Fri, 21 Apr 2023 15:37:20 -0400 Subject: [PATCH] Add `sub_domains` output (#5) --- README.md | 1 + docs/terraform.md | 1 + examples/complete/outputs.tf | 7 ++++++- outputs.tf | 7 ++++++- 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 186cb23..a8b7c92 100644 --- a/README.md +++ b/README.md @@ -320,6 +320,7 @@ Available targets: | [domain\_association\_arn](#output\_domain\_association\_arn) | ARN of the domain association | | [domain\_association\_certificate\_verification\_dns\_record](#output\_domain\_association\_certificate\_verification\_dns\_record) | The DNS record for certificate verification | | [name](#output\_name) | Amplify App name | +| [sub\_domains](#output\_sub\_domains) | DNS records and the verified status for the subdomains | | [webhooks](#output\_webhooks) | Created webhooks | diff --git a/docs/terraform.md b/docs/terraform.md index 2354c02..63eeb17 100644 --- a/docs/terraform.md +++ b/docs/terraform.md @@ -84,5 +84,6 @@ | [domain\_association\_arn](#output\_domain\_association\_arn) | ARN of the domain association | | [domain\_association\_certificate\_verification\_dns\_record](#output\_domain\_association\_certificate\_verification\_dns\_record) | The DNS record for certificate verification | | [name](#output\_name) | Amplify App name | +| [sub\_domains](#output\_sub\_domains) | DNS records and the verified status for the subdomains | | [webhooks](#output\_webhooks) | Created webhooks | diff --git a/examples/complete/outputs.tf b/examples/complete/outputs.tf index 7312f45..9f55687 100644 --- a/examples/complete/outputs.tf +++ b/examples/complete/outputs.tf @@ -4,7 +4,7 @@ output "name" { } output "arn" { - description = "Amplify App ARN " + description = "Amplify App ARN" value = module.amplify_app.arn } @@ -37,3 +37,8 @@ output "domain_association_certificate_verification_dns_record" { description = "The DNS record for certificate verification" value = module.amplify_app.domain_association_certificate_verification_dns_record } + +output "sub_domains" { + description = "DNS records and the verified status for the subdomains" + value = module.amplify_app.sub_domains +} diff --git a/outputs.tf b/outputs.tf index ec0de19..8967919 100644 --- a/outputs.tf +++ b/outputs.tf @@ -4,7 +4,7 @@ output "name" { } output "arn" { - description = "Amplify App ARN " + description = "Amplify App ARN" value = one(aws_amplify_app.default[*].arn) } @@ -37,3 +37,8 @@ output "domain_association_certificate_verification_dns_record" { description = "The DNS record for certificate verification" value = one(aws_amplify_domain_association.default[*].certificate_verification_dns_record) } + +output "sub_domains" { + description = "DNS records and the verified status for the subdomains" + value = one(aws_amplify_domain_association.default[*].sub_domain) +}