diff --git a/.copywrite.hcl b/.copywrite.hcl new file mode 100644 index 0000000..2401352 --- /dev/null +++ b/.copywrite.hcl @@ -0,0 +1,15 @@ +schema_version = 1 + +project { + copyright_holder = "Spectro Cloud" + license = "Apache-2.0" + copyright_year = 2024 + + # (OPTIONAL) A list of globs that should not have copyright/license headers. + # Supports doublestar glob patterns for more flexibility in defining which + # files or folders should be ignored + header_ignore = [ + # "vendors/**", + # "**autogen**", + ] +} \ No newline at end of file diff --git a/.releaserc.yaml b/.releaserc.yaml index 0d7c565..6a3618f 100644 --- a/.releaserc.yaml +++ b/.releaserc.yaml @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + branches: [main] repositoryUrl: https://github.com/spectrocloud/tutorials plugins: diff --git a/Dockerfile b/Dockerfile index a1bb763..6e575db 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + ARG PALETTE_VERSION FROM gcr.io/spectro-images-public/release/spectro-registry:${PALETTE_VERSION} as server diff --git a/Makefile b/Makefile index e30f8de..3c56833 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +.PHONY: license + init: ## Install dependencies and setup the project @echo "initializing npm dependencies" npm ci @@ -17,4 +19,9 @@ build-docker: ## Build docker image --build-arg PACKER_VERSION=$(PACKER_VERSION) \ --build-arg ORAS_VERSION=$(PACKER_VERSION) \ --build-arg TERRAFORM_VERSION=$(TERRAFORM_VERSION) \ - -t tutorials . \ No newline at end of file + -t tutorials . + + +license: ## Adds a license header to all files. Reference https://github.com/hashicorp/copywrite to learn more. + @echo "Applying license headers..." + copywrite headers \ No newline at end of file diff --git a/commitlint.config.js b/commitlint.config.js index 5d7216b..d87cca3 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) Spectro Cloud + * SPDX-License-Identifier: Apache-2.0 + */ + module.exports = { extends: [ '@commitlint/config-conventional' diff --git a/edge/vmware/clone_vm_template/delete-edge-host.sh b/edge/vmware/clone_vm_template/delete-edge-host.sh index 675da14..7b88619 100755 --- a/edge/vmware/clone_vm_template/delete-edge-host.sh +++ b/edge/vmware/clone_vm_template/delete-edge-host.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + source ./setenv.sh diff --git a/edge/vmware/clone_vm_template/delete-packer-cache.sh b/edge/vmware/clone_vm_template/delete-packer-cache.sh index 8c491f8..6d52818 100644 --- a/edge/vmware/clone_vm_template/delete-packer-cache.sh +++ b/edge/vmware/clone_vm_template/delete-packer-cache.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + source /edge/vmware/clone_vm_template/setenv.sh diff --git a/edge/vmware/clone_vm_template/deploy-edge-host.sh b/edge/vmware/clone_vm_template/deploy-edge-host.sh index 0d76fa1..41543ab 100755 --- a/edge/vmware/clone_vm_template/deploy-edge-host.sh +++ b/edge/vmware/clone_vm_template/deploy-edge-host.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + source ./setenv.sh diff --git a/edge/vmware/clone_vm_template/setenv.sh b/edge/vmware/clone_vm_template/setenv.sh index 4899293..6601d63 100644 --- a/edge/vmware/clone_vm_template/setenv.sh +++ b/edge/vmware/clone_vm_template/setenv.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + # Number of VMs to provision export NO_OF_VMS=3 export VM_PREFIX="demo" diff --git a/edge/vmware/packer/build.pkr.hcl b/edge/vmware/packer/build.pkr.hcl index e9f86cc..96141cc 100644 --- a/edge/vmware/packer/build.pkr.hcl +++ b/edge/vmware/packer/build.pkr.hcl @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + packer { required_plugins { vsphere = { diff --git a/edge/vmware/packer/vsphere.hcl b/edge/vmware/packer/vsphere.hcl index c2622b2..3d0138d 100644 --- a/edge/vmware/packer/vsphere.hcl +++ b/edge/vmware/packer/vsphere.hcl @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + # Virtual Machine Settings ########### DO NOT EDIT ################# # VM Template Name diff --git a/packs/hello-universe-pack/manifests/hello-universe.yaml b/packs/hello-universe-pack/manifests/hello-universe.yaml index fefef71..63df4c6 100644 --- a/packs/hello-universe-pack/manifests/hello-universe.yaml +++ b/packs/hello-universe-pack/manifests/hello-universe.yaml @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + apiVersion: v1 kind: Service metadata: diff --git a/packs/hello-universe-pack/values.yaml b/packs/hello-universe-pack/values.yaml index a073d90..910f707 100644 --- a/packs/hello-universe-pack/values.yaml +++ b/packs/hello-universe-pack/values.yaml @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + pack: # The namespace (on the target cluster) in which the pack will be deployed. # When the namespace is not found, a new namespace will be created with the name specified. diff --git a/static/defaults/ngrok.yml b/static/defaults/ngrok.yml index 08b1c93..04eca47 100644 --- a/static/defaults/ngrok.yml +++ b/static/defaults/ngrok.yml @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + # This token is intended for learning purposes, generated from https://ngrok.com/ version: "2" authtoken: 2PWATzqpNw94GiZ9E2Ghheh2Mal_4gYsxK4DBRVEVLEdcee8m diff --git a/static/defaults/registry-config.yml b/static/defaults/registry-config.yml index 58d38fd..68f5c47 100644 --- a/static/defaults/registry-config.yml +++ b/static/defaults/registry-config.yml @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + version: 0.1 log: level: debug diff --git a/terraform/hello-universe-tf/application-profiles.tf b/terraform/hello-universe-tf/application-profiles.tf index 258b01b..c8b8347 100644 --- a/terraform/hello-universe-tf/application-profiles.tf +++ b/terraform/hello-universe-tf/application-profiles.tf @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + ########################################## # Scenario 1: Single Application ########################################## diff --git a/terraform/hello-universe-tf/application.tf b/terraform/hello-universe-tf/application.tf index cba40ba..1d2e873 100644 --- a/terraform/hello-universe-tf/application.tf +++ b/terraform/hello-universe-tf/application.tf @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + ########################################## # Scenario 1: Single Application ########################################## diff --git a/terraform/hello-universe-tf/data.tf b/terraform/hello-universe-tf/data.tf index 5fbb094..7732089 100644 --- a/terraform/hello-universe-tf/data.tf +++ b/terraform/hello-universe-tf/data.tf @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + data "spectrocloud_cluster_group" "beehive" { name = var.cluster-group-name context = "system" diff --git a/terraform/hello-universe-tf/inputs.tf b/terraform/hello-universe-tf/inputs.tf index dd6de60..d27240d 100644 --- a/terraform/hello-universe-tf/inputs.tf +++ b/terraform/hello-universe-tf/inputs.tf @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + variable "cluster-group-name" { type = string default = "beehive" diff --git a/terraform/hello-universe-tf/outputs.tf b/terraform/hello-universe-tf/outputs.tf index 790572b..ec84c3a 100644 --- a/terraform/hello-universe-tf/outputs.tf +++ b/terraform/hello-universe-tf/outputs.tf @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + # output "beehive-cluster-id" { # value = data.spectrocloud_cluster_group.beehive.id # } diff --git a/terraform/hello-universe-tf/provider.tf b/terraform/hello-universe-tf/provider.tf index 9610aaf..d334221 100644 --- a/terraform/hello-universe-tf/provider.tf +++ b/terraform/hello-universe-tf/provider.tf @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + terraform { required_providers { spectrocloud = { diff --git a/terraform/hello-universe-tf/virutal-clusters.tf b/terraform/hello-universe-tf/virutal-clusters.tf index b518497..888ead1 100644 --- a/terraform/hello-universe-tf/virutal-clusters.tf +++ b/terraform/hello-universe-tf/virutal-clusters.tf @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + ########################################## # Scenario 1: Single Application # ########################################## diff --git a/terraform/iaas-cluster-deployment-tf/README.md b/terraform/iaas-cluster-deployment-tf/README.md index f6fbb12..b9a4c69 100644 --- a/terraform/iaas-cluster-deployment-tf/README.md +++ b/terraform/iaas-cluster-deployment-tf/README.md @@ -1,25 +1,23 @@ # IaaS Cluster Deployment - This Terraform code is explained in the [Deploy a Cluster](https://docs.spectrocloud.com/clusters/public-cloud/deploy-k8s-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`| +| 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`. - - ## Requirements | Name | Version | |------|---------| +| [terraform](#requirement\_terraform) | >= 1.5 | | [spectrocloud](#requirement\_spectrocloud) | >= 0.13.1 | | [tls](#requirement\_tls) | 4.0.4 | @@ -27,7 +25,7 @@ To get started, open up the file **terraform.tfvars**. Toggle the provider varia | Name | Version | |------|---------| -| [spectrocloud](#provider\_spectrocloud) | 0.16.1 | +| [spectrocloud](#provider\_spectrocloud) | 0.13.2 | | [tls](#provider\_tls) | 4.0.4 | ## Modules @@ -60,7 +58,7 @@ No modules. | [spectrocloud_pack.gcp_csi](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | | [spectrocloud_pack.gcp_k8s](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | | [spectrocloud_pack.gcp_ubuntu](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | -| [spectrocloud_pack.proxy](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | +| [spectrocloud_registry.public_registry](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/registry) | data source | ## Inputs @@ -68,22 +66,22 @@ No modules. |------|-------------|------|---------|:--------:| | [aws-cloud-account-name](#input\_aws-cloud-account-name) | The name of your AWS account as assigned in Palette | `string` | `""` | no | | [aws-key-pair-name](#input\_aws-key-pair-name) | The name of the AWS key pair to use for SSH access to the cluster. Refer to [EC2 Key Pairs](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) to learn more. | `string` | `""` | no | -| [aws-region](#input\_aws-region) | AWS region | `string` | `"us-east-1"` | yes | -| [aws\_master\_nodes](#input\_aws\_master\_nodes) | AWS master nodes configuration. |
object({|
count = string
control_plane = bool
instance_type = string
disk_size_gb = string
availability_zones = list(string)
})
{| no | +| [aws-region](#input\_aws-region) | AWS region | `string` | `"us-east-1"` | no | +| [aws\_control\_plane\_nodes](#input\_aws\_control\_plane\_nodes) | AWS control plane nodes configuration. |
"availability_zones": [
"us-east-1a"
],
"control_plane": true,
"count": "1",
"disk_size_gb": "60",
"instance_type": "m4.2xlarge"
}
object({|
count = string
control_plane = bool
instance_type = string
disk_size_gb = string
availability_zones = list(string)
})
{| no | | [aws\_worker\_nodes](#input\_aws\_worker\_nodes) | AWS worker nodes configuration. |
"availability_zones": [
"us-east-1a"
],
"control_plane": true,
"count": "1",
"disk_size_gb": "60",
"instance_type": "m4.2xlarge"
}
object({|
count = string
control_plane = bool
instance_type = string
disk_size_gb = string
availability_zones = list(string)
})
{| no | | [azure-cloud-account-name](#input\_azure-cloud-account-name) | The name of your Azure account as assigned in Palette | `string` | `""` | no | | [azure-region](#input\_azure-region) | Azure region | `string` | `"eastus"` | no | -| [azure-use-azs](#input\_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](https://learn.microsoft.com/en-us/azure/reliability/availability-zones-service-support#azure-regions-with-availability-zone-support) resource. | `bool` | `true` | no | -| [azure\_master\_nodes](#input\_azure\_master\_nodes) | Azure master nodes configuration. |
"availability_zones": [
"us-east-1a"
],
"control_plane": false,
"count": "1",
"disk_size_gb": "60",
"instance_type": "m4.2xlarge"
}
object({|
count = string
control_plane = bool
instance_type = string
disk_size_gb = string
azs = list(string)
is_system_node_pool = bool
})
{| no | +| [azure-use-azs](#input\_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](https://learn.microsoft.com/en-us/azure/reliability/availability-zones-service-support#azure-regions-with-availability-zone-support) resource | `bool` | n/a | yes | +| [azure\_control\_plane\_nodes](#input\_azure\_control\_plane\_nodes) | Azure control plane nodes configuration. |
"azs": [
"1"
],
"control_plane": true,
"count": "1",
"disk_size_gb": "60",
"instance_type": "Standard_A8_v2",
"is_system_node_pool": false
}
object({|
count = string
control_plane = bool
instance_type = string
disk_size_gb = string
azs = list(string)
is_system_node_pool = bool
})
{| no | | [azure\_resource\_group](#input\_azure\_resource\_group) | Azure resource group | `string` | `""` | no | | [azure\_subscription\_id](#input\_azure\_subscription\_id) | Azure subscription ID | `string` | `""` | no | -| [azure\_worker\_nodes](#input\_azure\_worker\_nodes) | Azure worker nodes configuration. |
"azs": [
"1"
],
"control_plane": true,
"count": "1",
"disk_size_gb": "60",
"instance_type": "Standard_A8_v2",
"is_system_node_pool": false
}
object({|
count = string
control_plane = bool
instance_type = string
disk_size_gb = string
azs = list(string)
is_system_node_pool = bool
})
{| no | +| [azure\_worker\_nodes](#input\_azure\_worker\_nodes) | Azure worker nodes configuration. |
"azs": [],
"control_plane": false,
"count": "1",
"disk_size_gb": "60",
"instance_type": "Standard_A8_v2",
"is_system_node_pool": false
}
object({|
count = string
control_plane = bool
instance_type = string
disk_size_gb = string
azs = list(string)
is_system_node_pool = bool
})
{| no | | [deploy-aws](#input\_deploy-aws) | A flag for enabling a deployment on AWS | `bool` | n/a | yes | | [deploy-azure](#input\_deploy-azure) | A flag for enabling a deployment on Azure | `bool` | n/a | yes | | [deploy-gcp](#input\_deploy-gcp) | A flag for enabling a deployment on GCP | `bool` | n/a | yes | | [gcp-cloud-account-name](#input\_gcp-cloud-account-name) | The name of your GCP account as assigned in Palette | `string` | `""` | no | | [gcp-region](#input\_gcp-region) | GCP region | `string` | `"us-central1"` | no | -| [gcp\_master\_nodes](#input\_gcp\_master\_nodes) | GCP master nodes configuration. |
"azs": [
"1"
],
"control_plane": false,
"count": "1",
"disk_size_gb": "60",
"instance_type": "Standard_A8_v2",
"is_system_node_pool": false
}
object({|
count = string
control_plane = bool
instance_type = string
disk_size_gb = string
availability_zones = list(string)
})
{| no | +| [gcp\_control\_plane\_nodes](#input\_gcp\_control\_plane\_nodes) | GCP control plane nodes configuration. |
"availability_zones": [
"us-central1-a"
],
"control_plane": true,
"count": "1",
"disk_size_gb": "60",
"instance_type": "n1-standard-4"
}
object({|
count = string
control_plane = bool
instance_type = string
disk_size_gb = string
availability_zones = list(string)
})
{| no | | [gcp\_project\_name](#input\_gcp\_project\_name) | The name of your GCP project | `string` | `""` | no | | [gcp\_worker\_nodes](#input\_gcp\_worker\_nodes) | GCP worker nodes configuration. |
"availability_zones": [
"us-central1-a"
],
"control_plane": true,
"count": "1",
"disk_size_gb": "60",
"instance_type": "n1-standard-4"
}
object({|
count = string
control_plane = bool
instance_type = string
disk_size_gb = string
availability_zones = list(string)
})
{| no | | [tags](#input\_tags) | The default tags to apply to Palette resources | `list(string)` |
"availability_zones": [
"us-central1-a"
],
"control_plane": false,
"count": "1",
"disk_size_gb": "60",
"instance_type": "n1-standard-4"
}
[| no | diff --git a/terraform/iaas-cluster-deployment-tf/cluster_profiles.tf b/terraform/iaas-cluster-deployment-tf/cluster_profiles.tf index 88d094f..65b3e22 100644 --- a/terraform/iaas-cluster-deployment-tf/cluster_profiles.tf +++ b/terraform/iaas-cluster-deployment-tf/cluster_profiles.tf @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + ######################### # AWS Cluster Profile ######################### diff --git a/terraform/iaas-cluster-deployment-tf/clusters.tf b/terraform/iaas-cluster-deployment-tf/clusters.tf index a68cf78..e3cea99 100644 --- a/terraform/iaas-cluster-deployment-tf/clusters.tf +++ b/terraform/iaas-cluster-deployment-tf/clusters.tf @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + ######################### # AWS Cluster Profile ######################## @@ -20,11 +23,11 @@ resource "spectrocloud_cluster_aws" "aws-cluster" { machine_pool { control_plane = true control_plane_as_worker = true - name = "master-pool" - count = var.aws_master_nodes.count - instance_type = var.aws_master_nodes.instance_type - disk_size_gb = var.aws_master_nodes.disk_size_gb - azs = var.aws_master_nodes.availability_zones + name = "control-plane-pool" + count = var.aws_control_plane_nodes.count + instance_type = var.aws_control_plane_nodes.instance_type + disk_size_gb = var.aws_control_plane_nodes.disk_size_gb + azs = var.aws_control_plane_nodes.availability_zones } machine_pool { @@ -64,13 +67,13 @@ resource "spectrocloud_cluster_azure" "azure-cluster" { machine_pool { control_plane = true control_plane_as_worker = true - name = "master-pool" - count = var.azure_master_nodes.count - instance_type = var.azure_master_nodes.instance_type - azs = var.azure_master_nodes.azs - is_system_node_pool = var.azure_master_nodes.is_system_node_pool + name = "control-plane-pool" + count = var.azure_control_plane_nodes.count + instance_type = var.azure_control_plane_nodes.instance_type + azs = var.azure_control_plane_nodes.azs + is_system_node_pool = var.azure_control_plane_nodes.is_system_node_pool disk { - size_gb = var.azure_master_nodes.disk_size_gb + size_gb = var.azure_control_plane_nodes.disk_size_gb type = "Standard_LRS" } } @@ -111,11 +114,11 @@ resource "spectrocloud_cluster_gcp" "gcp-cluster" { machine_pool { control_plane = true control_plane_as_worker = true - name = "master-pool" - count = var.gcp_master_nodes.count - instance_type = var.gcp_master_nodes.instance_type - disk_size_gb = var.gcp_master_nodes.disk_size_gb - azs = var.gcp_master_nodes.availability_zones + name = "control-plane-pool" + count = var.gcp_control_plane_nodes.count + instance_type = var.gcp_control_plane_nodes.instance_type + disk_size_gb = var.gcp_control_plane_nodes.disk_size_gb + azs = var.gcp_control_plane_nodes.availability_zones } machine_pool { @@ -130,4 +133,4 @@ resource "spectrocloud_cluster_gcp" "gcp-cluster" { create = "30m" delete = "15m" } -} \ No newline at end of file +} diff --git a/terraform/iaas-cluster-deployment-tf/data.tf b/terraform/iaas-cluster-deployment-tf/data.tf index 382502c..19dc901 100644 --- a/terraform/iaas-cluster-deployment-tf/data.tf +++ b/terraform/iaas-cluster-deployment-tf/data.tf @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + #################################### # Data resources for the profile #################################### diff --git a/terraform/iaas-cluster-deployment-tf/inputs.tf b/terraform/iaas-cluster-deployment-tf/inputs.tf index 1312b1d..67737e8 100644 --- a/terraform/iaas-cluster-deployment-tf/inputs.tf +++ b/terraform/iaas-cluster-deployment-tf/inputs.tf @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + variable "aws-cloud-account-name" { type = string description = "The name of your AWS account as assigned in Palette" @@ -56,7 +59,7 @@ variable "azure-use-azs" { variable "aws-region" { type = string description = "AWS region" - default = "us-east-1" + default = "us-east-1" } variable "gcp-region" { @@ -77,7 +80,7 @@ variable "aws-key-pair-name" { default = "" } -variable "aws_master_nodes" { +variable "aws_control_plane_nodes" { type = object({ count = string control_plane = bool @@ -92,7 +95,7 @@ variable "aws_master_nodes" { disk_size_gb = "60" availability_zones = ["us-east-1a"] } - description = "AWS master nodes configuration." + description = "AWS control plane nodes configuration." } variable "aws_worker_nodes" { type = object({ @@ -112,7 +115,7 @@ variable "aws_worker_nodes" { description = "AWS worker nodes configuration." } -variable "azure_master_nodes" { +variable "azure_control_plane_nodes" { type = object({ count = string control_plane = bool @@ -128,7 +131,7 @@ variable "azure_master_nodes" { disk_size_gb = "60" azs = ["1"] is_system_node_pool = false } - description = "Azure master nodes configuration." + description = "Azure control plane nodes configuration." } variable "azure_worker_nodes" { @@ -150,7 +153,7 @@ variable "azure_worker_nodes" { description = "Azure worker nodes configuration." } -variable "gcp_master_nodes" { +variable "gcp_control_plane_nodes" { type = object({ count = string control_plane = bool @@ -164,7 +167,7 @@ variable "gcp_master_nodes" { instance_type = "n1-standard-4" disk_size_gb = "60" availability_zones = ["us-central1-a"] } - description = "GCP master nodes configuration." + description = "GCP control plane nodes configuration." } variable "gcp_worker_nodes" { @@ -194,4 +197,4 @@ variable "tags" { "terraform_managed:true", "tutorial:iaas-cluster-deployment-tf" ] -} \ No newline at end of file +} diff --git a/terraform/iaas-cluster-deployment-tf/manifests/hello-universe.yaml b/terraform/iaas-cluster-deployment-tf/manifests/hello-universe.yaml index 5253f43..dcc34f0 100644 --- a/terraform/iaas-cluster-deployment-tf/manifests/hello-universe.yaml +++ b/terraform/iaas-cluster-deployment-tf/manifests/hello-universe.yaml @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + apiVersion: v1 kind: Namespace metadata: diff --git a/terraform/iaas-cluster-deployment-tf/outputs.tf b/terraform/iaas-cluster-deployment-tf/outputs.tf index 97f63a6..b1a476b 100644 --- a/terraform/iaas-cluster-deployment-tf/outputs.tf +++ b/terraform/iaas-cluster-deployment-tf/outputs.tf @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + output "Advisory" { value = <<-EOT diff --git a/terraform/iaas-cluster-deployment-tf/provider.tf b/terraform/iaas-cluster-deployment-tf/provider.tf index fbfd8d3..735820b 100644 --- a/terraform/iaas-cluster-deployment-tf/provider.tf +++ b/terraform/iaas-cluster-deployment-tf/provider.tf @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + terraform { required_providers { spectrocloud = { diff --git a/terraform/iaas-cluster-deployment-tf/ssh-key.tf b/terraform/iaas-cluster-deployment-tf/ssh-key.tf index fc48737..b7a47a7 100644 --- a/terraform/iaas-cluster-deployment-tf/ssh-key.tf +++ b/terraform/iaas-cluster-deployment-tf/ssh-key.tf @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + resource "tls_private_key" "tutorial_ssh_key" { count = var.deploy-azure ? 1 : 0 algorithm = "RSA" diff --git a/terraform/iaas-cluster-deployment-tf/terraform.tfvars b/terraform/iaas-cluster-deployment-tf/terraform.tfvars index b72c4b1..ac7fd6c 100644 --- a/terraform/iaas-cluster-deployment-tf/terraform.tfvars +++ b/terraform/iaas-cluster-deployment-tf/terraform.tfvars @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + ########################### # AWS Deployment Settings ############################ @@ -7,7 +10,7 @@ aws-cloud-account-name = "REPLACE_ME" aws-region = "REPLACE_ME" aws-key-pair-name = "REPLACE_ME" -aws_master_nodes = { +aws_control_plane_nodes = { count = "1" control_plane = true instance_type = "m4.2xlarge" @@ -27,7 +30,7 @@ aws_worker_nodes = { # Azure Deployment Settings ############################ deploy-azure = false # Set to true to deploy to Azure -azure-use-azs = true # Set to false when you deploy to a region without AZs +azure-use-azs = true # Set to false when you deploy to a region without AZs azure-cloud-account-name = "REPLACE_ME" azure-region = "REPLACE_ME" @@ -35,7 +38,7 @@ azure_subscription_id = "REPLACE_ME" azure_resource_group = "REPLACE_ME" -azure_master_nodes = { +azure_control_plane_nodes = { count = "1" control_plane = true instance_type = "Standard_A8_v2" @@ -61,7 +64,8 @@ deploy-gcp = false # Set to true to deploy to GCP gcp-cloud-account-name = "REPLACE_ME" gcp-region = "REPLACE_ME" gcp_project_name = "REPLACE_ME" -gcp_master_nodes = { + +gcp_control_plane_nodes = { count = "1" control_plane = true instance_type = "n1-standard-4" diff --git a/terraform/iaas-cluster-update-tf/README.md b/terraform/iaas-cluster-update-tf/README.md index 91bbbdc..c4acb9f 100644 --- a/terraform/iaas-cluster-update-tf/README.md +++ b/terraform/iaas-cluster-update-tf/README.md @@ -1,36 +1,35 @@ # IaaS Cluster Update - 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`| +| 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`. - ## Requirements -| Name | Version | -|------|---------| -| [spectrocloud](#requirement\_spectrocloud) | >= 0.13.1 | -| [tls](#requirement\_tls) | 4.0.4 | -| [local](#requirement\_local) | >=2.4.0 | +| Name | Version | +| --------------------------------------------------------------------------------- | --------- | +| [terraform](#requirement_terraform) | >= 1.5 | +| [local](#requirement_local) | >= 2.4.0 | +| [spectrocloud](#requirement_spectrocloud) | >= 0.17.2 | +| [tls](#requirement_tls) | 4.0.4 | ## Providers -| Name | Version | -|------|---------| -| [spectrocloud](#provider\_spectrocloud) | 0.16.1 | -| [tls](#provider\_tls) | 4.0.4 | -| [tls](#provider\_local) | 2.4.0 | +| Name | Version | +| --------------------------------------------------------------------------- | ---------- | +| [local](#provider_local) | 2.4.1 | +| [spectrocloud](#provider_spectrocloud) | 0.17.1-pre | +| [tls](#provider_tls) | 4.0.4 | ## Modules @@ -38,80 +37,78 @@ No modules. ## Resources -| Name | Type | -|------|------| -| [local_file.aws-kubeconfig](https://registry.terraform.io/providers/hashicorp/local/latest/docs/resources/file) | data source | -| [local_file.azure-kubeconfig](https://registry.terraform.io/providers/hashicorp/local/latest/docs/resources/file) | data source | -| [local_file.gcp-kubeconfig](https://registry.terraform.io/providers/hashicorp/local/latest/docs/resources/file) | data source | -| [spectrocloud_cluster.aws_cluster_api](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/cluster) | data source | -| [spectrocloud_cluster.azure_cluster_api](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/cluster) | data source | -| [spectrocloud_cluster.gcp_cluster_api](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/cluster) | data source | -| [spectrocloud_cluster_aws.aws-cluster](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/cluster_aws) | resource | -| [spectrocloud_cluster_aws.aws-cluster-api](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/cluster_aws) | resource | -| [spectrocloud_cluster_azure.azure-cluster](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/cluster_azure) | resource | -| [spectrocloud_cluster_azure.azure-cluster-api](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/cluster_azure) | resource | -| [spectrocloud_cluster_gcp.gcp-cluster](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/cluster_gcp) | resource | -| [spectrocloud_cluster_gcp.gcp-cluster-api](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/cluster_gcp) | resource | -| [spectrocloud_cluster_profile.aws-profile](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/cluster_profile) | resource | -| [spectrocloud_cluster_profile.aws-profile-3tier](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/cluster_profile) | resource | -| [spectrocloud_cluster_profile.aws-profile-api](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/cluster_profile) | resource | -| [spectrocloud_cluster_profile.azure-profile](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/cluster_profile) | resource | -| [spectrocloud_cluster_profile.azure-profile-3tier](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/cluster_profile) | resource | -| [spectrocloud_cluster_profile.azure-profile-api](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/cluster_profile) | resource | -| [spectrocloud_cluster_profile.gcp-profile](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/cluster_profile) | resource | -| [spectrocloud_cluster_profile.gcp-profile-3tier](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/cluster_profile) | resource | -| [spectrocloud_cluster_profile.gcp-profile-api](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/cluster_profile) | resource | -| [tls_private_key.tutorial_ssh_key](https://registry.terraform.io/providers/hashicorp/tls/4.0.4/docs/resources/private_key) | resource | -| [spectrocloud_cloudaccount_aws.account](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/cloudaccount_aws) | data source | -| [spectrocloud_cloudaccount_azure.account](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/cloudaccount_azure) | data source | -| [spectrocloud_cloudaccount_gcp.account](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/cloudaccount_gcp) | data source | -| [spectrocloud_pack.aws_cni](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | -| [spectrocloud_pack.aws_csi](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | -| [spectrocloud_pack.aws_k8s](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | -| [spectrocloud_pack.aws_ubuntu](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | -| [spectrocloud_pack.azure_cni](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | -| [spectrocloud_pack.azure_csi](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | -| [spectrocloud_pack.azure_k8s](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | -| [spectrocloud_pack.azure_ubuntu](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | -| [spectrocloud_pack.gcp_cni](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | -| [spectrocloud_pack.gcp_csi](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | -| [spectrocloud_pack.gcp_k8s](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | -| [spectrocloud_pack.gcp_ubuntu](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | +| Name | Type | +| --------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | +| [local_file.aws-kubeconfig](https://registry.terraform.io/providers/hashicorp/local/latest/docs/resources/file) | resource | +| [local_file.azure-kubeconfig](https://registry.terraform.io/providers/hashicorp/local/latest/docs/resources/file) | resource | +| [local_file.gcp-kubeconfig](https://registry.terraform.io/providers/hashicorp/local/latest/docs/resources/file) | resource | +| [spectrocloud_cluster_aws.aws-cluster](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/cluster_aws) | resource | +| [spectrocloud_cluster_aws.aws-cluster-api](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/cluster_aws) | resource | +| [spectrocloud_cluster_azure.azure-cluster](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/cluster_azure) | resource | +| [spectrocloud_cluster_azure.azure-cluster-api](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/cluster_azure) | resource | +| [spectrocloud_cluster_gcp.gcp-cluster](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/cluster_gcp) | resource | +| [spectrocloud_cluster_gcp.gcp-cluster-api](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/cluster_gcp) | resource | +| [spectrocloud_cluster_profile.aws-profile](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/cluster_profile) | resource | +| [spectrocloud_cluster_profile.aws-profile-api](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/cluster_profile) | resource | +| [spectrocloud_cluster_profile.azure-profile](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/cluster_profile) | resource | +| [spectrocloud_cluster_profile.azure-profile-api](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/cluster_profile) | resource | +| [spectrocloud_cluster_profile.gcp-profile](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/cluster_profile) | resource | +| [spectrocloud_cluster_profile.gcp-profile-api](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/cluster_profile) | resource | +| [tls_private_key.tutorial_ssh_key](https://registry.terraform.io/providers/hashicorp/tls/4.0.4/docs/resources/private_key) | resource | +| [spectrocloud_cloudaccount_aws.account](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/cloudaccount_aws) | data source | +| [spectrocloud_cloudaccount_azure.account](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/cloudaccount_azure) | data source | +| [spectrocloud_cloudaccount_gcp.account](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/cloudaccount_gcp) | data source | +| [spectrocloud_cluster.aws_cluster_api](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/cluster) | data source | +| [spectrocloud_cluster.azure_cluster_api](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/cluster) | data source | +| [spectrocloud_cluster.gcp_cluster_api](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/cluster) | data source | +| [spectrocloud_pack.aws_cni](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | +| [spectrocloud_pack.aws_csi](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | +| [spectrocloud_pack.aws_k8s](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | +| [spectrocloud_pack.aws_ubuntu](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | +| [spectrocloud_pack.azure_cni](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | +| [spectrocloud_pack.azure_csi](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | +| [spectrocloud_pack.azure_k8s](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | +| [spectrocloud_pack.azure_ubuntu](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | +| [spectrocloud_pack.gcp_cni](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | +| [spectrocloud_pack.gcp_csi](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | +| [spectrocloud_pack.gcp_k8s](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | +| [spectrocloud_pack.gcp_ubuntu](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | +| [spectrocloud_registry.public_registry](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/registry) | data source | ## Inputs -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:--------:| -| [aws-cloud-account-name](#input\_aws-cloud-account-name) | The name of your AWS account as assigned in Palette | `string` | `""` | no | -| [aws-key-pair-name](#input\_aws-key-pair-name) | The name of the AWS key pair to use for SSH access to the cluster. Refer to [EC2 Key Pairs](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) to learn more. | `string` | `""` | no | -| [aws-hello-universe-api-uri](#input\_aws-hello-universe-api-uri) | The URI of the `hello-universe-api` service deployed to AWS. | `string` | `"http://REPLACE_ME:3000"` | no | -| [aws-region](#input\_aws-region) | AWS region | `string` | `"us-east-1"` | yes | -| [aws\_master\_nodes](#input\_aws\_master\_nodes) | AWS master nodes configuration. |
"spectro-cloud-education",
"app:hello-universe",
"repository:spectrocloud:tutorials",
"terraform_managed:true",
"tutorial:iaas-cluster-deployment-tf"
]
object({|
count = string
control_plane = bool
instance_type = string
disk_size_gb = string
availability_zones = list(string)
})
{| no | -| [aws\_worker\_nodes](#input\_aws\_worker\_nodes) | AWS worker nodes configuration. |
"availability_zones": [
"us-east-1a"
],
"control_plane": true,
"count": "1",
"disk_size_gb": "60",
"instance_type": "m4.2xlarge"
}
object({|
count = string
control_plane = bool
instance_type = string
disk_size_gb = string
availability_zones = list(string)
})
{| no | -| [azure-cloud-account-name](#input\_azure-cloud-account-name) | The name of your Azure account as assigned in Palette | `string` | `""` | no | -| [azure-hello-universe-api-uri](#input\_azure-hello-universe-api-uri) | The URI of the `hello-universe-api service deployed to Azure. | `string` | `"http://REPLACE_ME:3000"` | no | -| [azure-region](#input\_azure-region) | Azure region | `string` | `"eastus"` | no | -| [azure-use-azs](#input\_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](https://learn.microsoft.com/en-us/azure/reliability/availability-zones-service-support#azure-regions-with-availability-zone-support) resource. | `bool` | `true` | no | -| [azure\_master\_nodes](#input\_azure\_master\_nodes) | Azure master nodes configuration. |
"availability_zones": [
"us-east-1a"
],
"control_plane": false,
"count": "1",
"disk_size_gb": "60",
"instance_type": "m4.2xlarge"
}
object({|
count = string
control_plane = bool
instance_type = string
disk_size_gb = string
azs = list(string)
is_system_node_pool = bool
})
{| no | -| [azure\_resource\_group](#input\_azure\_resource\_group) | Azure resource group | `string` | `""` | no | -| [azure\_subscription\_id](#input\_azure\_subscription\_id) | Azure subscription ID | `string` | `""` | no | -| [azure\_worker\_nodes](#input\_azure\_worker\_nodes) | Azure worker nodes configuration. |
"azs": [
"1"
],
"control_plane": true,
"count": "1",
"disk_size_gb": "60",
"instance_type": "Standard_A8_v2",
"is_system_node_pool": false
}
object({|
count = string
control_plane = bool
instance_type = string
disk_size_gb = string
azs = list(string)
is_system_node_pool = bool
})
{| no | -| [deploy-aws](#input\_deploy-aws) | A flag for enabling a deployment on AWS | `bool` | n/a | yes | -| [deploy-azure](#input\_deploy-azure) | A flag for enabling a deployment on Azure | `bool` | n/a | yes | -| [deploy-gcp](#input\_deploy-gcp) | A flag for enabling a deployment on GCP | `bool` | n/a | yes | -| [gcp-cloud-account-name](#input\_gcp-cloud-account-name) | The name of your GCP account as assigned in Palette | `string` | `""` | no | -| [gcp-hello-universe-api-uri](#input\_gcp-hello-universe-api-uri) | The URI of the `hello-universe-api` service deployed to GCP. | `string` | `"http://REPLACE_ME:3000"` | no | -| [gcp-region](#input\_gcp-region) | GCP region | `string` | `"us-central1"` | no | -| [gcp\_master\_nodes](#input\_gcp\_master\_nodes) | GCP master nodes configuration. |
"azs": [],
"control_plane": false,
"count": "1",
"disk_size_gb": "60",
"instance_type": "Standard_A8_v2",
"is_system_node_pool": false
}
object({|
count = string
control_plane = bool
instance_type = string
disk_size_gb = string
availability_zones = list(string)
})
{| no | -| [gcp\_project\_name](#input\_gcp\_project\_name) | The name of your GCP project | `string` | `""` | no | -| [gcp\_worker\_nodes](#input\_gcp\_worker\_nodes) | GCP worker nodes configuration. |
"availability_zones": [
"us-central1-a"
],
"control_plane": true,
"count": "1",
"disk_size_gb": "60",
"instance_type": "n1-standard-4"
}
object({|
count = string
control_plane = bool
instance_type = string
disk_size_gb = string
availability_zones = list(string)
})
{| no | -| [tags](#input\_tags) | The default tags to apply to Palette resources | `list(string)` |
"availability_zones": [
"us-central1-a"
],
"control_plane": false,
"count": "1",
"disk_size_gb": "60",
"instance_type": "n1-standard-4"
}
[| no | +| Name | Description | Type | Default | Required | +| --------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------: | +| [aws-cloud-account-name](#input_aws-cloud-account-name) | The name of your AWS account as assigned in Palette | `string` | `""` | no | +| [aws-hello-universe-api-uri](#input_aws-hello-universe-api-uri) | The URI of the hello-universe-api service deployed to AWS. | `string` | `"http://REPLACE_ME:3000"` | no | +| [aws-key-pair-name](#input_aws-key-pair-name) | The name of the AWS key pair to use for SSH access to the cluster. Refer to [EC2 Key Pairs](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) to learn more. | `string` | `""` | no | +| [aws-region](#input_aws-region) | AWS region | `string` | `"us-east-1"` | no | +| [aws_control_plane_nodes](#input_aws_control_plane_nodes) | AWS control nodes configuration. |
"spectro-cloud-education",
"app:hello-universe",
"repository:spectrocloud:tutorials",
"terraform_managed:true",
"tutorial:iaas-cluster-deployment-tf"
]
object({|
count = string
control_plane = bool
instance_type = string
disk_size_gb = string
availability_zones = list(string)
})
{| no | +| [aws_worker_nodes](#input_aws_worker_nodes) | AWS worker nodes configuration. |
"availability_zones": [
"us-east-1a"
],
"control_plane": true,
"count": "1",
"disk_size_gb": "60",
"instance_type": "m4.2xlarge"
}
object({|
count = string
control_plane = bool
instance_type = string
disk_size_gb = string
availability_zones = list(string)
})
{| no | +| [azure-cloud-account-name](#input_azure-cloud-account-name) | The name of your Azure account as assigned in Palette | `string` | `""` | no | +| [azure-hello-universe-api-uri](#input_azure-hello-universe-api-uri) | The URI of the hello-universe-api service deployed to Azure. | `string` | `"http://REPLACE_ME:3000"` | no | +| [azure-region](#input_azure-region) | Azure region | `string` | `"eastus"` | no | +| [azure-use-azs](#input_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](https://learn.microsoft.com/en-us/azure/reliability/availability-zones-service-support#azure-regions-with-availability-zone-support) resource | `bool` | n/a | yes | +| [azure_control_plane_nodes](#input_azure_control_plane_nodes) | Azure control plane nodes configuration. |
"availability_zones": [
"us-east-1a"
],
"control_plane": false,
"count": "1",
"disk_size_gb": "60",
"instance_type": "m4.2xlarge"
}
object({|
count = string
control_plane = bool
instance_type = string
disk_size_gb = string
azs = list(string)
is_system_node_pool = bool
})
{| no | +| [azure_resource_group](#input_azure_resource_group) | Azure resource group | `string` | `""` | no | +| [azure_subscription_id](#input_azure_subscription_id) | Azure subscription ID | `string` | `""` | no | +| [azure_worker_nodes](#input_azure_worker_nodes) | Azure worker nodes configuration. |
"azs": [
"1"
],
"control_plane": true,
"count": "1",
"disk_size_gb": "60",
"instance_type": "Standard_A8_v2",
"is_system_node_pool": false
}
object({|
count = string
control_plane = bool
instance_type = string
disk_size_gb = string
azs = list(string)
is_system_node_pool = bool
})
{| no | +| [deploy-aws](#input_deploy-aws) | A flag for enabling a deployment on AWS | `bool` | n/a | yes | +| [deploy-azure](#input_deploy-azure) | A flag for enabling a deployment on Azure | `bool` | n/a | yes | +| [deploy-gcp](#input_deploy-gcp) | A flag for enabling a deployment on GCP | `bool` | n/a | yes | +| [gcp-cloud-account-name](#input_gcp-cloud-account-name) | The name of your GCP account as assigned in Palette | `string` | `""` | no | +| [gcp-hello-universe-api-uri](#input_gcp-hello-universe-api-uri) | The URI of the hello-universe-api service deployed to GCP. | `string` | `"http://REPLACE_ME:3000"` | no | +| [gcp-region](#input_gcp-region) | GCP region | `string` | `"us-central1"` | no | +| [gcp_control_plane_nodes](#input_gcp_control_plane_nodes) | GCP control plane nodes configuration. |
"azs": [
"1"
],
"control_plane": false,
"count": "1",
"disk_size_gb": "60",
"instance_type": "Standard_A8_v2",
"is_system_node_pool": false
}
object({|
count = string
control_plane = bool
instance_type = string
disk_size_gb = string
availability_zones = list(string)
})
{| no | +| [gcp_project_name](#input_gcp_project_name) | The name of your GCP project | `string` | `""` | no | +| [gcp_worker_nodes](#input_gcp_worker_nodes) | GCP worker nodes configuration. |
"availability_zones": [
"us-central1-a"
],
"control_plane": true,
"count": "1",
"disk_size_gb": "60",
"instance_type": "n1-standard-4"
}
object({|
count = string
control_plane = bool
instance_type = string
disk_size_gb = string
availability_zones = list(string)
})
{| no | +| [tags](#input_tags) | The default tags to apply to Palette resources | `list(string)` |
"availability_zones": [
"us-central1-a"
],
"control_plane": false,
"count": "1",
"disk_size_gb": "60",
"instance_type": "n1-standard-4"
}
[| no | ## Outputs -| Name | Description | -|------|-------------| -| [Advisory](#output\_Advisory) | n/a | -| [aws_hello_universe_api_ip](#output\aws_hello_universe_api_ip) | Instructions to retrieve the IP address of the hello-universe-api service deployed to AWS. | -| [azure_hello_universe_api_ip](#output\azure_hello_universe_api_ip) | Instructions to retrieve the IP address of the hello-universe-api service deployed to Azure. | -| [gcp_hello_universe_api_ip](#output\gcp_hello_universe_api_ip) | Instructions to retrieve the IP address of the hello-universe-api service deployed to GCP. | +| Name | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| [Advisory](#output_Advisory) | n/a | +| [aws_hello_universe_api_ip](#output_aws_hello_universe_api_ip) | Instructions to retrieve the IP address of the hello-universe-api service deployed to AWS. | +| [azure_hello_universe_api_ip](#output_azure_hello_universe_api_ip) | Instructions to retrieve the IP address of the hello-universe-api service deployed to Azure. | +| [gcp_hello_universe_api_ip](#output_gcp_hello_universe_api_ip) | Instructions to retrieve the IP address of the hello-universe-api service deployed to GCP. | diff --git a/terraform/iaas-cluster-update-tf/cluster_profiles.tf b/terraform/iaas-cluster-update-tf/cluster_profiles.tf index 8a647cf..5931c94 100644 --- a/terraform/iaas-cluster-update-tf/cluster_profiles.tf +++ b/terraform/iaas-cluster-update-tf/cluster_profiles.tf @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + ######################### # AWS Cluster Profile ######################### diff --git a/terraform/iaas-cluster-update-tf/clusters.tf b/terraform/iaas-cluster-update-tf/clusters.tf index cb31872..961190b 100644 --- a/terraform/iaas-cluster-update-tf/clusters.tf +++ b/terraform/iaas-cluster-update-tf/clusters.tf @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + ######################### # AWS Cluster Profile ######################## @@ -21,11 +24,11 @@ resource "spectrocloud_cluster_aws" "aws-cluster" { machine_pool { control_plane = true control_plane_as_worker = true - name = "master-pool" - count = var.aws_master_nodes.count - instance_type = var.aws_master_nodes.instance_type - disk_size_gb = var.aws_master_nodes.disk_size_gb - azs = var.aws_master_nodes.availability_zones + name = "control-pane-pool" + count = var.aws_control_plane_nodes.count + instance_type = var.aws_control_plane_nodes.instance_type + disk_size_gb = var.aws_control_plane_nodes.disk_size_gb + azs = var.aws_control_plane_nodes.availability_zones } machine_pool { @@ -61,11 +64,11 @@ resource "spectrocloud_cluster_aws" "aws-cluster-api" { machine_pool { control_plane = true control_plane_as_worker = true - name = "master-pool" - count = var.aws_master_nodes.count - instance_type = var.aws_master_nodes.instance_type - disk_size_gb = var.aws_master_nodes.disk_size_gb - azs = var.aws_master_nodes.availability_zones + name = "control-pane-pool" + count = var.aws_control_plane_nodes.count + instance_type = var.aws_control_plane_nodes.instance_type + disk_size_gb = var.aws_control_plane_nodes.disk_size_gb + azs = var.aws_control_plane_nodes.availability_zones } machine_pool { @@ -116,13 +119,13 @@ resource "spectrocloud_cluster_azure" "azure-cluster" { machine_pool { control_plane = true control_plane_as_worker = true - name = "master-pool" - count = var.azure_master_nodes.count - instance_type = var.azure_master_nodes.instance_type - azs = var.azure-use-azs ? var.azure_master_nodes.azs : [""] - is_system_node_pool = var.azure_master_nodes.is_system_node_pool + name = "control-pane-pool" + count = var.azure_control_plane_nodes.count + instance_type = var.azure_control_plane_nodes.instance_type + azs = var.azure-use-azs ? var.azure_control_plane_nodes.azs : [""] + is_system_node_pool = var.azure_control_plane_nodes.is_system_node_pool disk { - size_gb = var.azure_master_nodes.disk_size_gb + size_gb = var.azure_control_plane_nodes.disk_size_gb type = "Standard_LRS" } } @@ -162,13 +165,13 @@ resource "spectrocloud_cluster_azure" "azure-cluster-api" { machine_pool { control_plane = true control_plane_as_worker = true - name = "master-pool" - count = var.azure_master_nodes.count - instance_type = var.azure_master_nodes.instance_type - azs = var.azure-use-azs ? var.azure_master_nodes.azs : [""] - is_system_node_pool = var.azure_master_nodes.is_system_node_pool + name = "control-pane-pool" + count = var.azure_control_plane_nodes.count + instance_type = var.azure_control_plane_nodes.instance_type + azs = var.azure-use-azs ? var.azure_control_plane_nodes.azs : [""] + is_system_node_pool = var.azure_control_plane_nodes.is_system_node_pool disk { - size_gb = var.azure_master_nodes.disk_size_gb + size_gb = var.azure_control_plane_nodes.disk_size_gb type = "Standard_LRS" } } @@ -219,11 +222,11 @@ resource "spectrocloud_cluster_gcp" "gcp-cluster" { machine_pool { control_plane = true control_plane_as_worker = true - name = "master-pool" - count = var.gcp_master_nodes.count - instance_type = var.gcp_master_nodes.instance_type - disk_size_gb = var.gcp_master_nodes.disk_size_gb - azs = var.gcp_master_nodes.availability_zones + name = "control-pane-pool" + count = var.gcp_control_plane_nodes.count + instance_type = var.gcp_control_plane_nodes.instance_type + disk_size_gb = var.gcp_control_plane_nodes.disk_size_gb + azs = var.gcp_control_plane_nodes.availability_zones } machine_pool { @@ -259,11 +262,11 @@ resource "spectrocloud_cluster_gcp" "gcp-cluster-api" { machine_pool { control_plane = true control_plane_as_worker = true - name = "master-pool" - count = var.gcp_master_nodes.count - instance_type = var.gcp_master_nodes.instance_type - disk_size_gb = var.gcp_master_nodes.disk_size_gb - azs = var.gcp_master_nodes.availability_zones + name = "control-plane-pool" + count = var.gcp_control_plane_nodes.count + instance_type = var.gcp_control_plane_nodes.instance_type + disk_size_gb = var.gcp_control_plane_nodes.disk_size_gb + azs = var.gcp_control_plane_nodes.availability_zones } machine_pool { diff --git a/terraform/iaas-cluster-update-tf/data.tf b/terraform/iaas-cluster-update-tf/data.tf index 7a03ecd..8cb5683 100644 --- a/terraform/iaas-cluster-update-tf/data.tf +++ b/terraform/iaas-cluster-update-tf/data.tf @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + #################################### # Data resources for the profile #################################### @@ -80,7 +83,7 @@ data "spectrocloud_pack" "azure_ubuntu" { data "spectrocloud_cluster" "azure_cluster_api" { count = var.deploy-azure ? 1 : 0 - + name = "azure-cluster-api" context = "project" diff --git a/terraform/iaas-cluster-update-tf/inputs.tf b/terraform/iaas-cluster-update-tf/inputs.tf index d56bb91..d65156f 100644 --- a/terraform/iaas-cluster-update-tf/inputs.tf +++ b/terraform/iaas-cluster-update-tf/inputs.tf @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + variable "aws-cloud-account-name" { type = string description = "The name of your AWS account as assigned in Palette" @@ -56,7 +59,7 @@ variable "azure-use-azs" { variable "aws-region" { type = string description = "AWS region" - default = "us-east-1" + default = "us-east-1" } variable "gcp-region" { @@ -95,7 +98,7 @@ variable "aws-key-pair-name" { default = "" } -variable "aws_master_nodes" { +variable "aws_control_plane_nodes" { type = object({ count = string control_plane = bool @@ -110,7 +113,7 @@ variable "aws_master_nodes" { disk_size_gb = "60" availability_zones = ["us-east-1a"] } - description = "AWS master nodes configuration." + description = "AWS control nodes configuration." } variable "aws_worker_nodes" { type = object({ @@ -130,7 +133,7 @@ variable "aws_worker_nodes" { description = "AWS worker nodes configuration." } -variable "azure_master_nodes" { +variable "azure_control_plane_nodes" { type = object({ count = string control_plane = bool @@ -146,7 +149,7 @@ variable "azure_master_nodes" { disk_size_gb = "60" azs = ["1"] is_system_node_pool = false } - description = "Azure master nodes configuration." + description = "Azure control plane nodes configuration." } variable "azure_worker_nodes" { @@ -168,7 +171,7 @@ variable "azure_worker_nodes" { description = "Azure worker nodes configuration." } -variable "gcp_master_nodes" { +variable "gcp_control_plane_nodes" { type = object({ count = string control_plane = bool @@ -182,7 +185,7 @@ variable "gcp_master_nodes" { instance_type = "n1-standard-4" disk_size_gb = "60" availability_zones = ["us-central1-a"] } - description = "GCP master nodes configuration." + description = "GCP control plane nodes configuration." } variable "gcp_worker_nodes" { diff --git a/terraform/iaas-cluster-update-tf/manifests/hello-universe-3tier.yaml b/terraform/iaas-cluster-update-tf/manifests/hello-universe-3tier.yaml index 47c9bfe..1693617 100644 --- a/terraform/iaas-cluster-update-tf/manifests/hello-universe-3tier.yaml +++ b/terraform/iaas-cluster-update-tf/manifests/hello-universe-3tier.yaml @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + apiVersion: v1 kind: Namespace metadata: diff --git a/terraform/iaas-cluster-update-tf/manifests/hello-universe-api.yaml b/terraform/iaas-cluster-update-tf/manifests/hello-universe-api.yaml index 2ccb3f8..6f20fcf 100644 --- a/terraform/iaas-cluster-update-tf/manifests/hello-universe-api.yaml +++ b/terraform/iaas-cluster-update-tf/manifests/hello-universe-api.yaml @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + apiVersion: v1 kind: Namespace metadata: diff --git a/terraform/iaas-cluster-update-tf/manifests/hello-universe.yaml b/terraform/iaas-cluster-update-tf/manifests/hello-universe.yaml index d601ec7..f2112bc 100644 --- a/terraform/iaas-cluster-update-tf/manifests/hello-universe.yaml +++ b/terraform/iaas-cluster-update-tf/manifests/hello-universe.yaml @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + apiVersion: v1 kind: Namespace metadata: diff --git a/terraform/iaas-cluster-update-tf/outputs.tf b/terraform/iaas-cluster-update-tf/outputs.tf index cd99003..ccb705d 100644 --- a/terraform/iaas-cluster-update-tf/outputs.tf +++ b/terraform/iaas-cluster-update-tf/outputs.tf @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + output "Advisory" { value = <<-EOT diff --git a/terraform/iaas-cluster-update-tf/provider.tf b/terraform/iaas-cluster-update-tf/provider.tf index ed6e533..cf99556 100644 --- a/terraform/iaas-cluster-update-tf/provider.tf +++ b/terraform/iaas-cluster-update-tf/provider.tf @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + terraform { required_providers { spectrocloud = { diff --git a/terraform/iaas-cluster-update-tf/ssh-key.tf b/terraform/iaas-cluster-update-tf/ssh-key.tf index 897cf60..10407d5 100644 --- a/terraform/iaas-cluster-update-tf/ssh-key.tf +++ b/terraform/iaas-cluster-update-tf/ssh-key.tf @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + resource "tls_private_key" "tutorial_ssh_key" { count = var.deploy-azure ? 1 : 0 algorithm = "RSA" diff --git a/terraform/iaas-cluster-update-tf/terraform.tfvars b/terraform/iaas-cluster-update-tf/terraform.tfvars index e0ed62c..e2a93e2 100644 --- a/terraform/iaas-cluster-update-tf/terraform.tfvars +++ b/terraform/iaas-cluster-update-tf/terraform.tfvars @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + ########################### # AWS Deployment Settings ############################ @@ -9,7 +12,7 @@ aws-key-pair-name = "REPLACE_ME" aws-hello-universe-api-uri = "http://REPLACE_ME:3000" # Set IP address of hello-universe API once deployed -aws_master_nodes = { +aws_control_plane_nodes = { count = "1" control_plane = true instance_type = "m4.2xlarge" @@ -38,7 +41,7 @@ azure_resource_group = "REPLACE_ME" azure-hello-universe-api-uri = "http://REPLACE_ME:3000" # Set IP address of hello-universe API once deployed -azure_master_nodes = { +azure_control_plane_nodes = { count = "1" control_plane = true instance_type = "Standard_A8_v2" @@ -67,7 +70,7 @@ gcp_project_name = "REPLACE_ME" gcp-hello-universe-api-uri = "http://REPLACE_ME:3000" # Set IP address of hello-universe API once deployed -gcp_master_nodes = { +gcp_control_plane_nodes = { count = "1" control_plane = true instance_type = "n1-standard-4" diff --git a/terraform/pack-tf/cluster.tf b/terraform/pack-tf/cluster.tf index 776cc71..ddf78bd 100644 --- a/terraform/pack-tf/cluster.tf +++ b/terraform/pack-tf/cluster.tf @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + resource "spectrocloud_cluster_aws" "cluster" { name = var.cluster_name tags = var.tags @@ -20,17 +23,17 @@ resource "spectrocloud_cluster_aws" "cluster" { } ############################## - # master-pool + # control-plane-pool ############################## machine_pool { additional_labels = { "owner" = "docs" "purpose" = "tutorial" - "type" = "master" + "type" = "control-plane-node" } control_plane = true control_plane_as_worker = true - name = "master-pool" + name = "control-plane-pool" count = 1 instance_type = var.instance_type disk_size_gb = 60 @@ -44,7 +47,7 @@ resource "spectrocloud_cluster_aws" "cluster" { additional_labels = { "owner" = "docs" "purpose" = "tutorial" - "type" = "worker" + "type" = "worker-node" } name = "worker-basic" count = 1 @@ -52,4 +55,4 @@ resource "spectrocloud_cluster_aws" "cluster" { azs = local.azs } -} \ No newline at end of file +} diff --git a/terraform/pack-tf/data.tf b/terraform/pack-tf/data.tf index 32a6bc4..e533040 100644 --- a/terraform/pack-tf/data.tf +++ b/terraform/pack-tf/data.tf @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + #################################### # Data resources for the profile #################################### diff --git a/terraform/pack-tf/inputs.tf b/terraform/pack-tf/inputs.tf index b3d415c..3891b65 100644 --- a/terraform/pack-tf/inputs.tf +++ b/terraform/pack-tf/inputs.tf @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + variable "cluster_profile_name" { type = string description = "The name of the cluster profile." diff --git a/terraform/pack-tf/outputs.tf b/terraform/pack-tf/outputs.tf index 919a1b3..7145616 100644 --- a/terraform/pack-tf/outputs.tf +++ b/terraform/pack-tf/outputs.tf @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + output "Advisory" { value = <<-EOT diff --git a/terraform/pack-tf/profile.tf b/terraform/pack-tf/profile.tf index 1fa37ec..c1bd47c 100644 --- a/terraform/pack-tf/profile.tf +++ b/terraform/pack-tf/profile.tf @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + resource "spectrocloud_cluster_profile" "profile" { name = var.cluster_profile_name diff --git a/terraform/pack-tf/provider.tf b/terraform/pack-tf/provider.tf index 709ca09..42db824 100644 --- a/terraform/pack-tf/provider.tf +++ b/terraform/pack-tf/provider.tf @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + terraform { required_providers { spectrocloud = { diff --git a/terraform/pack-tf/terraform.tfvars b/terraform/pack-tf/terraform.tfvars index 71ca6e6..8f0ad60 100644 --- a/terraform/pack-tf/terraform.tfvars +++ b/terraform/pack-tf/terraform.tfvars @@ -1,3 +1,6 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + cluster_cloud_account_aws_name = "REPLACE ME" # Name of the cloud account added to your Palette project settings aws_region_name = "REPLACE ME" # Use "us-east-1" or any other AWS region aws_az_names = [] # Specify the AWS availability zone name in which you want the cluster to be available. By default, only one AZ will be selected. For example: ['us-east-1a', 'us-east-1b', 'us-east-1c'].
"spectro-cloud-education",
"app:hello-universe",
"repository:spectrocloud:tutorials",
"terraform_managed:true",
"tutorial:iaas-cluster-deployment-tf"
]