Skip to content

TritonDataCenter/terraform-triton-redash

Repository files navigation

Triton Presto Terraform Module

A Terraform module to create a Redash server. Redash can then be used to query a Presto cluster and Triton Object Storage data.

Usage

data "triton_image" "ubuntu" {
  name        = "ubuntu-16.04"
  type        = "lx-dataset"
  most_recent = true
}

data "triton_network" "public" {
  name = "Joyent-SDC-Public"
}

data "triton_network" "private" {
  name = "My-Fabric-Network"
}

module "bastion" {
  source = "github.com/joyent/terraform-triton-bastion"

  name    = "redash-basic-with-provisioning"
  image   = "${data.triton_image.ubuntu.id}"
  package = "g4-general-4G"

  networks = [
    "${data.triton_network.public.id}",
    "${data.triton_network.private.id}",
  ]
}

module "redash" {
  source = "github.com/joyent/terraform-triton-redash"

  name    = "redash-basic-with-provisioning"
  image   = "${data.triton_image.ubuntu.id}"
  package = "g4-general-4G"

  networks = [
    "${data.triton_network.public.id}",
    "${data.triton_network.private.id}",
  ]

  provision        = "true"
  private_key_path = "${var.private_key_path}"

  client_access = ["any"]

  bastion_host     = "${element(module.bastion.bastion_ip,0)}"
  bastion_user     = "${module.bastion.bastion_user}"
  bastion_role_tag = "${module.bastion.bastion_role_tag}"
}

Examples

  • basic-with-provisioning - Deploys a Redash server. Redash server will be provisioned by Terraform.
    • Note: This method with Terraform provisioning is only recommended for prototyping and light testing.

Resources created