The following is a small example of how to create a small, but basic network within AWS.
It is used to explain some of the main networking concepts by using as little infrastructure as possible.
- A VPC (with internet gateway)
- 3 Subnets (1 public, 2 private)
- A basic EC2 machine
- A security group with all egress traffic, and HTTP ingress
Note: You will need both git and terraform commands installed. You will also need AWS access. The simplest way is to set an environment variable with your
AWS_SECRET_ACCESS_KEY. The AWS credentials need to be assigned permissions to create the resources.
git clone https://github.com/loujaybee/terraform-aws-networking-exercises
terraform apply— Create the infrastructure
Disclaimer: This repository is purely for training purposes. I am not responsible for any costs, or damages caused by the running of the above commands and/or cloud resources. The resources created are entirely the responsibility of the creator and I am in no way responsible for any issues that arise from creating them.