generated from clowdhaus/terraform-aws-module-template
-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
outputs.tf
156 lines (124 loc) · 5.73 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
################################################################################
# Cluster
################################################################################
output "cluster_arn" {
description = "The ARN of the cluster"
value = try(aws_emr_cluster.this[0].arn, null)
}
output "cluster_id" {
description = "The ID of the cluster"
value = try(aws_emr_cluster.this[0].id, null)
}
output "cluster_core_instance_group_id" {
description = "Core node type Instance Group ID, if using Instance Group for this node type"
value = try(aws_emr_cluster.this[0].core_instance_group[0].id, null)
}
output "cluster_master_instance_group_id" {
description = "Master node type Instance Group ID, if using Instance Group for this node type"
value = try(aws_emr_cluster.this[0].master_instance_group[0].id, null)
}
output "cluster_master_public_dns" {
description = "The DNS name of the master node. If the cluster is on a private subnet, this is the private DNS name. On a public subnet, this is the public DNS name"
value = try(aws_emr_cluster.this[0].master_public_dns, null)
}
################################################################################
# Security Configuration
################################################################################
output "security_configuration_id" {
description = "The ID of the security configuration"
value = try(aws_emr_security_configuration.this[0].id, null)
}
output "security_configuration_name" {
description = "The name of the security configuration"
value = try(aws_emr_security_configuration.this[0].name, null)
}
################################################################################
# Service IAM Role
################################################################################
output "service_iam_role_name" {
description = "Service IAM role name"
value = try(aws_iam_role.service[0].name, null)
}
output "service_iam_role_arn" {
description = "Service IAM role ARN"
value = try(aws_iam_role.service[0].arn, var.service_iam_role_arn)
}
output "service_iam_role_unique_id" {
description = "Stable and unique string identifying the service IAM role"
value = try(aws_iam_role.service[0].unique_id, null)
}
################################################################################
# Autoscaling IAM Role
################################################################################
output "autoscaling_iam_role_name" {
description = "Autoscaling IAM role name"
value = try(aws_iam_role.autoscaling[0].name, null)
}
output "autoscaling_iam_role_arn" {
description = "Autoscaling IAM role ARN"
value = try(aws_iam_role.autoscaling[0].arn, var.autoscaling_iam_role_arn)
}
output "autoscaling_iam_role_unique_id" {
description = "Stable and unique string identifying the autoscaling IAM role"
value = try(aws_iam_role.autoscaling[0].unique_id, null)
}
################################################################################
# Instance Profile
################################################################################
output "iam_instance_profile_iam_role_name" {
description = "Instance profile IAM role name"
value = try(aws_iam_role.instance_profile[0].name, null)
}
output "iam_instance_profile_iam_role_arn" {
description = "Instance profile IAM role ARN"
value = try(aws_iam_role.instance_profile[0].arn, null)
}
output "iam_instance_profile_iam_role_unique_id" {
description = "Stable and unique string identifying the instance profile IAM role"
value = try(aws_iam_role.instance_profile[0].unique_id, null)
}
output "iam_instance_profile_arn" {
description = "ARN assigned by AWS to the instance profile"
value = try(aws_iam_instance_profile.this[0].arn, null)
}
output "iam_instance_profile_id" {
description = "Instance profile's ID"
value = try(aws_iam_instance_profile.this[0].id, null)
}
output "iam_instance_profile_unique" {
description = "Stable and unique string identifying the IAM instance profile"
value = try(aws_iam_instance_profile.this[0].unique_id, null)
}
################################################################################
# Managed Master Security Group
################################################################################
output "managed_master_security_group_arn" {
description = "Amazon Resource Name (ARN) of the managed master security group"
value = try(aws_security_group.master[0].arn, null)
}
output "managed_master_security_group_id" {
description = "ID of the managed master security group"
value = try(aws_security_group.master[0].id, null)
}
################################################################################
# Managed Slave Security Group
################################################################################
output "managed_slave_security_group_arn" {
description = "Amazon Resource Name (ARN) of the managed slave security group"
value = try(aws_security_group.slave[0].arn, null)
}
output "managed_slave_security_group_id" {
description = "ID of the managed slave security group"
value = try(aws_security_group.slave[0].id, null)
}
################################################################################
# Managed Service Access Security Group
################################################################################
output "managed_service_access_security_group_arn" {
description = "Amazon Resource Name (ARN) of the managed service access security group"
value = try(aws_security_group.service[0].arn, null)
}
output "managed_service_access_security_group_id" {
description = "ID of the managed service access security group"
value = try(aws_security_group.service[0].id, null)
}