Skip to content

mfsiat/terraform-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform boilerplate

  • First configure awscli
  • Configure aws cli with profile name
  • Add the profile on main.tf
  • Change the profile name for aws access keys
provider "aws" {
  region = "your_region_name"
  shared_credentials_file = "/home/maya/.aws/credentials"
  profile = "your_profile_name"
}

To run Terraform

  • First install terraform from this link
  • Clone the repo
  • INIT Terraform by typing: terraform init
  • Configure main.tf
  • Then validate configuration by typing: terraform validate
  • View the configuration for your ec2 type: terraform plan
  • Create EC2 by: terraform apply
  • View the created EC2 by: terraform view
  • Destroy the created resources by terraform by: terraform destroy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages