webservice_vm

Description

This example creates a load balanced https web farm with a fixed number of pay-as-you-go virtual machines running nginx. The front end of the balancer listens to ports 80 and 443, and creates the necessary structures to store and use a certificate (it can be self-signed).

To make the example portable, use a 2048-bit length private key. If you use a larger length private key on AWS you will receive a "certificate not found" error, which is due to an AWS configuration limitation of ELBv2 load balancers against ACM.

Concepts

The following concepts are present in this example:

  • Certificates

  • HTTPS

  • Linux

  • Load Balancing

  • Nginx

  • Secrets

  • Userdata

  • Variables

  • Virtual Machine

Venues

This example is regularly tested against:

awsazure

Release Notes

1.0

  • Initial release.

2.0

  • Added variables for controlling vm, zone counts.

  • Added https support for existing certificates.

3.0

  • Removed the prerequisite for certificates (and on Azure, a managed identity) to be created manually before applying this example.

  • Added support for importing certificates into the venue.

  • Removed azure-specific variables.

Blueprint

Last updated

Was this helpful?