mirror of
https://github.com/terraform-aws-modules/terraform-aws-rds-proxy.git
synced 2025-12-16 16:01:11 +00:00
feat: Add IAM role output (#22)
Co-authored-by: Bryant Biggs <bryantbiggs@gmail.com>
This commit is contained in:
parent
4e5c8068b9
commit
d18ae45d9e
5 changed files with 39 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/antonbabenko/pre-commit-terraform
|
- repo: https://github.com/antonbabenko/pre-commit-terraform
|
||||||
rev: v1.80.0
|
rev: v1.83.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: terraform_fmt
|
- id: terraform_fmt
|
||||||
- id: terraform_validate
|
- id: terraform_validate
|
||||||
|
|
|
||||||
|
|
@ -141,6 +141,9 @@ No modules.
|
||||||
| 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) 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) | IAM role name |
|
||||||
|
| <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 |
|
||||||
| <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,6 +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_name"></a> [iam\_role\_name](#output\_iam\_role\_name) | The name of the role proxy uses to access secrets |
|
||||||
|
| <a name="output_iam_role_unique_id"></a> [iam\_role\_unique\_id](#output\_iam\_role\_unique\_id) | Stable and unique string identifying the role proxy uses to access secrets |
|
||||||
| <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 |
|
||||||
|
|
|
||||||
|
|
@ -77,3 +77,19 @@ output "log_group_arn" {
|
||||||
description = "The Amazon Resource Name (ARN) of the CloudWatch log group"
|
description = "The Amazon Resource Name (ARN) of the CloudWatch log group"
|
||||||
value = module.rds_proxy.log_group_arn
|
value = module.rds_proxy.log_group_arn
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# IAM role
|
||||||
|
output "iam_role_arn" {
|
||||||
|
description = "The Amazon Resource Name (ARN) specifying the role proxy uses to access secrets"
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
|
||||||
16
outputs.tf
16
outputs.tf
|
|
@ -77,3 +77,19 @@ output "log_group_arn" {
|
||||||
description = "The Amazon Resource Name (ARN) of the CloudWatch log group"
|
description = "The Amazon Resource Name (ARN) of the CloudWatch log group"
|
||||||
value = try(aws_cloudwatch_log_group.this[0].arn, null)
|
value = try(aws_cloudwatch_log_group.this[0].arn, null)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# IAM role
|
||||||
|
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."
|
||||||
|
value = try(aws_iam_role.this[0].arn, null)
|
||||||
|
}
|
||||||
|
|
||||||
|
output "iam_role_name" {
|
||||||
|
description = "IAM role name"
|
||||||
|
value = try(aws_iam_role.this[0].name, null)
|
||||||
|
}
|
||||||
|
|
||||||
|
output "iam_role_unique_id" {
|
||||||
|
description = "Stable and unique string identifying the IAM role"
|
||||||
|
value = try(aws_iam_role.this[0].unique_id, null)
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue