Coding the solution
Congratulations again – you designed an architecture that meets all your company’s requirements. Now, it’s time to build it. During this chapter, we are going to use the AWS N. Virginia region. You can change the Terraform variable to your preferred region.
Building the infrastructure
The solution requirements mandated that the infrastructure be built using Terraform because the IaC language is already being used in the company.
In this book’s GitHub repository, in the chapter5/code
folder, you will find the following files: interact.py
, lambda.tf
, apigw.tf
, badphoto.png
, goodphoto.jpeg
, and a Python subdirectory.
Start by focusing on the two terraform files: apigw.tf
and lambda.tf
. Recall that your architecture had three components. You don’t need to create your own Amazon Rekognition because it is Software as a Service (SaaS) , and because of that, it doesn’t have a Terraform resource representation.
Important...