Skip to content
Terraform module to create Presto cluster
HCL
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
coordinator-container.json.template
main.tf
outputs.tf
overview.png
variables.tf
worker-container.json.template

README.md

terraform-aws-presto GitHub tag (latest by date) GitHub

Terraform module to create Presto cluster. The cluster runs on top of AWS Fargate using docker image published by Lewuathe

Usage

module "presto" {
  source           = "github.com/Lewuathe/terraform-aws-presto"
  cluster_capacity = 2
}

output "alb_dns_name" {
  value = module.presto.alb_dns_name
}

You can connect to the Presto cluster through ALB.

$ ./presto-cli --server http://presto-XXXX.us-east-1.elb.amazonaws.com --catalog tpch --schema tiny

Overview

Overview

Variables

  • region: AWS Region
  • vpc_cidr_block: CIDR Block of the VPC where Presto cluster is running. There are two availability zones in the public/private subnets respectively. You can specify the CIDR block of these subnets by the following variables.
    • public_0_cidr_block
    • public_1_cidr_block
    • private_0_cidr_block
    • private_1_cidr_block
  • presto_version: The tag of the docker image used in the cluster. See Docker Hub for available tags.
  • cluster_capacity: The number of tasks for worker process

Outputs

  • alb_dns_name: The DNS name of the ALB connecting to coordinator.
You can’t perform that action at this time.