Cohesity Cloud Scale Technology Deployment Guide Using Terraform for AWS
- Introduction
- Getting started with deployment
- Prerequisities for setting up AWS environment
- Prerequisites for Terraform
- Deploying Cloud Scale Technology using Terraform script
- Accessing the Cloud Scale Technology environment
- Troubleshooting and cleanup environment steps
Installation instructions for deploying the Cloud Scale Technology on AWS
Following steps are required to build the infrastructure for deploying the Cloud Scale Technology environment.
Note:
Terraform stores the state about your managed infrastructure and configuration. This state is used by Terraform to map real world resources to your configuration, keep track of metadata, and improve performance for large infrastructures. This state is stored by default in a local file named terraform.tfstate
in 3 respective directories. Terraform uses state to determine what changes to make to your infrastructure. Hence, the terraform.tfstate
is very crucial and we recommend taking backup of whole terraform source code along with terraform.tfstate
files by creating zip file and uploading it into S3 bucket after completing the deployment successfully.
Before proceeding to execute the deployment scripts, you need to execute the PreFlight checker script twice. To know about the PreFlight checker, refer to the section See About PreFlight checker(checklist) script.
Deploying the Cloud Scale Technology on AWS
- Locate and execute the PreFlight checker script from the repository and execute it before the Base step using the following command:
./cloudscale-preflight-check.sh -p aws -t preInfra
- Execute the Base step instructions:
Log in to AWS account and authenticate your access. Refer to Configure the AWS CLI for more details.
Change the directory using the below command:
cd aws/base
Create new
.tfvars
based on sample .tfvars with the appropriate values and execute the commands below.terraform init
terraform plan -var-file <vars-file>.tfvars
terraform apply -var-file <vars-file>.tfvars
- Execute the Addons step instruction given in the next procedure.
Change the directory from base to addons using the below command:
cd aws/addons
terraform init
terraform plan
terraform apply
Note:
No input .tfvar file is required at this step.
- Before executing this step, modify the values from the
deployment.tfvars
file and then execute the below command.Execute the PreFlight script using the following command:
./cloudscale-preflight-check.sh -p aws -t postInfra
You will have to provide the
Base input .tfvars file
andDeployment input .tfvars file
path for validation. - Execute the steps mentioned in the following section to reset the database password:
- Execute the Deployment step.
Change the directory from addons to deployment using the below command:
cd aws/deployment
Create new
.tfvars
file based on sample .tfvars with the appropriate values.terraform init
terraform plan -var-file <vars-file>.tfvars
terraform apply -var-file <vars-file>.tfvars
Verify the deployment status, using the following command:
kubectl get environment -n netbackup
The status is displayed as follows:
$ kubectl get environment -n netbackup -w NAME READY AGE STATUS assdbii 4/4 18h Success