happy-randomizer-terraform

This repository is an extension of the Happy Randomizer, to deploy the application on Triton with Terraform.

Prerequisites

  1. Sign up for a Triton account.
  2. 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.
  3. 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.
  4. To use the environment variables, you must be in the Triton environment before initializing Terraform.
    $ eval "$(triton env)"

Troubleshooting

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>

Additional resources