itisaby / terraform-aws-apache

Terraform Module to run an ec2 instance that is running Apache

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terraform Module to run an ec2 instance that is running Apache

Not intended to be used in production

terraform {

}


provider "aws" {
  # Configuration options
  region = "us-east-1"
}

module "apache" {
  source        = ".//terraform-aws-apache-example"
  vpc_id        = "vpc-VPC_ID"
  instance_type = "t2.micro"
  public_key    = "ssh-rsa AAAAAA...."
  server_name = "apache-server"
}

output "name" {
  value = module.apache.public_ip
}
  

About

Terraform Module to run an ec2 instance that is running Apache

License:Apache License 2.0


Languages

Language:HCL 100.0%