项目作者: Lewuathe

项目描述 :
Terraform module to create Presto cluster
高级语言: HCL
项目地址: git://github.com/Lewuathe/terraform-aws-presto.git
创建时间: 2020-02-11T07:02:55Z
项目社区:https://github.com/Lewuathe/terraform-aws-presto

开源协议:Apache License 2.0

下载


GitHub" class="reference-link">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

  1. module "presto" {
  2. source = "github.com/Lewuathe/terraform-aws-presto"
  3. cluster_capacity = 2
  4. }
  5. output "alb_dns_name" {
  6. value = module.presto.alb_dns_name
  7. }

You can connect to the Presto cluster through ALB.

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