Skip to content

Commit

Permalink
fix: add dns names of the instance
Browse files Browse the repository at this point in the history
  • Loading branch information
zahornyak committed Aug 19, 2024
1 parent 6904412 commit 36fc850
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@ module "ec2" {
| <a name="output_eip_ip"></a> [eip\_ip](#output\_eip\_ip) | public ip of instance |
| <a name="output_instance_id"></a> [instance\_id](#output\_instance\_id) | instance id |
| <a name="output_instance_role"></a> [instance\_role](#output\_instance\_role) | ec2\_instance\_profile |
| <a name="output_private_dns_name"></a> [private\_dns\_name](#output\_private\_dns\_name) | private dns name |
| <a name="output_private_ip"></a> [private\_ip](#output\_private\_ip) | private ip of instance |
| <a name="output_public_dns_name"></a> [public\_dns\_name](#output\_public\_dns\_name) | public dns name |
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
10 changes: 10 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,14 @@ output "ec2_instance_profile" {
output "instance_id" {
value = try(module.ec2_instance[0].id, null)
description = "instance id"
}

output "private_dns_name" {
value = try(module.ec2_instance.private_dns, null)
description = "private dns name"
}

output "public_dns_name" {
value = try(module.ec2_instance.public_dns, null)
description = "public dns name"
}

0 comments on commit 36fc850

Please sign in to comment.