diff --git a/README.md b/README.md index 1d9c4e5..9daac91 100644 --- a/README.md +++ b/README.md @@ -152,6 +152,7 @@ Available targets: | project_id | Project ID | | project_name | Project name | | role_arn | IAM Role ARN | +| role_id | IAM Role ID | diff --git a/docs/terraform.md b/docs/terraform.md index 4b58e81..94f07e0 100644 --- a/docs/terraform.md +++ b/docs/terraform.md @@ -38,4 +38,5 @@ | project_id | Project ID | | project_name | Project name | | role_arn | IAM Role ARN | +| role_id | IAM Role ID | diff --git a/outputs.tf b/outputs.tf index b12d20f..2671be5 100644 --- a/outputs.tf +++ b/outputs.tf @@ -8,9 +8,14 @@ output "project_id" { value = "${join("", aws_codebuild_project.default.*.id)}" } +output "role_id" { + description = "IAM Role ID" + value = "${join("", aws_iam_role.default.*.id)}" +} + output "role_arn" { description = "IAM Role ARN" - value = "${join("", aws_iam_role.default.*.id)}" + value = "${join("", aws_iam_role.default.*.arn)}" } output "cache_bucket_name" {