Skip to content

Commit

Permalink
Added a module usage
Browse files Browse the repository at this point in the history
  • Loading branch information
qtkhajacloud committed Aug 12, 2021
1 parent 66f6c8b commit 9492a1d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Aug21/moduledemo/moduleusage.tf
@@ -0,0 +1,18 @@
module "vpc" {
source = "terraform-aws-modules/vpc/aws"

name = "my-vpc"
cidr = "10.0.0.0/16"

azs = ["us-west-2a", "us-west-2b", "us-west-2c"]
private_subnets = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
public_subnets = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"]

enable_nat_gateway = false
enable_vpn_gateway = false

tags = {
Terraform = "true"
Environment = "dev"
}
}
13 changes: 13 additions & 0 deletions Aug21/moduledemo/providers.tf
@@ -0,0 +1,13 @@
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.0"
}
}
}

# Configure the AWS Provider
provider "aws" {
region = "us-west-2"
}

0 comments on commit 9492a1d

Please sign in to comment.