Skip to content

Commit

Permalink
Add instance arn to outputs (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
DownRangeDevOps authored and aknysh committed Sep 21, 2019
1 parent 4b0c357 commit f72e724
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ Available targets:
|------|-------------|
| hostname | DNS host name of the instance |
| instance_address | Address of the instance |
| instance_arn | ARN of the instance |
| instance_endpoint | DNS Endpoint of the instance |
| instance_id | ID of the instance |
| option_group_id | ID of the Option Group |
Expand Down
1 change: 1 addition & 0 deletions docs/terraform.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
|------|-------------|
| hostname | DNS host name of the instance |
| instance_address | Address of the instance |
| instance_arn | ARN of the instance |
| instance_endpoint | DNS Endpoint of the instance |
| instance_id | ID of the instance |
| option_group_id | ID of the Option Group |
Expand Down
5 changes: 5 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ output "instance_id" {
description = "ID of the instance"
}

output "instance_arn" {
value = join("", aws_db_instance.default.*.arn)
description = "ARN of the instance"
}

output "instance_address" {
value = join("", aws_db_instance.default.*.address)
description = "Address of the instance"
Expand Down

0 comments on commit f72e724

Please sign in to comment.