Cohesity Cloud Scale Technology Deployment Guide Using Terraform for AWS

Last Published:
Product(s): NetBackup & Alta Data Protection (11.0)

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

  1. 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

  2. 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

    See Parameters for base stage.

  3. 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.

  4. 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 and Deployment input .tfvars file path for validation.

  5. Execute the steps mentioned in the following section to reset the database password:

    See Changing database server password in PostgreSQL (AWS).

  6. 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

See Parameters for deployment stage.