Last active
June 27, 2024 15:13
-
-
Save wicaksana/d87f380e4394bd3a3c0b7097953dc083 to your computer and use it in GitHub Desktop.
Terraform for Aura
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variable "aura_version" { | |
type = string | |
description = "Neo4j Aura version" | |
default = "5" | |
validation { | |
condition = contains( | |
["5"], | |
var.aura_version | |
) | |
error_message = "Invalid Aura version." | |
} | |
} | |
variable "aura_cloud_provider" { | |
type = string | |
description = "Choose the cloud provider (options: gcp,aws,azure)" | |
default = "gcp" | |
validation { | |
condition = contains( | |
["gcp", "aws", "azure"], | |
var.aura_cloud_provider | |
) | |
error_message = "Invalid cloud provider (options: gcp,aws,azure)." | |
} | |
} | |
variable "aura_region" { | |
type = string | |
description = "The region where the instance is hosted. Please refer to your Aura Tenants instance configurations, returned by the GET /tenants/{tenantId} endpoint, for a list of valid regions for your tenant" | |
default = "asia-southeast1" | |
} | |
variable "aura_memory" { | |
type = string | |
description = "The size of the instance memory in GB (example: 8GB, 16GB, ...). Please refer to your Aura Tenants instance configurations, returned by the GET /tenants/{tenantId} endpoint, for a list of valid sizes for your tenant" | |
default = "8GB" | |
} | |
variable "aura_name" { | |
type = string | |
description = "Aura instance name" | |
default = "test-instance" | |
} | |
variable "aura_type" { | |
type = string | |
description = "Aura type" | |
default = "professional-db" | |
validation { | |
condition = contains( | |
[ | |
"free-db", | |
"enterprise-db", | |
"enterprise-ds", | |
"professional-db", | |
"professional-ds" | |
], | |
var.aura_type | |
) | |
error_message = "Invalid Aura type." | |
} | |
} | |
variable "aura_tenant_id" { | |
type = string | |
description = "Neo4j Aura tenant ID" | |
default = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx" | |
} | |
variable client_id {} | |
variable client_secret { | |
sensitive = true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment