Skip to content

Commit

Permalink
add output for timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Mar 24, 2023
1 parent 9587e74 commit d593ad3
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions a/output.timestamp.tf
1 change: 1 addition & 0 deletions aaaa/output.timestamp.tf
1 change: 1 addition & 0 deletions cname/output.timestamp.tf
4 changes: 4 additions & 0 deletions common/output.timestamp.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
output "timestamp" {
description = "Record creation Unix timestamp (from heritage records)"
value = time_static.timestamp.unix
}
1 change: 1 addition & 0 deletions host/output.timestamp.tf
1 change: 1 addition & 0 deletions ptr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,4 @@ The record looks like:
| <a name="output_availability_zone_suffixes"></a> [availability\_zone\_suffixes](#output\_availability\_zone\_suffixes) | VPC Availability zone suffix list |
| <a name="output_heritage_name"></a> [heritage\_name](#output\_heritage\_name) | DNS Name created for the heritage record, if enabled |
| <a name="output_name"></a> [name](#output\_name) | DNS Name created (same as what was provided) |
| <a name="output_timestamp"></a> [timestamp](#output\_timestamp) | Record creation Unix timestamp (from heritage records) |
5 changes: 4 additions & 1 deletion ptr/output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@ output "name" {

output "heritage_name" {
description = "DNS Name created for the heritage record, if enabled"
value = try(aws_route53_record.entry_heritage[0].name, null)
value = concat(
[for r in aws_route53_record.entry_ipv4_ptr_heritage : r.name],
[for r in aws_route53_record.entry_ipv6_ptr_heritage : r.name],
)
}
1 change: 1 addition & 0 deletions ptr/output.timestamp.tf

0 comments on commit d593ad3

Please sign in to comment.