forked from terraform-aws-modules/terraform-aws-batch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
107 lines (85 loc) · 3.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
################################################################################
# Compute Environment(s)
################################################################################
output "compute_environments" {
description = "Map of compute environments created and their associated attributes"
value = aws_batch_compute_environment.this
}
################################################################################
# Compute Environment - Instance Role
################################################################################
output "instance_iam_role_name" {
description = "The name of the IAM role"
value = try(aws_iam_role.instance[0].name, "")
}
output "instance_iam_role_arn" {
description = "The Amazon Resource Name (ARN) specifying the IAM role"
value = try(aws_iam_role.instance[0].arn, "")
}
output "instance_iam_role_unique_id" {
description = "Stable and unique string identifying the IAM role"
value = try(aws_iam_role.instance[0].unique_id, "")
}
output "instance_iam_instance_profile_arn" {
description = "ARN assigned by AWS to the instance profile"
value = try(aws_iam_instance_profile.instance[0].arn, "")
}
output "instance_iam_instance_profile_id" {
description = "Instance profile's ID"
value = try(aws_iam_instance_profile.instance[0].id, "")
}
output "instance_iam_instance_profile_unique" {
description = "Stable and unique string identifying the IAM instance profile"
value = try(aws_iam_instance_profile.instance[0].unique_id, "")
}
################################################################################
# Compute Environment - Service Role
################################################################################
output "service_iam_role_name" {
description = "The name of the IAM role"
value = try(aws_iam_role.service[0].name, "")
}
output "service_iam_role_arn" {
description = "The Amazon Resource Name (ARN) specifying the IAM role"
value = try(aws_iam_role.service[0].arn, "")
}
output "service_iam_role_unique_id" {
description = "Stable and unique string identifying the IAM role"
value = try(aws_iam_role.service[0].unique_id, "")
}
################################################################################
# Compute Environment - Spot Fleet Role
################################################################################
output "spot_fleet_iam_role_name" {
description = "The name of the IAM role"
value = try(aws_iam_role.spot_fleet[0].name, "")
}
output "spot_fleet_iam_role_arn" {
description = "The Amazon Resource Name (ARN) specifying the IAM role"
value = try(aws_iam_role.spot_fleet[0].arn, "")
}
output "spot_fleet_iam_role_unique_id" {
description = "Stable and unique string identifying the IAM role"
value = try(aws_iam_role.spot_fleet[0].unique_id, "")
}
################################################################################
# Job Queue
################################################################################
output "job_queues" {
description = "Map of job queues created and their associated attributes"
value = aws_batch_job_queue.this
}
################################################################################
# Scheduling Policy
################################################################################
output "scheduling_policies" {
description = "Map of scheduling policies created and their associated attributes"
value = aws_batch_scheduling_policy.this
}
################################################################################
# Job Definitions
################################################################################
output "job_definitions" {
description = "Map of job defintions created and their associated attributes"
value = aws_batch_job_definition.this
}