/vpc-ec2

Terraform Course, task 1

Primary LanguageHCL

Simple VPC

Configuration in this directory creates set of VPC resources which may be sufficient for development environment.

There is a public and private subnet created per availability zone in addition to single NAT Gateway shared between all 3 availability zones.

This configuration uses Availability Zone IDs and Availability Zone names for demonstration purposes. Normally, you need to specify only names or IDs.

Read more about AWS regions, availability zones and local zones.

Usage

To run this example you need to execute:

$ terraform init
$ terraform plan
$ terraform apply

Note that this example may create resources which can cost money (AWS Elastic IP, for example). Run terraform destroy when you don't need these resources.

Requirements

Name Version
terraform >= 0.12.31
aws >= 3.28

Providers

No providers.

Modules

Name Source Version
vpc ../../

Resources

No resources.

Inputs

No inputs.

Outputs

Name Description
azs A list of availability zones spefified as argument to this module
nat_public_ips List of public Elastic IPs created for AWS NAT Gateway
private_subnets List of IDs of private subnets
public_subnets List of IDs of public subnets
vpc_cidr_block The CIDR block of the VPC
vpc_id The ID of the VPC

setx AWS_PROFILE 492266378106_Training