Building a Terraform module that builds a bare-bones EC2 application server, qualifies for the AWS free-tier, and auto-assigns the ID of a registered AMI.
Scenario: Your team needs you to create a custom module for an EC2 instance with an Amazon Linux 2 AMI ID. Sounds like a job for … Terraform!
Set up a VPC, three subnets, an RDS MySQL instance, and an application load balancer.
In this article, I’ll document my first Terraform project: building a 3-tier network configuration in AWS. We will be following the general Terraform workflow: Write, Plan, Apply.
For better resource creation speed, adaptability, and portability, we will use four separate files to store variables and output commands. We will create a total of 18 AWS resources through Terraform, including “aws_vpc”, “aws_subnet”, “aws_internet_gateway”, “aws_db_instance”, and “aws_alb”.
Use Case: Your team needs you to deploy a custom image quickly and write a quick script in a file to accomplish a task.
We will complete four tasks:
Using both the AWS CLI and the AWS console, we will run through the steps necessary to meet seven objectives:
Scenario: In this demonstration, we will use the AWS Command Line Interface (CLI) to create a new IAM user with programmatic permissions, launch an EC2 instance, build an EC2 launch template, and build an auto scaling group (ASG) using that launch template, all with a few simple commands and values. We’ll then use the AWS Management Console (console) to verify the CLI- and ASG-generated instances are working as configured.
Download and install the Amazon Web Services Command Line Interface (CLI) for your operating system, and follow the installation instructions. …
This guide documents the steps required in AWS to configure an auto scaling group (ASG) with a launch configuration for creating EC2 instances with an Apache web server. We will then test the implemented ASG’s ability to scale out with changes in instance state and handle increased traffic.
Set up a Bastion Host and Private Instance in EC2, using Separate Subnets within the Same Custom, Built-from-Scratch VPC
For the Level Up In Tech bootcamp, the AWS VPC Project instructions were as follows:
DevOps Engineer pivoting from the legal profession.