Skip to content

skvortsovden/terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

terraform

IaC using Terraform

First start:

  1. draft main.tf

Content example:

# Configure the AWS Provider
provider "aws" {
  region = var.region
  access_key = "" # user access key here
  secret_key = "" # user secret key here
}

terraform {
  required_version = "0.12.21"

# BEST-PRACTICE: create S3 bucket for storing terraform state file
# backend "s3" {
#   bucket = "terraform-state"
#   key = "terrafrom.tfstate"
#   region = "${var.region}"
# }
}
  1. run $ terraform init
  2. create .gitignore with content:
.terraform
terraform.tfstate
terraform.tfstate.backup
  1. Define credentials

    4.1 AWS

About

IaC using Terraform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages