mirror of
https://github.com/terraform-aws-modules/terraform-aws-rds-proxy.git
synced 2025-12-17 00:11:11 +00:00
Adding role_name and unique_id to outputs
This commit is contained in:
parent
829cb91fd9
commit
fea403cf98
4 changed files with 26 additions and 2 deletions
|
|
@ -142,6 +142,8 @@ No modules.
|
||||||
|------|-------------|
|
|------|-------------|
|
||||||
| <a name="output_db_proxy_endpoints"></a> [db\_proxy\_endpoints](#output\_db\_proxy\_endpoints) | Array containing the full resource object and attributes for all DB proxy endpoints created |
|
| <a name="output_db_proxy_endpoints"></a> [db\_proxy\_endpoints](#output\_db\_proxy\_endpoints) | Array containing the full resource object and attributes for all DB proxy endpoints created |
|
||||||
| <a name="output_iam_role_arn"></a> [iam\_role\_arn](#output\_iam\_role\_arn) | The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager. |
|
| <a name="output_iam_role_arn"></a> [iam\_role\_arn](#output\_iam\_role\_arn) | The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager. |
|
||||||
|
| <a name="output_iam_role_name"></a> [iam\_role\_name](#output\_iam\_role\_name) | The name of the IAM role that the proxy uses to access secrets in AWS Secrets Manager. |
|
||||||
|
| <a name="output_iam_role_unique_id"></a> [iam\_role\_unique_id](#output\_iam\_role\_unique_id) | Stable and unique string identifying the IAM role that the proxy uses to access secrets in AWS Secrets Manager. |
|
||||||
| <a name="output_log_group_arn"></a> [log\_group\_arn](#output\_log\_group\_arn) | The Amazon Resource Name (ARN) of the CloudWatch log group |
|
| <a name="output_log_group_arn"></a> [log\_group\_arn](#output\_log\_group\_arn) | The Amazon Resource Name (ARN) of the CloudWatch log group |
|
||||||
| <a name="output_proxy_arn"></a> [proxy\_arn](#output\_proxy\_arn) | The Amazon Resource Name (ARN) for the proxy |
|
| <a name="output_proxy_arn"></a> [proxy\_arn](#output\_proxy\_arn) | The Amazon Resource Name (ARN) for the proxy |
|
||||||
| <a name="output_proxy_default_target_group_arn"></a> [proxy\_default\_target\_group\_arn](#output\_proxy\_default\_target\_group\_arn) | The Amazon Resource Name (ARN) for the default target group |
|
| <a name="output_proxy_default_target_group_arn"></a> [proxy\_default\_target\_group\_arn](#output\_proxy\_default\_target\_group\_arn) | The Amazon Resource Name (ARN) for the default target group |
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,9 @@ No inputs.
|
||||||
| Name | Description |
|
| Name | Description |
|
||||||
|------|-------------|
|
|------|-------------|
|
||||||
| <a name="output_db_proxy_endpoints"></a> [db\_proxy\_endpoints](#output\_db\_proxy\_endpoints) | Array containing the full resource object and attributes for all DB proxy endpoints created |
|
| <a name="output_db_proxy_endpoints"></a> [db\_proxy\_endpoints](#output\_db\_proxy\_endpoints) | Array containing the full resource object and attributes for all DB proxy endpoints created |
|
||||||
| <a name="output_iam_role_arn"></a> [iam\_role\_arn](#output\_iam\_role\_arn) | The Amazon Resource Name (ARN) specifying the role proxy uses to access secrets |
|
| <a name="output_iam_role_arn"></a> [iam\_role\_arn](#output\_iam\_role\_arn) | The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager. |
|
||||||
|
| <a name="output_iam_role_name"></a> [iam\_role\_name](#output\_iam\_role\_name) | The name of the IAM role that the proxy uses to access secrets in AWS Secrets Manager. |
|
||||||
|
| <a name="output_iam_role_unique_id"></a> [iam\_role\_unique_id](#output\_iam\_role\_unique_id) | Stable and unique string identifying the IAM role that the proxy uses to access secrets in AWS Secrets Manager. |
|
||||||
| <a name="output_log_group_arn"></a> [log\_group\_arn](#output\_log\_group\_arn) | The Amazon Resource Name (ARN) of the CloudWatch log group |
|
| <a name="output_log_group_arn"></a> [log\_group\_arn](#output\_log\_group\_arn) | The Amazon Resource Name (ARN) of the CloudWatch log group |
|
||||||
| <a name="output_proxy_arn"></a> [proxy\_arn](#output\_proxy\_arn) | The Amazon Resource Name (ARN) for the proxy |
|
| <a name="output_proxy_arn"></a> [proxy\_arn](#output\_proxy\_arn) | The Amazon Resource Name (ARN) for the proxy |
|
||||||
| <a name="output_proxy_default_target_group_arn"></a> [proxy\_default\_target\_group\_arn](#output\_proxy\_default\_target\_group\_arn) | The Amazon Resource Name (ARN) for the default target group |
|
| <a name="output_proxy_default_target_group_arn"></a> [proxy\_default\_target\_group\_arn](#output\_proxy\_default\_target\_group\_arn) | The Amazon Resource Name (ARN) for the default target group |
|
||||||
|
|
|
||||||
|
|
@ -83,3 +83,13 @@ output "iam_role_arn" {
|
||||||
description = "The Amazon Resource Name (ARN) specifying the role proxy uses to access secrets"
|
description = "The Amazon Resource Name (ARN) specifying the role proxy uses to access secrets"
|
||||||
value = module.rds_proxy.iam_role_arn
|
value = module.rds_proxy.iam_role_arn
|
||||||
}
|
}
|
||||||
|
|
||||||
|
output "iam_role_name" {
|
||||||
|
description = "The name of the role proxy uses to access secrets"
|
||||||
|
value = module.rds_proxy.iam_role_name
|
||||||
|
}
|
||||||
|
|
||||||
|
output "iam_role_unique_id" {
|
||||||
|
description = "Stable and unique string identifying the role proxy uses to access secrets"
|
||||||
|
value = module.rds_proxy.iam_role_unique_id
|
||||||
|
}
|
||||||
|
|
|
||||||
12
outputs.tf
12
outputs.tf
|
|
@ -81,5 +81,15 @@ output "log_group_arn" {
|
||||||
# IAM role
|
# IAM role
|
||||||
output "iam_role_arn" {
|
output "iam_role_arn" {
|
||||||
description = "The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager."
|
description = "The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager."
|
||||||
value = local.role_arn
|
value = try(aws_iam_role.this.arn, null)
|
||||||
|
}
|
||||||
|
|
||||||
|
output "iam_role_name" {
|
||||||
|
description = "IAM role name"
|
||||||
|
value = try(aws_iam_role.this.name, null)
|
||||||
|
}
|
||||||
|
|
||||||
|
output "iam_role_unique_id" {
|
||||||
|
description = "Stable and unique string identifying the IAM role"
|
||||||
|
value = try(aws_iam_role.this.unique_id, null)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue