-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.tf
78 lines (63 loc) · 1.73 KB
/
main.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
terraform {
required_version = ">= 1.0.0"
required_providers {
astra = {
source = "datastax/astra"
version = ">=1.0.0"
}
}
}
# Output the security information
output "organization_id" {
value = var.organization_id
description = "The organization ID"
}
output "database_id" {
value = astra_database.hello_astra_db.id
description = "Test Description"
}
output "token" {
value = var.token
description = "Token information - DO NOT LOSE"
}
output "cqlsh_url" {
value = astra_database.hello_astra_db.cqlsh_url
description = "CQL Shell URL"
}
output "graphql_url" {
value = astra_database.hello_astra_db.graphql_url
description = "GraphQL URL"
}
output "data_endpoint_url" {
value = astra_database.hello_astra_db.data_endpoint_url
description = "Data Endpoint URL (REST API)"
}
output "grafana_url" {
value = astra_database.hello_astra_db.grafana_url
description = "Grafana URL"
}
### These commands are not displayed after the "apply"
output "replication_factor" {
value = astra_database.hello_astra_db.replication_factor
description = "Replicaion Factor"
}
output "node_count" {
value = astra_database.hello_astra_db.node_count
description = "Node Count"
}
output "total_storage" {
value = astra_database.hello_astra_db.total_storage
description = "Total Storage (GB?)"
}
output "hello_admin_api_token" {
value = astra_token.api_token.token
description = "Generated API token for the hello_admin role"
}
output "hello_admin_client_id" {
value = astra_token.api_token.client_id
description = "Client ID (aka username) for the hello_admin role"
}
output "hello_admin_client_secret" {
value = astra_token.api_token.secret
description = "Secret (aka user password) for the hello_admin role"
}