Initialize and apply the Terraform for the security_project.
Deploying Terraform for the security project creates the GWLB endpoints in
your selected application VPC. The security Terraform deploys an Auto
Scaling Group (ASG) in a security VPC with an SLR, the SLR receives the
mirrored traffic from application ENIs.
The security_project contains the Terraform plan to deploy an SLR in
traffic mirroring mode in a centralized security
VPC behind AWS Gateway Load Balancer (GWLB) with multiple
endpoints.
cd architecture
cd security_project
terraform init
terraform plan
terraform apply
The output is similar to the below snippet and displays the SLR public IP
address.
Output:
Apply complete! Resources: 6 added, 0 changed, 1 destroyed.
Outputs:
App_inspected_dns_name = []
Gwlb_service = {
"Security_gwlb" = "com.amazonaws.vpce.us-east-1.vpce-svc-xxxxxxxxxxxxxxxx"
}
Run the application Terraform to peer the application VPCs. The application
Terraform enables packet mirroring at the application workload and exports
traffic to SLR.
cd ../application_project
terraform init
terraform plan
terraform apply
The output lists the GWLB endpoints and the traffic mirror sessions.