generated from aws-ia/terraform-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 26
/
outputs.tf
76 lines (61 loc) · 2.3 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
################################################################################
# Helm Release
################################################################################
output "chart" {
description = "The name of the chart"
value = try(helm_release.this[0].metadata[0].chart, null)
}
output "name" {
description = "Name is the name of the release"
value = try(helm_release.this[0].metadata[0].name, null)
}
output "namespace" {
description = "Name of Kubernetes namespace"
value = try(helm_release.this[0].metadata[0].namespace, null)
}
output "revision" {
description = "Version is an int32 which represents the version of the release"
value = try(helm_release.this[0].metadata[0].revision, null)
}
output "version" {
description = "A SemVer 2 conformant version string of the chart"
value = try(helm_release.this[0].metadata[0].version, null)
}
output "app_version" {
description = "The version number of the application being deployed"
value = try(helm_release.this[0].metadata[0].app_version, null)
}
output "values" {
description = "The compounded values from `values` and `set*` attributes"
value = try(helm_release.this[0].metadata[0].values, [])
}
################################################################################
# IAM Role for Service Account(s) (IRSA)
################################################################################
output "iam_role_arn" {
description = "ARN of IAM role"
value = try(aws_iam_role.this[0].arn, null)
}
output "iam_role_name" {
description = "Name of IAM role"
value = try(aws_iam_role.this[0].name, null)
}
output "iam_role_path" {
description = "Path of IAM role"
value = try(aws_iam_role.this[0].path, null)
}
output "iam_role_unique_id" {
description = "Unique ID of IAM role"
value = try(aws_iam_role.this[0].unique_id, null)
}
################################################################################
# IAM Policy
################################################################################
output "iam_policy_arn" {
description = "The ARN assigned by AWS to this policy"
value = try(aws_iam_policy.this[0].arn, null)
}
output "iam_policy" {
description = "The policy document"
value = try(aws_iam_policy.this[0].policy, null)
}