What’s Infrastructure as Code – Why Terraform – How to use it – How Terraform works – Terraform commands – How Terraform looks like – Demo: (AWS+Terraform+Ansible) – Provisioning a EC2 Instance – Provisioning a EC2 with Docker – Terraform Certification
- Extra knowledge required… - Many human errors - DevOps culture didn’t was ready - There was deploy on Friday - Infrastructure is not versioned - Infrastructure as Code not exist - Communication (Dev and Ops)
(Infrastructure as Code) - Dev and Ops working together - Terraform, Ansible, AWS, GCP, IBM - DevOps tools helps - Infrastructure versioned (Git) - Better communication - More automations from all sides
modifying the atmosphere, temperature, surface topography or ecology of a planet, moon, or other body to be similar to the environment of Earth to make it habitable by Earth like-life. Terraform is a tool for building, changing and versioning the infrastructure.” Wikipedia 5
products used by the DevOps community, where it has as tools, Terraform, Vault, Consul, Nomad, Vagrant, Packer, etc. HashiCorp Terraform Cloud named a finalist for 2020 CRN Tech Innovator Award. HashiConf Global: an online HashiCorp Community conference. Oct 19-20, 2021
Popular infrastructure providers (IBM,AWS, GCP, Azure) - Execution Plans - Resource Graph - It’s not a configuration management tool - Versioning the infrastructure - Open Source and declarative - Idempotency - HCL Language (.tf)
Terraform) 10 • The average base salary of a DevOps/Automation Engineer is $167,292 in San Francisco and $122,953 in United States (2020 numbers) • Terraform has gained a lot in popularity over the last years. • It is now one of the most sought- after skills in this field. • It’s a tool that you will need to master when provisioning and cloud environment. Why Terraform
automated, while keeping the definition human readable. Automated tooling allows operators to increase their productivity, move quicker and reduce human error.” Multi-Cloud Popular Infrastructure Providers (IBM Cloud, AWS, Azure, GCP) Configuration Files (.tf) Execution Plans
directory. $ terraform plan Generate and show an execution plan. $ terraform apply Builds or changes infrastructure. $ terraform destroy Destroy Terraform-managed infrastructure. 14
providers and other API’s. 2 Resources Each resource block describes one or more infrastructure objects, such as, compute instances, virtual networks, etc. 3 Modules Consist of a collection of “.tf” file kept together in a directory. 15
configuration files “.tf” to provision your infrastructure services. https://www.terraform.io/docs/language/synt ax/configuration.html It is not JSON, but it’s accepts JSON format. How Terraform looks like
for Cloud Engineers specializing in operations, IT, or development who know the basic concepts and skills associated with open source HashiCorp Terraform. Candidates will be best prepared for this exam if they have professional experience using Terraform in production but performing the exam objectives in a personal demo environment may also be sufficient. Prerequisites - Basic terminal skills. - Basic understanding of on premises and cloud architecture.
- Is it possible to manage X snapshots with the Terraform or Ansible? - How about X? Terraform can substitute the Linux builds on the X environment? - We already know that X uses AWS, be prepared when we need to launch resources on the Cloud. 🚀