Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 1.18 KB

README.md

File metadata and controls

57 lines (39 loc) · 1.18 KB

web-infrastructure

Simple WordPress web server infrastructure for Azure. This Terraform infrastructure hosts the AwakeningSV/wordpress stack.

Quick start

Blue-green deployments are handled with Terraform workspaces.

For plan or apply, you will need to supply a label variable which will be used in Azure DNS FQDNs.

brew install terraform azure-cli
az login
cd app
terraform init
terraform workspace list
terraform workspace select SOME_VERSION_FROM_THE_LIST
terraform apply -var label=a-clever-name

Outputs

  • staging_fqdn
  • production_fqdn

Creating a new deployment iteration

For a new version NUMBER:

cd app
terraform workspace new vNUMBER
terraform apply

Removing an old iteration

When removing PREVIOUS in favor of an already deployed NEXT:

terraform workspace select vPREVIOUS
terraform destroy
terraform workspace select vNEXT
terraform workspace delete vPREVIOUS

Further reading

License

MIT, see LICENSE.