Simple WordPress web server infrastructure for Azure. This Terraform infrastructure hosts the AwakeningSV/wordpress stack.
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
staging_fqdn
production_fqdn
For a new version NUMBER
:
cd app
terraform workspace new vNUMBER
terraform apply
When removing PREVIOUS
in favor of an already deployed NEXT
:
terraform workspace select vPREVIOUS
terraform destroy
terraform workspace select vNEXT
terraform workspace delete vPREVIOUS
MIT, see LICENSE.