This Terraform code is explained in the Deploy a Cluster tutorial.
This Terraform code has three main toggle variables that you can use to deploy to one of the following cloud providers.
Variable | Provider | Description | Default |
---|---|---|---|
deploy-aws |
AWS | Enable to deploy a cluster to AWS. | false |
deploy-azure |
GCP | Enable to deploy a cluster to Azure. | false |
deploy-gcp |
Azure | Enable to deploy a cluster to GCP. | false |
You can enable as many of the providers as you want. You just need to ensure all provider's required values are specified.
To get started, open up the file terraform.tfvars. Toggle the provider variable mentioned in the table and start providing values for the respective cloud provider. Make sure you specify a value to your cloud provider variables and replace all values containing the string REPLACE ME
.
Name | Version |
---|---|
terraform | >= 1.5 |
spectrocloud | >= 0.13.1 |
tls | 4.0.4 |
Name | Version |
---|---|
spectrocloud | 0.13.2 |
tls | 4.0.4 |
No modules.
Name | Description | Type | Default | Required |
---|---|---|---|---|
aws-cloud-account-name | The name of your AWS account as assigned in Palette | string |
"" |
no |
aws-key-pair-name | The name of the AWS key pair to use for SSH access to the cluster. Refer to EC2 Key Pairs to learn more. | string |
"" |
no |
aws-region | AWS region | string |
"us-east-1" |
no |
aws_control_plane_nodes | AWS control plane nodes configuration. | object({ |
{ |
no |
aws_worker_nodes | AWS worker nodes configuration. | object({ |
{ |
no |
azure-cloud-account-name | The name of your Azure account as assigned in Palette | string |
"" |
no |
azure-region | Azure region | string |
"eastus" |
no |
azure-use-azs | A flag for configuring whether to use Azure Availability Zones. Check if your Azure region supports availability zones by reviewing the Azure Regions and Availability Zones resource | bool |
n/a | yes |
azure_control_plane_nodes | Azure control plane nodes configuration. | object({ |
{ |
no |
azure_resource_group | Azure resource group | string |
"" |
no |
azure_subscription_id | Azure subscription ID | string |
"" |
no |
azure_worker_nodes | Azure worker nodes configuration. | object({ |
{ |
no |
deploy-aws | A flag for enabling a deployment on AWS | bool |
n/a | yes |
deploy-azure | A flag for enabling a deployment on Azure | bool |
n/a | yes |
deploy-gcp | A flag for enabling a deployment on GCP | bool |
n/a | yes |
gcp-cloud-account-name | The name of your GCP account as assigned in Palette | string |
"" |
no |
gcp-region | GCP region | string |
"us-central1" |
no |
gcp_control_plane_nodes | GCP control plane nodes configuration. | object({ |
{ |
no |
gcp_project_name | The name of your GCP project | string |
"" |
no |
gcp_worker_nodes | GCP worker nodes configuration. | object({ |
{ |
no |
tags | The default tags to apply to Palette resources | list(string) |
[ |
no |
Name | Description |
---|---|
Advisory | n/a |