Skip to content

ebi-gdp/tofu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GeneticScores.org infrastructure

OpenTofu is an open source infrastructure as code tool (forked from Terraform).

You can use this repository to create Google Cloud Platform infrastructure to run an instance of GeneticScores.org.

Tip

The main branch of the live repository should be a 1:1 representation of what’s actually deployed in production.

Setup

$ brew update
$ brew install tofu
$ tofu init
$ gcloud auth application-default login

Before you get started

Make sure a backend bucket exists in the production project, e.g.:

gs://genetic-scores-tofu-state

Enabling object versioning, soft delete, and encryption is a good idea.

Note

This bucket will contain the state of your infrastructure in lock files, which helps people to collaborate and reduces the risk of losing state

Pick an environment

$ cd environments/test

Plan a deployment

$ tofu plan

Tip

plan will prompt for variables. You can put these variables in a file to save time, e.g.:

$ tofu plan -var-file="testing.tfvars"

If everything looks sensible, create the resources by applying the deployment.

Execute a deployment

$ tofu apply

About

GeneticScores.org infrastructure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages