0Pricing
Ansible Academy · Lesson

Networking: VPCs, Subnets & Security Groups

Stand up cloud network resources.

Servers Need a Network

Before an instance can talk to anything, it needs a network home: a private network, a subnet, and firewall rules. Ansible builds all three. 🌐

Start With a VPC

A VPC is your isolated private network in AWS. The ec2_vpc_net module creates one from a CIDR block you choose.

amazon.aws.ec2_vpc_net:
  name: app-vpc
  cidr_block: 10.0.0.0/16

All lessons in this course

  1. Cloud Collections & Authentication
  2. Launch EC2 Instances Declaratively
  3. Networking: VPCs, Subnets & Security Groups
  4. Provision Then Configure in One Flow
← Back to Ansible Academy