In this course we will set up a development environment to test serverless code. Terraform is an infrastructure as code tool that will ease the provisioning and update of AWS resources consistently.
You'll learn how to:
Create AWS resources using Terraform
Accelerate Deployments with Terraform
Build a development environment for testing and validation
Follow a project-focused format so you can learn and follow along
Here's what you will do in this course, step-by-step:
Install the current version of Terraform on Linux (ubuntu).
Determine requirements
Work with a Linux-based EC2 Instance
Install Terraform version 0.14.6
Create AWS resources using Terraform
Write HCL code to provision a python base Lambda function and a main SQS queue and a dead-letter queue.
Working with Lambda and SQS
Learn how to create Lambda function
Learn how to create SQS queues
Update Lambda Function using Terraform
Terraform by default cannot detect changes in Python code, but using file hashes enables Terraform to detect changes and update Lambda.
Use source code hash argument to update Lambda
Creating Workspaces
Workspaces are not only useful to separate HCL configurations, but also updating variables when deploying to either development or production environments.
Learn how to use workspaces to update variables dynamically
Accelerating Deployments with Terraform
This course provides a quick guidance on how to implement Terraform in a development workflow. This method can be scaled to larger projects involving numerous AWS resources!