generated from clowdhaus/terraform-aws-module-template
-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathoutputs.tf
121 lines (96 loc) · 4.46 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
################################################################################
# Workspace
################################################################################
output "workspace_arn" {
description = "The Amazon Resource Name (ARN) of the Grafana workspace"
value = try(aws_grafana_workspace.this[0].arn, null)
}
output "workspace_id" {
description = "The ID of the Grafana workspace"
value = try(aws_grafana_workspace.this[0].id, null)
}
output "workspace_endpoint" {
description = "The endpoint of the Grafana workspace"
value = try(aws_grafana_workspace.this[0].endpoint, null)
}
output "workspace_grafana_version" {
description = "The version of Grafana running on the workspace"
value = try(aws_grafana_workspace.this[0].grafana_version, null)
}
################################################################################
# Workspace API Key
################################################################################
output "workspace_api_keys" {
description = "The workspace API keys created including their attributes"
value = aws_grafana_workspace_api_key.this
}
################################################################################
# Workspace Service Account
################################################################################
output "workspace_service_accounts" {
description = "The workspace service accounts created including their attributes"
value = aws_grafana_workspace_service_account.this
}
output "workspace_service_account_tokens" {
description = "The workspace service account tokens created including their attributes"
value = aws_grafana_workspace_service_account_token.this
}
################################################################################
# Workspace IAM Role
################################################################################
output "workspace_iam_role_name" {
description = "IAM role name of the Grafana workspace"
value = try(aws_iam_role.this[0].name, null)
}
output "workspace_iam_role_arn" {
description = "IAM role ARN of the Grafana workspace"
value = try(aws_iam_role.this[0].arn, null)
}
output "workspace_iam_role_unique_id" {
description = "Stable and unique string identifying the IAM role"
value = try(aws_iam_role.this[0].unique_id, null)
}
################################################################################
# Workspace IAM Policy
################################################################################
output "workspace_iam_role_policy_arn" {
description = "IAM Policy ARN of the Grafana workspace IAM role"
value = try(aws_iam_policy.this[0].arn, null)
}
output "workspace_iam_role_policy_name" {
description = "IAM Policy name of the Grafana workspace IAM role"
value = try(aws_iam_policy.this[0].name, null)
}
output "workspace_iam_role_policy_id" {
description = "Stable and unique string identifying the IAM Policy"
value = try(aws_iam_policy.this[0].policy_id, null)
}
################################################################################
# Workspace SAML Configuration
################################################################################
output "saml_configuration_status" {
description = "Status of the SAML configuration"
value = try(aws_grafana_workspace_saml_configuration.this[0].status, null)
}
################################################################################
# License Association
################################################################################
output "license_free_trial_expiration" {
description = "If `license_type` is set to `ENTERPRISE_FREE_TRIAL`, this is the expiration date of the free trial"
value = try(aws_grafana_license_association.this[0].free_trial_expiration, null)
}
output "license_expiration" {
description = "If `license_type` is set to `ENTERPRISE`, this is the expiration date of the enterprise license"
value = try(aws_grafana_license_association.this[0].license_expiration, null)
}
################################################################################
# Security Group
################################################################################
output "security_group_arn" {
description = "Amazon Resource Name (ARN) of the security group"
value = try(aws_security_group.this[0].arn, null)
}
output "security_group_id" {
description = "ID of the security group"
value = try(aws_security_group.this[0].id, null)
}