Skip to content

smbek/terraform-aws-vpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-aws-vpcbatch5

Create main.tf file and input following

module "vpc" {
    source = "smbek/vpcbatch5/aws"
    version = "0.0.5"
    region        = "us-east-2"
    vpc_cidr      = "10.0.0.0/16"
    sub1_cidr     = "10.0.1.0/24"
    sub2_cidr     = "10.0.2.0/24"
    sub3_cidr     = "10.0.3.0/24"
    ip_on_launch   = true
    instance_type = "t2.micro"
    subnet1_name  = "Hello1"
    subnet2_name  = "Hello2"
    subnet3_name  = "Hello3"
    ports = [
      { from_port = 22, to_port = 22 },
      { from_port = 80, to_port = 80 }         # Provide list of ports
    ]
}

Create apache.sh file and input a script. Eg.

#!bin/bash

sudo apt update 
sudo apt install apache2 -y
sudo systemctl start apache2
sudo systemctl enable apache2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published