A Terraform module to create a Redash server. Redash can then be used to query a Presto cluster and Triton Object Storage data.
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}"
}
- 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.
triton_machine.redash
: The Redash machine.triton_firewall_rule.ssh
: The firewall rule(s) allowing SSH access FROM the bastion machine(s) TO the Redash machine.triton_firewall_rule.client_access
: The firewall rule(s) allowing access FROM client machines or addresses TO Redash web ports.triton_firewall_rule.redash_to_presto_coordinator
: The firewall rule(s) allowing access FROM the Redash machine TO Presto coordinator web ports.