Skip to content

Commit 8b7ada6

Browse files
authored
fix: Added cluster_resource_id output. (#27)
1 parent 47a42db commit 8b7ada6

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,12 @@ security_group_rules = {
177177

178178
## Outputs
179179

180-
| Name | Description | Type |
181-
| ---------------- | ------------------------------------------------ | -------- |
182-
| cluster_endpoint | DNS endpoint to connect to the database cluster. | `string` |
183-
| cluster_id | ID of the RDS database cluster. | `string` |
184-
| secret_arn | ARN of the secret holding database credentials. | `string` |
180+
| Name | Description | Type |
181+
| ------------------- | ------------------------------------------------ | -------- |
182+
| cluster_endpoint | DNS endpoint to connect to the database cluster. | `string` |
183+
| cluster_id | ID of the RDS database cluster. | `string` |
184+
| cluster_resource_id | Resource ID of the RDS database cluster. | `string` |
185+
| secret_arn | ARN of the secret holding database credentials. | `string` |
185186

186187
[acus]: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.how-it-works.html#aurora-serverless-v2.how-it-works.capacity
187188
[aurora-serverless]: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html

outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ output "cluster_id" {
88
value = module.database.cluster_id
99
}
1010

11+
output "cluster_resource_id" {
12+
description = "Resource ID of the RDS database cluster."
13+
value = module.database.cluster_resource_id
14+
}
15+
1116
output "secret_arn" {
1217
description = "ARN of the secret containing the user credentials."
1318
value = module.database.cluster_master_user_secret[0].secret_arn

0 commit comments

Comments
 (0)