-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
63 lines (48 loc) · 1.89 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
output "backend_user_arn" {
value = try(aws_iam_user.backend[0].arn, data.aws_iam_user.backend[0].arn, null)
}
output "backend_user_name" {
value = try(aws_iam_user.backend[0].id, data.aws_iam_user.backend[0].user_name, null)
}
output "backend_user_unique_id" {
value = try(aws_iam_user.backend[0].unique_id, data.aws_iam_user.backend[0].id, null)
}
output "backend_user_access_key_id" {
value = var.backend_user.create ? aws_iam_access_key.backend[0].id : null
}
output "backend_user_access_key_encrypted_secret" {
value = var.backend_user.create ? aws_iam_access_key.backend[0].encrypted_secret : null
}
output "backend_role_arn" {
value = try(aws_iam_role.backend[0].arn, data.aws_iam_role.backend[0].arn, null)
}
output "backend_role_name" {
value = try(aws_iam_role.backend[0].name, data.aws_iam_role.backend[0].name, null)
}
output "backend_dynamodb_rw_policy_arn" {
value = try(aws_iam_policy.backend_dynamodb_rw[0].arn, var.backend_role.dynamodb_policy.policy_arn)
}
output "backend_s3_rw_policy_arn" {
value = try(aws_iam_policy.backend_s3_rw[0].arn, var.backend_role.s3_policy.policy_arn)
}
output "apply_user_arn" {
value = try(aws_iam_user.apply[0].arn, data.aws_iam_user.apply[0].arn, null)
}
output "apply_user_name" {
value = try(aws_iam_user.apply[0].name, data.aws_iam_user.apply[0].user_name, null)
}
output "apply_user_unique_id" {
value = try(aws_iam_user.apply[0].unique_id, data.aws_iam_user.apply[0].id, null)
}
output "apply_user_access_key_id" {
value = var.apply_user.create ? aws_iam_access_key.apply[0].id : null
}
output "apply_user_access_key_encrypted_secret" {
value = var.apply_user.create ? aws_iam_access_key.apply[0].encrypted_secret : null
}
output "apply_role_arn" {
value = try(aws_iam_role.apply[0].arn, data.aws_iam_role.apply[0].arn, null)
}
output "apply_role_name" {
value = try(aws_iam_role.apply[0].name, data.aws_iam_role.apply[0].name, null)
}