Skip to content

Commit

Permalink
outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirvshivkov committed Jun 21, 2023
1 parent 9707918 commit 228b360
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions modules/rds/rds_instance/outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
output "rds_instance_id" {
value = opentelekomcloud_rds_instance_v3.this.*.id
}

output "rds_instance_name" {
value = opentelekomcloud_rds_instance_v3.this.*.name
}

output "rds_instance_status" {
value = opentelekomcloud_rds_instance_v3.this.*.status
}

output "rds_instance_availability_zone" {
value = opentelekomcloud_rds_instance_v3.this.*.availability_zone
}

output "rds_instance_volume_size" {
value = opentelekomcloud_rds_instance_v3.this.*.volume.0.size
}

output "rds_instance_volume_type" {
value = opentelekomcloud_rds_instance_v3.this.*.volume.0.type
}

output "rds_instance_volume_encryption_id" {
value = opentelekomcloud_rds_instance_v3.this.*.volume.0.disk_encryption_id
}

output "rds_private_ip" {
value = opentelekomcloud_rds_instance_v3.this.*.private_ip
}

output "rds_instance_port" {
value = opentelekomcloud_rds_instance_v3.this.*.db.0.port
}

output "rds_public_ip" {
value = try(opentelekomcloud_rds_instance_v3.this.*.public_ips, "")
}

output "rds_instance_nodes" {
value = opentelekomcloud_rds_instance_v3.this.*.nodes
}

output "rds_root_username" {
value = opentelekomcloud_rds_instance_v3.db_instance.db[0].user_name
}

output "rds_root_password" {
value = try(opentelekomcloud_rds_instance_v3.db_instance.db[0].password, "")
sensitive = true
}

0 comments on commit 228b360

Please sign in to comment.