
Welcome to the Terraform Crash Course.
In this video we're going to briefly look at the Terraform AWS Provider; we're going to intialise our Terraform state, and we're going to validate our code by using Terraform's built in validation mechanism.
Let's create a VPC Resource.
We've got a VPC Resource but now we need to plan our changes and then apply them to the AWS account.
Learn how to create an internet gateway for a VPC in Terraform, manage name collisions, and reference the VPC ID using Terraform 0.12+ syntax versus older styles.
Learn how to configure an AWS route table in Terraform. Create a default route through an internet gateway and associate the route table with a subnet.
Learn how to configure an AWS network ACL in Terraform, creating ingress and egress rules that allow all protocols and all IP addresses across all port ranges.
Learn how to create an AWS security group, name it 'allow all,' and configure inbound SSH while allowing all outbound traffic.
Create an AWS SSH keypair for EU instances, name it default, attach the public key to the instance, and enable SSH access.
Create an AWS EC2 instance with Terraform, starting from a data block to fetch information. Establish an explicit dependency by linking the instance to a key name for correct sequencing.
Learn to create and view Terraform outputs, print the public IP (elastic IP) after provisioning, and troubleshoot apply errors to finalize a web server with a VIP.
Use terraform destroy to remove all resources, review the current state with terraform state list and terraform state show, and confirm destruction of all ten resources, then reset state.
If you've heard of Terraform and "Infrastructure As Code", but have no idea how-to get started, then I've created a course for you.
Together we'll start creating everything we need to interact with an AWS account. From there we will build a basic network, add in an SSH public key (AWS Keypair), and then start fetching data from the AWS Marketplace. Once that's done we will create an EC2 Instance and then finally we can blow it all away with a Terraform Destroy command.
Sound like fun? It is!
Let's get started...