This package contains a Terraform module definition for creating a Bastion server in Joyent Triton Cloud.
module/
contains the Terraform module for a Bastion server in Tritonexample/
contains the example Terraform configuration to launch a Bastion server.
-
cd example/
-
cp terraform.tfvars.example terraform.tfvars
-
Update
terraform.tfvars
to match your Triton environment.triton_url
-- Runtriton profile get
and get the value of the field, "url".triton_region
-- Runtriton profile get
and get the value of the field, "name".triton_account_name
-- Runtriton profile get
and get the value of the field, "account".triton_account_uuid
-- Runtriton account get
and get the value of the field, "id".
-
Update module variable in
main.tf
:name
-- The Triton machine name of the Bastion server.networks
-- Arrays of Triton network that the Bastion instances will join.private_key
-- Private key for the public key authentication for connecting the instance.
-
Run
terraform get && terraform init && terraform plan
to see the execution plan. -
Run
terraform apply
to deploy the Consul cluster. -
Run
terraform destroy
if you want to delete the cluster.