Running in the cloud
Where's the cloud stuff?
It's in ./deployment/cloud and we're using OpenTofu
Overview of AWS account setup, including information on getting credentials
Please see our information here
Editing deployment/values.cloud.yaml
(Optional) To open the file with VSCode, run the following first
Then run the following. Save and close the file when you're done editing for all of your new values to be re-encrypted.
If you run into an issue like gpg: decryption failed: Inappropriate ioctl for device, run the following command and retry
Deploying infrastructure changes
The following commands will allow you to do what you gotta do to update and deploy the infrastructure
Initialize the infrastructure on your machine
From the tofu init docs
This is the first command that should be run for any new or existing OpenTofu configuration per machine. This sets up all the local data necessary to run OpenTofu that is typically not committed to version control.
Preview the changes to your infrastructure
Deploy your infrastructure changes
Destroy all cloud infra (WARNING: ask if you think you gotta do this)
Run the development server
This will start up the development server and populate it with sample data.
Stop the development server
The server will stop daily at 01:00 UTC (6PM PDT/5PM PST), but if you wanna be a good citizen and stop it when you're done, run the following
Access the development server when it's running
This command uses AWS's Session Manager to access the development server without needing to distribute ssh keys. Assuming you have access to the IAM roles needed for everything else related to the cloud here, this command should just work!