venkateshk111 / terraform-beginners-guide

Terraform Beginners Guide and Demos to Practice

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terraform

Terraform

  • Provider : Define the providers like AWS, Azure, GCP
  • Resource : Infrastructure Resources to be created, ex: VPC, S3, EC2
  • Data Sources (optional) : Pull the data from the provider
  • Variable: Give user option to enter the value for defined resources
  • Arguments : Inputs
  • Attributes : Outputs
  • Meta-Arguments : Terraform specific Inputs ex: count, for_each,depends_on

Project Work

  1. Create Simple Web Server
    • AWS Components
      • EC2
      • Security Group to allow port 22
      • Security Group to allow port 80, 443
    • Use Terraform variables where ever possible.

Important Links

  • Terraform Block (>0.13 version) or Terraform Settings Block or Terraform Configuration Block
  • Provider Block
  • Resource Block
  • Input Variables Block
  • Output Values Block
  • Local Values Block
  • Data Sources Block
  • Modules Block
terraform apply
$ terraform apply -var-file 03_secrets.tfvars 

Terraform used the selected providers to generate the following execution plan
+ create
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

About

Terraform Beginners Guide and Demos to Practice

License:MIT License


Languages

Language:HCL 95.8%Language:HTML 4.2%