-
Notifications
You must be signed in to change notification settings - Fork 26
/
outputs.tf
29 lines (24 loc) · 1.03 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
output "arn" {
description = "The ARN of the CodeBuild project"
value = aws_codebuild_project.cb_project.id
}
output "id" {
description = " The name (if imported via name) or ARN (if created via Terraform or imported via ARN) of the CodeBuild project."
value = aws_codebuild_project.cb_project.name
}
output "name" {
description = "The name of the CodeBuild project"
value = aws_codebuild_project.cb_project.name
}
output "service_role_name" {
description = "Name of the Service Role created for CodeBuild."
value = var.create_default_service_role ? element(aws_iam_role.service_role.*.name, 0) : null
}
output "service_role_arn" {
description = "Amazon Resource Name (ARN) of the Service Role for CodeBuild."
value = var.create_default_service_role ? element(aws_iam_role.service_role.*.arn, 0) : null
}
output "service_role_id" {
description = "ID of the Service Role created for CodeBuild."
value = var.create_default_service_role ? element(aws_iam_role.service_role.*.id, 0) : null
}