Skip to content

AwakeningSV/web-infrastructure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

WordPress Trellis infrastructure for Azure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages