menu
arrow_back
뒤로

Infrastructure as Code with Terraform

—/100

Checkpoints

arrow_forward

Creating Resources in terraform

Change Infrastructure

Destructive Changes

Create Resource Dependencies

Infrastructure as Code with Terraform

1시간 크레딧 5개

This lab was developed with our partner, Hashicorp. Your personal information may be shared with Hashicorp, the lab sponsor, if you have opted-in to receive product updates, announcements, and offers in your Account Profile.

GSP750

Google Cloud Self-Paced Labs

Overview

Terraform is the infrastructure as code offering from HashiCorp. It is a tool for building, changing, and managing infrastructure in a safe, repeatable way. Operators and Infrastructure teams can use Terraform to manage environments with a configuration language called the HashiCorp Configuration Language (HCL) for human-readable, automated deployments.

Infrastructure as code is the process of managing infrastructure in a file or files rather than manually configuring resources in a user interface. A resource in this instance is any piece of infrastructure in a given environment, such as a virtual machine, security group, network interface, etc. At a high level, Terraform allows operators to use HCL to author files containing definitions of their desired resources on almost any provider (AWS, Google Cloud, GitHub, Docker, etc.) and automates the creation of those resources at the time of apply.

A simple workflow for deployment will follow closely to the steps below:

  • Scope - Confirm what resources need to be created for a given project.

  • Author - Create the configuration file in HCL based on the scoped parameters.

  • Initialize - Run terraform init in the project directory with the configuration files. This will download the correct provider plug-ins for the project.

  • Plan & Apply - Run terraform plan to verify creation process and then terraform apply to create real resources as well as the state file that compares future changes in your configuration files to what actually exists in your deployment environment.

Objectives

In this lab you will learn how to perform the following tasks:

  • Build, change, and destroy infrastructure with Terraform

  • Create Resource Dependencies with Terraform

  • Provision infrastructure with Terraform

이 실습의 나머지 부분과 기타 사항에 대해 알아보려면 Qwiklabs에 가입하세요.

  • Google Cloud Console에 대한 임시 액세스 권한을 얻습니다.
  • 초급부터 고급 수준까지 200여 개의 실습이 준비되어 있습니다.
  • 자신의 학습 속도에 맞춰 학습할 수 있도록 적은 분량으로 나누어져 있습니다.
이 실습을 시작하려면 가입하세요