-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c8e3590
commit 5ed286f
Showing
3 changed files
with
21 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,60 @@ | ||
# DB instance | ||
output "this_db_instance_address" { | ||
description = "The address of the RDS instance" | ||
value = "${element(concat(aws_db_instance.this.address, list("")), 0)}" | ||
value = "${element(concat(aws_db_instance.this.*.address, list("")), 0)}" | ||
} | ||
|
||
output "this_db_instance_arn" { | ||
description = "The ARN of the RDS instance" | ||
value = "${element(concat(aws_db_instance.this.arn, list("")), 0)}" | ||
value = "${element(concat(aws_db_instance.this.*.arn, list("")), 0)}" | ||
} | ||
|
||
output "this_db_instance_availability_zone" { | ||
description = "The availability zone of the RDS instance" | ||
value = "${element(concat(aws_db_instance.this.availability_zone, list("")), 0)}" | ||
value = "${element(concat(aws_db_instance.this.*.availability_zone, list("")), 0)}" | ||
} | ||
|
||
output "this_db_instance_endpoint" { | ||
description = "The connection endpoint" | ||
value = "${element(concat(aws_db_instance.this.endpoint, list("")), 0)}" | ||
value = "${element(concat(aws_db_instance.this.*.endpoint, list("")), 0)}" | ||
} | ||
|
||
output "this_db_instance_hosted_zone_id" { | ||
description = "The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record)" | ||
value = "${element(concat(aws_db_instance.this.hosted_zone_id, list("")), 0)}" | ||
value = "${element(concat(aws_db_instance.this.*.hosted_zone_id, list("")), 0)}" | ||
} | ||
|
||
output "this_db_instance_id" { | ||
description = "The RDS instance ID" | ||
value = "${element(concat(aws_db_instance.this.id, list("")), 0)}" | ||
value = "${element(concat(aws_db_instance.this.*.id, list("")), 0)}" | ||
} | ||
|
||
output "this_db_instance_resource_id" { | ||
description = "The RDS Resource ID of this instance" | ||
value = "${element(concat(aws_db_instance.this.resource_id, list("")), 0)}" | ||
value = "${element(concat(aws_db_instance.this.*.resource_id, list("")), 0)}" | ||
} | ||
|
||
output "this_db_instance_status" { | ||
description = "The RDS instance status" | ||
value = "${element(concat(aws_db_instance.this.status, list("")), 0)}" | ||
value = "${element(concat(aws_db_instance.this.*.status, list("")), 0)}" | ||
} | ||
|
||
output "this_db_instance_name" { | ||
description = "The database name" | ||
value = "${element(concat(aws_db_instance.this.name, list("")), 0)}" | ||
value = "${element(concat(aws_db_instance.this.*.name, list("")), 0)}" | ||
} | ||
|
||
output "this_db_instance_username" { | ||
description = "The master username for the database" | ||
value = "${element(concat(aws_db_instance.this.username, list("")), 0)}" | ||
value = "${element(concat(aws_db_instance.this.*.username, list("")), 0)}" | ||
} | ||
|
||
output "this_db_instance_password" { | ||
description = "The database password (this password may be old, because Terraform doesn't track it after initial creation)" | ||
value = "${element(concat(var.password, list("")), 0)}" | ||
value = "${var.password}" | ||
} | ||
|
||
output "this_db_instance_port" { | ||
description = "The database port" | ||
value = "${element(concat(aws_db_instance.this.port, list("")), 0)}" | ||
value = "${element(concat(aws_db_instance.this.*.port, list("")), 0)}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters