Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d18ae45

Browse files
mmclanebryantbiggs
andauthored
feat: Add IAM role output (#22)
Co-authored-by: Bryant Biggs <bryantbiggs@gmail.com>
1 parent 4e5c806 commit d18ae45

File tree

5 files changed

+39
-1
lines changed

5 files changed

+39
-1
lines changed

‎.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.80.0
3+
rev: v1.83.0
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_validate

‎README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ No modules.
141141
| Name | Description |
142142
|------|-------------|
143143
| <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 |
144+
| <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. |
145+
| <a name="output_iam_role_name"></a> [iam\_role\_name](#output\_iam\_role\_name) | IAM role name |
146+
| <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 |
144147
| <a name="output_log_group_arn"></a> [log\_group\_arn](#output\_log\_group\_arn) | The Amazon Resource Name (ARN) of the CloudWatch log group |
145148
| <a name="output_proxy_arn"></a> [proxy\_arn](#output\_proxy\_arn) | The Amazon Resource Name (ARN) for the proxy |
146149
| <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 |

‎examples/postgresql-iam-cluster/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ No inputs.
6363
| Name | Description |
6464
|------|-------------|
6565
| <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 |
66+
| <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 |
67+
| <a name="output_iam_role_name"></a> [iam\_role\_name](#output\_iam\_role\_name) | The name of the role proxy uses to access secrets |
68+
| <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 |
6669
| <a name="output_log_group_arn"></a> [log\_group\_arn](#output\_log\_group\_arn) | The Amazon Resource Name (ARN) of the CloudWatch log group |
6770
| <a name="output_proxy_arn"></a> [proxy\_arn](#output\_proxy\_arn) | The Amazon Resource Name (ARN) for the proxy |
6871
| <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 |

‎examples/postgresql-iam-cluster/outputs.tf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,19 @@ output "log_group_arn" {
7777
description = "The Amazon Resource Name (ARN) of the CloudWatch log group"
7878
value = module.rds_proxy.log_group_arn
7979
}
80+
81+
# IAM role
82+
output "iam_role_arn" {
83+
description = "The Amazon Resource Name (ARN) specifying the role proxy uses to access secrets"
84+
value = module.rds_proxy.iam_role_arn
85+
}
86+
87+
output "iam_role_name" {
88+
description = "The name of the role proxy uses to access secrets"
89+
value = module.rds_proxy.iam_role_name
90+
}
91+
92+
output "iam_role_unique_id" {
93+
description = "Stable and unique string identifying the role proxy uses to access secrets"
94+
value = module.rds_proxy.iam_role_unique_id
95+
}

‎outputs.tf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,19 @@ output "log_group_arn" {
7777
description = "The Amazon Resource Name (ARN) of the CloudWatch log group"
7878
value = try(aws_cloudwatch_log_group.this[0].arn, null)
7979
}
80+
81+
# IAM role
82+
output "iam_role_arn" {
83+
description = "The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager."
84+
value = try(aws_iam_role.this[0].arn, null)
85+
}
86+
87+
output "iam_role_name" {
88+
description = "IAM role name"
89+
value = try(aws_iam_role.this[0].name, null)
90+
}
91+
92+
output "iam_role_unique_id" {
93+
description = "Stable and unique string identifying the IAM role"
94+
value = try(aws_iam_role.this[0].unique_id, null)
95+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /