Our Python SDK got smarter. We developed a Typscript SDK too. We are updating our SDK code blocks. Python SDKhere.Typscript SDKhere.
Description

Terraform Set Up

Terraform Configuration

Note: use the environment variable AWS_PROFILE to manage access to the AWS account!

  1. Create Terraform S3 backend
 
cd terraform/scripts/
./deploy-cf-resources.sh <AWS profile> <AWS region> <Project name> <Environment>
  1. Terraform init

Update terraform.conf with the objects created with script ./scripts/deploy-cf-resources.sh. Configure the bucket and dynamodb_table:

 
bucket="patronusai-onpremtest-prod-terraform-state"
dynamodb_table="patronusai-onpremtest-prod-terraform-state"

Run terraform init:

 
terraform init -reconfigure -backend-config=terraform.conf
  1. Update** terrafrom.tfvars** with the appropriate values:
 
environment     = "dev2"
project         = "onprem"
domain          = "onpremtest.patronus.ai"
cidr            = "10.0.0.0/16"
public_subnets  = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"]
private_subnets = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]

Run the following:

 
terraform plan -out deploy.tfplan -compact-warnings -var-file="terraform.tfvars"
  1. Run terraform apply:
 
terraform apply deploy.tfplan

We handle the number of nodes in static mode with two Node-groups.

On this page