Web application playground

Our test playground will be an ALB and an EC2 machine with an Apache2 web server installed. In this section, we will only create the environment and test it, without any WAF configuration. In the next section, however, we will add the WAF level on the ALB.

To create the following playground, we will use a Terraform module that is available on GitHub:

Start by adding the following code to your main.tf file:

module "webapp-playground" {  source = "github.com/giuseppeborgese/effective_devops_with_aws__second_edition//terraform-modules//webapp-playground"  subnet_public_A = "subnet-a94cabf4" subnet_public_B = "subnet-54840730" ...

Get Effective DevOps with AWS - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.