Reader small image

You're reading from  Building and Automating Penetration Testing Labs in the Cloud

Product typeBook
Published inOct 2023
PublisherPackt
ISBN-139781837632398
Edition1st Edition
Right arrow
Author (1)
Joshua Arvin Lat
Joshua Arvin Lat
author image
Joshua Arvin Lat

Joshua Arvin Lat is the Chief Technology Officer (CTO) of NuWorks Interactive Labs, Inc. He previously served as the CTO for three Australian-owned companies and as director of software development and engineering for multiple e-commerce start-ups in the past. Years ago, he and his team won first place in a global cybersecurity competition with their published research paper. He is also an AWS Machine Learning Hero and has shared his knowledge at several international conferences, discussing practical strategies on machine learning, engineering, security, and management.
Read more about Joshua Arvin Lat

Right arrow

Defining the project structure

In this chapter, we will introduce the usage of Terraform modules to help define and organize our Infrastructure-as-Code (IaC) project structure. Modules allow us to encapsulate and reuse sets of resources to make our Terraform code more modular, maintainable, and scalable. By leveraging modules, we will be able to simplify the management of complex infrastructure deployments and abstract common configurations into reusable components.

In Chapter 3, Succeeding with Infrastructure as Code Tools and Strategies, we stored all our .tf files in a single directory. It feels a bit messy, right? In case you are wondering how modules change how we organize our code and our files, here’s an example of what the project structure might look like once we utilize Terraform modules:

Figure 4.9 – Sample file and folder structure using Terraform modules

We have in Figure 4.9 a sample file and folder structure (left) along...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Building and Automating Penetration Testing Labs in the Cloud
Published in: Oct 2023Publisher: PacktISBN-13: 9781837632398

Author (1)

author image
Joshua Arvin Lat

Joshua Arvin Lat is the Chief Technology Officer (CTO) of NuWorks Interactive Labs, Inc. He previously served as the CTO for three Australian-owned companies and as director of software development and engineering for multiple e-commerce start-ups in the past. Years ago, he and his team won first place in a global cybersecurity competition with their published research paper. He is also an AWS Machine Learning Hero and has shared his knowledge at several international conferences, discussing practical strategies on machine learning, engineering, security, and management.
Read more about Joshua Arvin Lat