-
-
Notifications
You must be signed in to change notification settings - Fork 149
/
outputs.tf
69 lines (56 loc) · 1.82 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
locals {
codepipeline_resource = try(element(concat(aws_codepipeline.default.*, aws_codepipeline.bitbucket.*), 0), {})
}
output "badge_url" {
description = "The URL of the build badge when badge_enabled is enabled"
value = module.codebuild.badge_url
}
output "webhook_id" {
description = "The CodePipeline webhook's ID"
value = join("", aws_codepipeline_webhook.webhook.*.id)
}
output "webhook_url" {
description = "The CodePipeline webhook's URL. POST events to this endpoint to trigger the target"
value = local.webhook_url
sensitive = true
}
output "codebuild_project_name" {
description = "CodeBuild project name"
value = module.codebuild.project_name
}
output "codebuild_project_id" {
description = "CodeBuild project ID"
value = module.codebuild.project_id
}
output "codebuild_role_id" {
description = "CodeBuild IAM Role ID"
value = module.codebuild.role_id
}
output "codebuild_role_arn" {
description = "CodeBuild IAM Role ARN"
value = module.codebuild.role_arn
}
output "codebuild_cache_bucket_name" {
description = "CodeBuild cache S3 bucket name"
value = module.codebuild.cache_bucket_name
}
output "codebuild_cache_bucket_arn" {
description = "CodeBuild cache S3 bucket ARN"
value = module.codebuild.cache_bucket_arn
}
output "codebuild_badge_url" {
description = "The URL of the build badge when badge_enabled is enabled"
value = module.codebuild.badge_url
}
output "codepipeline_id" {
description = "CodePipeline ID"
value = lookup(local.codepipeline_resource, "id", "")
}
output "codepipeline_arn" {
description = "CodePipeline ARN"
value = lookup(local.codepipeline_resource, "arn", "")
}
output "codepipeline_resource" {
description = "CodePipeline resource"
value = local.codepipeline_resource
}