|
| 1 | +# DB instance |
| 2 | +output "this_db_instance_address" { |
| 3 | + description = "The address of the RDS instance" |
| 4 | + value = "${module.db.this_db_instance_address}" |
| 5 | +} |
| 6 | + |
| 7 | +output "this_db_instance_arn" { |
| 8 | + description = "The ARN of the RDS instance" |
| 9 | + value = "${module.db.this_db_instance_arn}" |
| 10 | +} |
| 11 | + |
| 12 | +output "this_db_instance_availability_zone" { |
| 13 | + description = "The availability zone of the RDS instance" |
| 14 | + value = "${module.db.this_db_instance_availability_zone}" |
| 15 | +} |
| 16 | + |
| 17 | +output "this_db_instance_endpoint" { |
| 18 | + description = "The connection endpoint" |
| 19 | + value = "${module.db.this_db_instance_endpoint}" |
| 20 | +} |
| 21 | + |
| 22 | +output "this_db_instance_hosted_zone_id" { |
| 23 | + description = "The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record)" |
| 24 | + value = "${module.db.this_db_instance_hosted_zone_id}" |
| 25 | +} |
| 26 | + |
| 27 | +output "this_db_instance_id" { |
| 28 | + description = "The RDS instance ID" |
| 29 | + value = "${module.db.this_db_instance_id}" |
| 30 | +} |
| 31 | + |
| 32 | +output "this_db_instance_resource_id" { |
| 33 | + description = "The RDS Resource ID of this instance" |
| 34 | + value = "${module.db.this_db_instance_resource_id}" |
| 35 | +} |
| 36 | + |
| 37 | +output "this_db_instance_status" { |
| 38 | + description = "The RDS instance status" |
| 39 | + value = "${module.db.this_db_instance_status}" |
| 40 | +} |
| 41 | + |
| 42 | +output "this_db_instance_name" { |
| 43 | + description = "The database name" |
| 44 | + value = "${module.db.this_db_instance_name}" |
| 45 | +} |
| 46 | + |
| 47 | +output "this_db_instance_username" { |
| 48 | + description = "The master username for the database" |
| 49 | + value = "${module.db.this_db_instance_username}" |
| 50 | +} |
| 51 | + |
| 52 | +output "this_db_instance_password" { |
| 53 | + description = "The database password (this password may be old, because Terraform doesn't track it after initial creation)" |
| 54 | + value = "${module.db.this_db_instance_password}" |
| 55 | +} |
| 56 | + |
| 57 | +output "this_db_instance_port" { |
| 58 | + description = "The database port" |
| 59 | + value = "${module.db.this_db_instance_port}" |
| 60 | +} |
| 61 | + |
| 62 | +# DB subnet group |
| 63 | +output "this_db_subnet_group_id" { |
| 64 | + description = "The db subnet group name" |
| 65 | + value = "${module.db.this_db_subnet_group_id}" |
| 66 | +} |
| 67 | + |
| 68 | +output "this_db_subnet_group_arn" { |
| 69 | + description = "The ARN of the db subnet group" |
| 70 | + value = "${module.db.this_db_subnet_group_arn}" |
| 71 | +} |
| 72 | + |
| 73 | +# DB parameter group |
| 74 | +output "this_db_parameter_group_id" { |
| 75 | + description = "The db parameter group id" |
| 76 | + value = "${module.db.this_db_parameter_group_id}" |
| 77 | +} |
| 78 | + |
| 79 | +output "this_db_parameter_group_arn" { |
| 80 | + description = "The ARN of the db parameter group" |
| 81 | + value = "${module.db.this_db_parameter_group_arn}" |
| 82 | +} |
0 commit comments