https://github.com/lewuathe/terraform-aws-presto
Terraform module to create Presto cluster
https://github.com/lewuathe/terraform-aws-presto
bigdata presto sql terraform
Last synced: 4 months ago
JSON representation
Terraform module to create Presto cluster
- Host: GitHub
- URL: https://github.com/lewuathe/terraform-aws-presto
- Owner: Lewuathe
- License: apache-2.0
- Created: 2020-02-11T07:02:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-11T08:25:18.000Z (over 5 years ago)
- Last Synced: 2025-05-02T12:42:52.480Z (5 months ago)
- Topics: bigdata, presto, sql, terraform
- Language: HCL
- Homepage: https://registry.terraform.io/modules/Lewuathe/presto/aws
- Size: 136 KB
- Stars: 4
- Watchers: 1
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# terraform-aws-presto  
Terraform module to create [Presto cluster](https://prestosql.io/). The cluster runs on top of AWS Fargate using docker image published by [Lewuathe](https://github.com/Lewuathe/docker-presto-cluster/)# Usage
```terraform
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.
```sh
$ ./presto-cli --server http://presto-XXXX.us-east-1.elb.amazonaws.com --catalog tpch --schema tiny
```# 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](https://hub.docker.com/repository/docker/lewuathe/presto-base/tags) 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.