Skip to content

Commit 9e719e7

Browse files
k911aknysh
authored andcommitted
fix(output): Rename "role_arn" output to "role_id" (#40)
Output `role_arn` was wrongly named, because it exposes "aws_iam_role.role.id" attribute instead of "aws_iam_role.role.arn". I've added both `role_arn` and `role_id`, because in my case I've needed `role_arn`. Note: This change is backwards incompatible, and will require changes when making upgrade of modules using this module.
1 parent 42ea8dd commit 9e719e7

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ Available targets:
152152
| project_id | Project ID |
153153
| project_name | Project name |
154154
| role_arn | IAM Role ARN |
155+
| role_id | IAM Role ID |
155156

156157

157158

docs/terraform.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,5 @@
3838
| project_id | Project ID |
3939
| project_name | Project name |
4040
| role_arn | IAM Role ARN |
41+
| role_id | IAM Role ID |
4142

outputs.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,14 @@ output "project_id" {
88
value = "${join("", aws_codebuild_project.default.*.id)}"
99
}
1010

11+
output "role_id" {
12+
description = "IAM Role ID"
13+
value = "${join("", aws_iam_role.default.*.id)}"
14+
}
15+
1116
output "role_arn" {
1217
description = "IAM Role ARN"
13-
value = "${join("", aws_iam_role.default.*.id)}"
18+
value = "${join("", aws_iam_role.default.*.arn)}"
1419
}
1520

1621
output "cache_bucket_name" {

0 commit comments

Comments
 (0)