This repository is an extension of the Happy Randomizer, to deploy the application on Triton with Terraform.
- Sign up for a Triton account.
- Create the Happy Randomizer images. The Packer configuration file is already included in the GitHub repo and if unmodified, it will create an image named
happy_randomizer
version 1.0.0.- Read more instructions on how to create images with Packer, you're in luck.
- You'll need version 1.0 and version 1.1 of the Happy Randomizer. Details are in the repository's README.
- Once the images have been deployed, fork this repository.
- The files refer to the images already deployed to Triton and do not require the local application.
- To use the environment variables, you must be in the Triton environment before initializing Terraform.
$ eval "$(triton env)"
If you receive an error similar to:
* provider.triton: Error Creating SSH Agent Signer: No key in the SSH Agent matches fingerprint: <ssh fingerprint>
Use ssh-add
to fix it:
ssh-add <path to ssh key>
- Triton Terraform provider docs
- Triton CLI and CloudAPI documentation
- Read more tutorials on the Joyent blog