-
Notifications
You must be signed in to change notification settings - Fork 1
/
outputs.tf
67 lines (55 loc) · 1.91 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
#Admin
output "admin_iam_role_arn" {
description = "ARN of admin IAM role"
value = element(concat(aws_iam_role.admin.*.arn, [""]), 0)
}
output "admin_iam_role_name" {
description = "Name of admin IAM role"
value = element(concat(aws_iam_role.admin.*.name, [""]), 0)
}
output "admin_iam_role_path" {
description = "Path of admin IAM role"
value = element(concat(aws_iam_role.admin.*.path, [""]), 0)
}
output "admin_iam_role_requires_mfa" {
description = "Whether admin IAM role requires MFA"
value = var.admin_role_requires_mfa
}
# Poweruser
output "poweruser_iam_role_arn" {
description = "ARN of poweruser IAM role"
value = element(concat(aws_iam_role.poweruser.*.arn, [""]), 0)
}
output "poweruser_iam_role_name" {
description = "Name of poweruser IAM role"
value = element(concat(aws_iam_role.poweruser.*.name, [""]), 0)
}
output "poweruser_iam_role_path" {
description = "Path of poweruser IAM role"
value = element(concat(aws_iam_role.poweruser.*.path, [""]), 0)
}
output "poweruser_iam_role_requires_mfa" {
description = "Whether poweruser IAM role requires MFA"
value = var.poweruser_role_requires_mfa
}
# Readonly
output "readonly_iam_role_arn" {
description = "ARN of readonly IAM role"
value = element(concat(aws_iam_role.readonly.*.arn, [""]), 0)
}
output "readonly_iam_role_name" {
description = "Name of readonly IAM role"
value = element(concat(aws_iam_role.readonly.*.name, [""]), 0)
}
output "readonly_iam_role_path" {
description = "Path of readonly IAM role"
value = element(concat(aws_iam_role.readonly.*.path, [""]), 0)
}
output "readonly_iam_role_requires_mfa" {
description = "Whether readonly IAM role requires MFA"
value = var.readonly_role_requires_mfa
}
output "datadog_role_name" {
description = "Datadog role name"
value = element(concat(aws_iam_role.datadog_iam_role.*.name, [""]), 0)
}