Skip to content

easyawslearn/terraform-aws-instance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

terraform-aws-instance

A Terraform module to create an Amazon Web Services (AWS) EC2 instance.

Usage

module "cache" {
  source = "github.com/Patelvijaykumar/terraform-aws-instance"


variable "region" {
  default = "us-east-1"
}

variable "tag" {}
variable "ami_name_value" {
  default = "amzn-ami-vpc-nat*"
}
variable "ami_virtualization_type" {
  default = "hvm"
}
  region                     = "us-east-1"
  tag                        = "my-instance"
  ami_name_value             = "amzn-ami-vpc-nat*"
  ami_virtualization_type    = "hvm"
  instance_type              = "t2.micro"
  keyname                    = "test.pem"


}

Variables

  • region - Regio Name
  • tag - Tag name for instance
  • ami_name_value - ami name identifier
  • ami_virtualization_type - virtualization type of ami
  • keyname - key name for ssh access
  • sg_id - security group id which you associate to instance

About

creation of ec2 instance

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages