Terraform Base - course 35,000 rub. from Slurm, training, Date: November 28, 2023.
Miscellaneous / / November 29, 2023
The course is designed for those new to Terraform who want to take the pain out of manually managing infrastructure and learn what the technology is for and how to use it. You will understand the principles of working with Terraform and how to maintain the code.
The course has no analogues in Russian. We will show specific practical methods of work, areas of application, cases and live tasks. All practical tasks will be completed in Yandex Cloud.
We are looking for engineers and developers (from beginners to seniors) who interact with infrastructure and are familiar with Linux and networking at a basic level. The first cohort starts on October 31, training will last 4 weeks.
The intensive course is designed for those who are already familiar with the instrument and helps them master it at an advanced level. Despite the popularity of Terraform, it is still difficult to find materials that are suitable for studying it in depth. At the initial level, there is still information, but a little further there is a vacuum, and you have to fill your own bumps.
During the intensive we will tell you how to work with code on a corporate scale, we will analyze common mistakes and explain how to avoid them. During training, you will have the opportunity to use the power of the Yandex platform for free. Cloud.
Terraform Base
Module 1. Introduction
Introduction to Terraform
— Old approach, IaC, introduction to the tool (history, company, basic principles and application)
— Comparison with other tools (Ansible, configuration management vs orchestration)
Getting to know your surroundings
— Review of Yandex Cloud (control panel, main services), student environment, authorization
— Familiarity with VM, MDB, ALB, network configuration
Module 2. Getting started with Terraform
Setting up the environment
— Installing the Terraform utility
—Terraform mirrors, terrafromrc file for global configuration, setting up mirrors
—Authorization in the cloud from Terraform
Terraform Providers
— How Terraform interacts with the cloud (API), the concept of a provider
— Configuration structure, provider versions, Terraform init
— Useful Terraform providers, documentation and working with it
Module 3. Resources
Description of infrastructure facilities
— Structure of infrastructure description files in Terraform
— The concept of a resource, documentation for resources, arguments and attributes of resources, dependencies between resources
HCL
— Field types in HCL
— Organizing files into a project
Applying the configuration
— Terraform plan and Terraform apply commands
— Checking the change plan
— Re-creation and modification on the fly
Terraform state
— How Terraform saves changes, the tfstate and tfstate.back file, the value and importance of the state
— How to import already created information into Terraform files, what to do if the state is missing (basic)
Module 4. Variables
Entering user data
— Variables, description syntax, possible fields, separate file for variables, entering variables from the console or from a file, different variables for different environments
Locals
— Difference between locals and variables
— When to use locals with examples
Complex data types in variables
— Lists, dictionaries in variables, use cases
Outputs
— Data output via outputs, modules and their communication via outputs
Module 5. Control structures
Branching in Terraform
— Branching in Terraform, training operator
Loops in Terraform
— Necessity of loops, count, index, examples
for_each
— Difference between count and for_each, examples of use
Module 6. Additional Terraform Features
Datasource
— Data resources, documentation
— Working with data resources, examples of application
Provisioners
— The need to use providers, types of providers in Terraform
— Local and remote exec, configuration structure
— File templates, language, examples
— Ansible: how to make it pay for money after creating infrastructure
Module 7. Advanced Practices
State storage
— Remote state storage in S3, locks and collaboration
Modules
— The essence of modules, the use of other people’s modules
Terraform Templating
— The problem of large configurations, reuse, Terragrunt
Approaches to working with infrastructure
— Cattle, Backed infra, Packer