9bb7193fd2 | ||
---|---|---|
dev | ||
keyvault-acmebot | ||
prod | ||
.gitignore | ||
LICENSE | ||
README.md |
README.md
Terraform Infrastructure for WWT Web Services
This repository contains Terraform files that define the infrastructure for a large portion of the AAS WorldWide Telescope web services. In principle, you could use these templates to create your own clone of the WWT web app, although the WWT team does not test the templates for this kind of portability, and various secrets and data holdings are not expressed in these files.
Basic commands:
terraform plan -var-file=prod.tfvars # plan a change
terraform apply -var-file=prod.tfvars # apply a change
terraform import -var-file=prod.tfvars [tfname] [azurename] # tell Terraform about a resource
Directory structure:
prod
expresses much, but not all, of the production WWT environmentdev
expresses a more limited development environmentkeyvault-acmebot
describes our, well, Keyvault/Acmebot system
The eventual goal is to merge dev
and prod
, and have the distinctions
entirely subsumed into the .tfvars
files, but that is unlikely to happen
anytime soon.
To update the Terraform provider version:
- Remove
.terraform.lock.hcl
- Update minimum version in the
main.tf
file - Run
terraform init
- Run
terraform (plan|apply) -var-file=prod.tfvars -refresh-only