
This bootcamp is not a collection of isolated AWS demonstrations. Instead, we will progressively engineer a production-style AWS cloud architecture, with each class (A-I) introducing and integrating new capabilities into the overall system.
Terraform provides the Infrastructure as Code (IaC) foundation that makes this approach possible. We will use Terraform to define the architecture as code, review proposed infrastructure changes, deploy AWS resources consistently, validate what we have built, and reproduce the environment when needed.
In this first class (A), we begin by understanding the target architecture and how its major AWS services work together. We will then establish the Terraform foundations that will be used throughout the remainder of the bootcamp.
We begin with an Architecture Orientation, following a single user request through the system—from DNS and edge services to the application tier and supporting data services.
Before we begin building infrastructure with Terraform, students need to understand the AWS architecture they will progressively engineer throughout the bootcamp. In this lecture, we will orient ourselves to the target architecture by following a single user request from its entry into AWS through the application and data layers.
Students will trace the request through DNS, edge delivery, web security, and load balancing before it reaches the scalable EC2 application tier. From there, we will examine how the application interacts with specialized AWS services that provide relational data, caching, shared file storage, and object storage.
This architecture will serve as the common reference point throughout the bootcamp. Rather than studying AWS services as isolated components, students will learn how these services work together as part of a larger, highly available cloud architecture.
As the bootcamp progresses, we will use Terraform to progressively design, deploy, secure, scale, and validate the components of this architecture.
AWS Account & Development Environment Readiness
This course does not teach students how to create an AWS account. Students who need to create or configure an account should follow the current guidance provided by AWS before beginning the hands-on exercises.
Before deploying infrastructure with Terraform, students should have a secure and properly configured AWS development environment. This includes an AWS account, appropriate IAM permissions, AWS CLI authentication, Terraform installation, and the development tools required for the labs.
We will verify AWS CLI authentication using:
aws sts get-caller-identity
This command allows students to confirm the AWS account and identity their development environment is currently using before Terraform is allowed to create infrastructure.
We will also review IAM permissions, credential security, AWS regions, Terraform installation, and AWS provider authentication, including why the AWS root user should not be used for routine Terraform deployments.
Finally, we will discuss AWS cost awareness before deployment. Some of the services introduced throughout the bootcamp—including NAT Gateways, RDS, Redis, CloudFront, and WAF—may incur AWS charges. Students should understand the resources Terraform plans to create, monitor their AWS usage, and remove lab infrastructure when it is no longer needed.
By the end of this lecture, students will understand the target AWS architecture and be prepared to begin working with Terraform and AWS safely and responsibly throughout the remainder of the bootcamp.
In this lecture, students will learn how Terraform transforms Infrastructure as Code into actual AWS resources. We will follow the path from Terraform configuration files through the AWS Provider and AWS APIs to understand what happens when Terraform manages cloud infrastructure.
Students will explore how Terraform configuration files define the desired state of the infrastructure and how the Terraform AWS Provider interprets that configuration, handles AWS authentication, and maps Terraform resources to AWS services.
We will then examine how the provider communicates with AWS APIs to create, read, update, and delete resources, resulting in actual cloud infrastructure such as EC2 instances, load balancers, databases, storage, and other AWS services.
By the end of this lecture, students will understand the relationship between:
Terraform Configuration → AWS Provider → AWS APIs → AWS Resources
This foundation demonstrates why Infrastructure as Code enables AWS environments to be consistently deployed, modified, managed, and reproduced through code rather than relying on manual configuration.
In this lecture, students will learn how Terraform modules organize complex AWS infrastructure into reusable and maintainable Infrastructure as Code components.
We will examine the root module as the central orchestration layer of the Terraform project. Students will see how files such as main.tf, variables.tf, outputs.tf, provider.tf, and backend.tf work together to define configuration, manage inputs and outputs, configure providers and state, and assemble the overall AWS architecture.
We will then explore child modules, which encapsulate specific architectural responsibilities. Using the bootcamp project, students will see how infrastructure can be separated into logical areas such as networking, compute, data services, and edge/security, with each module containing its own Terraform configuration, variables, outputs, and version requirements.
By the end of this lecture, students will understand the relationship between:
Root Module → Reusable Child Modules → Deployable AWS Architecture
This modular approach provides the organizational foundation we will use throughout the bootcamp to build increasingly complex AWS environments while keeping the Terraform code structured, reusable, and maintainable.
Terraform needs more than configuration files to manage infrastructure effectively. It must also maintain a record of the AWS resources it has created and manages. In this lecture, students are introduced to Terraform state, the terraform.tfstate file, remote state storage with Amazon S3, and state locking.
Understanding terraform.tfstate
The terraform.tfstate file is Terraform's record of the infrastructure it manages. Terraform configuration files describe the desired state of the environment, while the state file maintains information that maps Terraform resource addresses to the actual resources deployed in AWS.
For example, the Terraform configuration might contain:
resource "aws_instance" "web" {
# configuration
}
After deployment, Terraform state maintains information that associates:
aws_instance.web
│
▼
Actual EC2 resource in AWS
This relationship is essential because Terraform needs to know which real AWS resources correspond to the resources declared in the configuration.
When commands such as terraform plan are executed, Terraform uses the configuration, state information, and information retrieved from the provider/AWS to determine what changes are necessary to move the infrastructure toward the desired configuration.
The state file may contain resource attributes and other infrastructure information and should therefore be treated as sensitive operational data. It should not be casually edited, shared, or committed to a public source-code repository.
Why Is Terraform State Needed?
Without state, Terraform would not have its persistent mapping between the resources declared in the Terraform project and the infrastructure it manages.
Think of the relationship this way:
Terraform Configuration
"What we want"
│
▼
Terraform State
"What Terraform manages"
│
▼
AWS Infrastructure
"What actually exists"
Terraform uses these relationships to determine whether infrastructure needs to be created, changed, replaced, or destroyed.
Remote Backend — Amazon S3
By default, Terraform can maintain state locally. While local state may be suitable for simple experimentation, storing an important environment's state only on one developer's computer creates problems for collaboration, availability, and centralized management.
In this project, Amazon S3 is used as the remote backend for Terraform state.
Instead of keeping the authoritative state only on a developer's workstation:
Developer Computer
│
▼
terraform.tfstate
the workflow becomes:
Terraform CLI
│
│ Read / Write State
▼
Amazon S3 Remote Backend
│
▼
terraform.tfstate
This gives the Terraform environment a central location for state, allowing authorized team members and automation workflows to operate against the same infrastructure state rather than maintaining separate local copies.
The remote backend therefore separates two important things:
Terraform code can be version-controlled and shared through a source-code repository, while Terraform state is maintained separately in the configured backend.
State Locking
Another important concept is state locking. Multiple Terraform operations attempting to modify the same state at the same time can create conflicts.
Conceptually:
Engineer A ──► Terraform State ◄── Engineer B
│
State Lock
│
One write operation
at a time
Locking helps prevent concurrent Terraform operations from making conflicting changes to the same state.
This becomes increasingly important as infrastructure moves from an individual development exercise to a team-managed environment.
How It All Fits Together
Students should leave this lecture understanding this relationship:
Terraform Configuration
Desired Infrastructure
│
▼
Terraform CLI
│
▼
Remote S3 Backend
terraform.tfstate
│
▼
AWS Provider/APIs
│
▼
AWS Infrastructure
The important distinction is:
The .tf configuration files describe what we want the infrastructure to look like. The Terraform state tracks Terraform's relationship to the resources it manages. The AWS environment contains the actual deployed infrastructure.
By the end of this lecture, students will understand why Terraform state exists, what the terraform.tfstate file represents, why state should be centrally managed using a remote backend such as Amazon S3, and why state locking is important for safe infrastructure management.
Terraform uses a structured deployment workflow to move infrastructure from configuration files to running AWS resources. In this final lecture of Class A, students will bring together the concepts introduced throughout the course and execute the core Terraform lifecycle.
We will walk through the deployment workflow using the project’s Terraform configuration:
terraform fmt -recursive
terraform init -reconfigure
terraform validate
terraform plan -out mtt.tfplan
terraform show mtt.tfplan
terraform apply mtt.tfplan
terraform state list
terraform destroy
Students will learn the purpose of each step—from formatting and initializing the project, to validating the configuration, generating a deployment plan, reviewing proposed changes, applying the approved plan, and verifying the resulting Terraform state.
Particular emphasis will be placed on the architectural practice of reviewing the Terraform plan before applying changes. Students will learn to treat the plan as a checkpoint for understanding what Terraform intends to create, modify, or destroy before AWS infrastructure is changed.
Finally, we will use terraform destroy to demonstrate the controlled removal of lab resources and reinforce the importance of cost management and infrastructure lifecycle discipline.
By the end of this lecture, students will be able to execute the fundamental Terraform deployment workflow from initialization through deployment, verification, and cleanup, preparing them to build the more advanced AWS architecture introduced in the remaining bootcamp classes.
In this lecture, students will begin translating AWS architectural requirements into reusable Terraform code by building an AWS Certificate Manager (ACM) module. The focus of this lecture is on understanding the purpose of ACM and walking through the Terraform configuration used to request and validate a certificate. The module will be integrated into the root Terraform configuration in the next lecture.
What is AWS ACM?
AWS Certificate Manager (ACM) is an AWS service used to provision and manage public and private SSL/TLS certificates for supported AWS services. These certificates establish encrypted HTTPS connections and allow users and applications to verify the identity of the service they are communicating with.
Why is ACM needed?
Modern web applications should protect data while it travels between users and application services. Without TLS, HTTP traffic can be transmitted without transport encryption. ACM provides the certificates needed to enable HTTPS/TLS, helping protect data in transit and establish trusted, encrypted connections.
What is ACM used for in our architecture?
In this bootcamp architecture, ACM provides the TLS certificate that will support secure HTTPS delivery through AWS services such as CloudFront and the Application Load Balancer. As the architecture develops, these certificates become part of the secure path between users and the application.
Students will walk through Terraform code that demonstrates how to:
Request an ACM certificate for a domain.
Specify additional domain names using Subject Alternative Names (SANs).
Select DNS validation as the certificate validation method.
Look up an existing public Route 53 hosted zone.
Dynamically create the DNS records ACM requires to prove domain ownership.
Complete the ACM certificate validation process.
Use create_before_destroy to support safer certificate replacement.
Apply consistent project and environment tags to the certificate.
The certificate-validation workflow can be summarized as:
Terraform → Request ACM Certificate → ACM Generates DNS Validation Records → Terraform Creates Records in Route 53 → ACM Verifies Domain Ownership → Validated TLS Certificate
An important concept in this lecture is that requesting a certificate does not automatically prove ownership of a domain. With DNS validation, ACM supplies special DNS records that must be published for the domain. Terraform can automate this process by creating those records in Route 53 and then waiting for ACM validation to complete.
By the end of this lecture, students will understand what AWS Certificate Manager is, why TLS certificates are required for secure web architectures, how DNS certificate validation works, and how Terraform can encapsulate the ACM configuration within a reusable module.
In the next lecture, we will move from building the ACM module to calling and integrating that module from the root Terraform configuration as part of the larger AWS architecture.
In the previous lecture, students built a reusable AWS Certificate Manager (ACM) Terraform module and examined how Terraform requests and validates TLS certificates using ACM and Route 53. In this lecture, we take the next step by calling that child module from the root Terraform configuration and integrating it into the larger AWS architecture.
Students will walk through the Terraform module block used to instantiate the ACM module and learn how the root module passes input values to a child module. We will connect project and environment settings, domain information, certificate configuration, and other required variables to the ACM module.
This lecture reinforces the relationship between the root module and child modules introduced earlier in the course. Rather than placing all infrastructure resources directly in the root configuration, the root module acts as the orchestration layer while specialized child modules encapsulate specific architectural capabilities.
The integration can be viewed as:
Root Terraform Configuration → ACM Module → ACM Certificate + Route 53 DNS Validation
Students will also see how Terraform's module structure allows the same architectural component to be organized, configured, maintained, and reused without duplicating its underlying resource definitions.
By the end of this lecture, students will understand how to call a reusable Terraform child module, pass the required input variables from the root configuration, and integrate the ACM certificate capability into the overall AWS infrastructure design.
This establishes a pattern we will continue using throughout the bootcamp as additional AWS capabilities are implemented as Terraform modules and assembled into the complete architecture.
In this lecture, students will continue translating security requirements into reusable Infrastructure as Code by building an AWS Web Application Firewall (WAF) Terraform module. The focus is on understanding the purpose of AWS WAF and walking through the Terraform resources and rules used to protect the CloudFront layer of our architecture. Integration of this module into the root Terraform configuration will occur in the next lecture.
What is AWS WAF?
AWS WAF is a web application firewall that inspects HTTP and HTTPS requests sent to protected AWS resources. It uses configurable rules and rule groups to determine how incoming web requests should be handled.
Why is AWS WAF needed?
Internet-facing applications can receive malicious, suspicious, or excessive requests in addition to legitimate user traffic. AWS WAF provides an additional application-layer security control that evaluates these requests before they reach downstream application resources.
What is AWS WAF used for in our architecture?
In our bootcamp architecture, the WAF Web ACL is designed to protect the CloudFront distribution. Incoming web requests are evaluated against an ordered collection of security rules before allowed traffic continues toward the application infrastructure.
Students will walk through Terraform code that demonstrates how to configure an AWS WAF Web ACL with:
A CloudFront scope for edge protection.
A default action that allows requests when no blocking rule applies.
The AWS Managed Common Rule Set for common web application threats.
The AWS Managed Known Bad Inputs Rule Set for known suspicious request patterns.
A rate-based rule that tracks requests by source IP address and blocks traffic that exceeds the configured threshold.
Rule priorities that control the order in which WAF evaluates security rules.
CloudWatch metrics and sampled requests to provide visibility into WAF activity.
Consistent naming and tagging for project and environment management.
The request evaluation process can be summarized as:
Internet Request → CloudFront/WAF → Managed Security Rules → Known Bad Input Checks → Rate-Limit Evaluation → Allow or Block
An important architectural concept in this lecture is that AWS WAF is not simply another AWS resource being created by Terraform. The Terraform configuration is expressing a security policy as code—defining how web traffic should be inspected and what protections should be applied before requests are allowed to continue toward the application.
By the end of this lecture, students will understand what AWS WAF is, why application-layer protection is important, how Web ACL rules evaluate incoming requests, and how Terraform can encapsulate these security controls within a reusable WAF module.
In the next lecture, we will call the WAF child module from the root Terraform configuration, pass the required inputs, and integrate the Web ACL into the larger AWS architecture.
In this final lecture of Class A, students will integrate the AWS WAF child module into the root Terraform configuration, completing the same modular integration pattern previously demonstrated with AWS Certificate Manager.
We will walk through the Terraform module block used to call the WAF module and examine how the root module passes the required input variables to the child module. Students will see how project information, environment settings, rate-limit configuration, and other required values flow from the root configuration into the reusable WAF module.
This reinforces one of the central Terraform architectural patterns introduced throughout Class A:
Root Module → Child Module → AWS Resources
Rather than defining every AWS resource directly in main.tf, the root module acts as the orchestration layer, while reusable child modules encapsulate specific architectural capabilities. In this case, the WAF module encapsulates the application's web security controls, including AWS-managed rule groups, rate limiting, and monitoring configuration.
Students will also see how the ACM and WAF modules begin contributing different capabilities to the larger architecture:
ACM → TLS Certificate Management
WAF → Web Application Security
As additional modules are introduced throughout the bootcamp, the root Terraform configuration will progressively assemble these capabilities into the complete AWS architecture.
By the end of this lecture, students will understand how to call the WAF child module from the root configuration, pass its required inputs, and incorporate application-layer security into the larger Terraform-managed AWS environment.
Congratulations on completing Class A: Terraform & AWS Architecture Foundations!
Throughout this class, we established the foundation that will be used for the remainder of the AWS Cloud Architect Bootcamp. We began by examining the target AWS architecture and following a user request through the major architectural layers. We then explored how Terraform configuration, providers, AWS APIs, modules, state, and remote backends work together to transform Infrastructure as Code into deployable AWS resources.
We also moved from Terraform concepts into implementation by creating reusable AWS Certificate Manager and AWS WAF modules and integrating those capabilities through the root Terraform configuration.
The important takeaway from Class A is that Terraform is more than a tool for creating AWS resources. Throughout this bootcamp, we will use Terraform to express architectural decisions as code and progressively assemble those decisions into a production-style AWS environment.
Coming Next — Class B: AWS Networking: Production VPC Architecture
In Class B, we move into the networking foundation that will support the rest of our architecture.
Students will design and build a production-style, highly available AWS VPC architecture using Terraform, including multiple Availability Zones, public and private subnets, route tables, an Internet Gateway, NAT Gateways, security controls, and controlled administrative access.
The architecture will progressively take shape as we build:
VPC → Availability Zones → Public & Private Subnets → Route Tables → Internet Gateway → NAT Gateways → Security Groups & NACLs → Bastion Host
Class A established how we will build infrastructure with Terraform. Class B begins applying that foundation to one of the most important layers of our AWS environment: the network architecture on which our compute, data, security, and application services will depend.
Build a strong foundation for designing and deploying AWS cloud infrastructure using Terraform and Infrastructure as Code (IaC). This course is the first class in the AWS Cloud Architect Bootcamp and establishes the Terraform and cloud architecture concepts that will be used throughout the remainder of the program.
In this hands-on course, you will learn how Terraform transforms configuration files into actual AWS resources. You will explore the relationship between Terraform configuration, the AWS Provider, AWS APIs, and deployed cloud infrastructure, giving you a clear understanding of what happens behind the scenes when Terraform manages AWS resources.
You will learn how professional Terraform projects are organized using root and child modules and how modular Infrastructure as Code helps make cloud environments reusable, maintainable, and easier to manage. Core Terraform concepts covered include providers, variables, outputs, data sources, Terraform state, the terraform.tfstate file, Amazon S3 remote backends, state locking, and the Terraform deployment workflow.
Rather than learning Terraform through disconnected examples, you will work within the context of a production-style AWS architecture that will be progressively designed and implemented throughout the AWS Cloud Architect Bootcamp.
You will also move from concepts into implementation by building reusable Terraform modules for AWS Certificate Manager (ACM) and AWS Web Application Firewall (WAF). You will learn how ACM supports TLS certificates and secure HTTPS communication and how AWS WAF provides application-layer protection for web traffic. After building these modules, you will integrate them into the root Terraform configuration, reinforcing how individual architectural capabilities are assembled into a larger AWS environment.
Throughout the course, emphasis is placed not only on writing Terraform code, but also on understanding why the infrastructure is designed this way and how each Terraform component contributes to the overall architecture.
By the end of Class A, you will have the Terraform and AWS architecture foundation needed to continue into production VPC networking, highly available compute, data and storage services, cloud security, observability, multi-region architecture, data replication, and disaster recovery in the later classes of the bootcamp.