Introduction to Terraform

2024-06-06 01:38
文章标签 introduction terraform

本文主要是介绍Introduction to Terraform,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

» What is Terraform?

Terraform is a tool for building, changing, and versioning infrastructure safely and efficiently. Terraform can manage existing and popular service providers as well as custom in-house solutions.

Terraform 是一个安全高效的创建、变更与融合基础设置的工具。Terraform
可以管理现有的解决方案、受欢迎的服务商解决方案以及内部定制的解决方案。

Configuration files describe to Terraform the components needed to run a single application or your entire datacenter. Terraform generates an execution plan describing what it will do to reach the desired state, and then executes it to build the described infrastructure. As the configuration changes, Terraform is able to determine what changed and create incremental execution plans which can be applied.

配置文件向Terraform描述运行单个应用程序或整个数据中心所需的组件。Terraform生成一个执行计划,描述如何达到所需的状态,然后执行它来构建所描述的基础架构。随着配置更改,Terraform能够确定更改的内容,并创建可应用的增量执行计划。

The infrastructure Terraform can manage includes low-level components such as compute instances, storage, and networking, as well as high-level components such as DNS entries, SaaS features, etc.

Terraform可以管理的基础架构包括计算实例,存储和网络等低级组件,以及DNS条目,SaaS功能等高级组件。

Examples work best to showcase Terraform. Please see the use cases.

The key features of Terraform are:

» Infrastructure as Code

基础设施即代码

Infrastructure is described using a high-level configuration syntax. This allows a blueprint of your datacenter to be versioned and treated as you would any other code. Additionally, infrastructure can be shared and re-used.

基础架构使用高级配置语法进行描述。这描述了一副蓝图,可以让你的数据中心与其他代码一样被版本化和处理。另外,基础架构可以共享和重用。

» Execution Plans

执行计划

Terraform has a “planning” step where it generates an execution plan. The execution plan shows what Terraform will do when you call apply. This lets you avoid any surprises when Terraform manipulates infrastructure.

Terraform有一个“计划”步骤,它生成一个执行计划。当你调用应用程序时,执行计划显示Terraform将执行的操作。这可以避免任何因为Terraform操作基础设施产生的意外。

» Resource Graph

资源图

Terraform builds a graph of all your resources, and parallelizes the creation and modification of any non-dependent resources. Because of this, Terraform builds infrastructure as efficiently as possible, and operators get insight into dependencies in their infrastructure.

Terraform构建了所有资源的图表,并行了任何非依赖资源的创建和修改。因此,Terraform尽可能高效地构建基础架构,操作人员可以深入了解其基础架构中的依赖关系。

» Change Automation

变更自动化

Complex changesets can be applied to your infrastructure with minimal human interaction. With the previously mentioned execution plan and resource graph, you know exactly what Terraform will change and in what order, avoiding many possible human errors.

应用基础设施有复杂变更操作时,可以有最少的人为交互。通过前面提到的执行计划和资源图,您可以确切知道Terraform将会以什么顺序进行变更,从而避免很多可能的人为错误。

参考链接:
https://www.terraform.io/intro/index.html
https://github.com/hashicorp/terraform
http://www.infoq.com/cn/news/2015/05/hashimoto-modern-datacenter
(INFOQ的文章介绍的很详细)
https://github.com/alibaba/terraform-provider

核心摘要:

从企业的角度来看,一个典型的数据中心的资源使用是从单物理服务器发展而来的,经历了使用多个裸物理服务器,并最终发展成为使用多个虚拟机实例。这一进化的最新趋势是走向容器化。配置、部署和维护的复杂性一直随着这一演进而增加,人们对自动化的需求变得极为重要

这篇关于Introduction to Terraform的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1034733

相关文章

AI基础 L1 Introduction to Artificial Intelligence

什么是AI Chinese Room Thought Experiment 关于“强人工智能”的观点,即认为只要一个系统在行为上表现得像有意识,那么它就真的具有理解能力。  实验内容如下: 假设有一个不懂中文的英语说话者被关在一个房间里。房间里有一本用英文写的中文使用手册,可以指导他如何处理中文符号。当外面的中文母语者通过一个小窗口传递给房间里的人一些用中文写的问题时,房间里的人能够依

Introduction to Deep Learning with PyTorch

1、Introduction to PyTorch, a Deep Learning Library 1.1、Importing PyTorch and related packages import torch# supports:## image data with torchvision## audio data with torchaudio## text data with t

RFC6455-The WebSocket protocol 之一:1. Introduction

1. Introduction 1、介绍 1.1. Background 1.2 背景 _This section is non-normative._ 这部分是非正式的。 Historically, creating web applications that need bidirectional communication between a client and a server (

语音信号处理1:Introduction

参考An introduction to signal processing for speech,From Dan Ellis @ Columbia University,Chapter 22 in Handbook of Phonetic Science ,极好的入门引导,摘录+补充。 This chapter aims to give a transparent and intuitiv

Introduction to the t Distribution (non-technical)

https://www.youtube.com/watch?v=Uv6nGIgZMVw

Introduction to linear optimization 第二章全部课后题答案

费了好长时间,终于把这本经典理论教材第二章的课后题做完了。大部分都是证明题,很多都是比较有难度的。 不少题我参考了网上找到的一些资料的思路,但是有一些题目我觉得这些网上找到的答案也不太好,自己修正完善了下,少部分题目自己独立完成。 我把答案放在一个 Jupyter book 上,见链接:第二章答案

Python知识点:如何使用Terraform与Python进行基础设施即代码管理

使用Terraform与Python结合进行基础设施即代码(Infrastructure as Code,IaC)管理,可以通过多种方式实现,主要包括使用Terraform的CLI工具与Python脚本的集成,以及使用Python库来直接操作Terraform。以下是一些常见的方法和步骤: 1. 使用Python脚本调用Terraform CLI 你可以通过Python脚本来执行Terrafo

Introduction to linear optimization 第 2 章课后题答案 11-15

线性规划导论 Introduction to linear optimization (Dimitris Bertsimas and John N. Tsitsiklis, Athena Scientific, 1997), 这本书的课后题答案我整理成了一个 Jupyter book,发布在网址: https://robinchen121.github.io/manual-introductio

introduction to db--学习记录

sql 部分: 1.对于query的寻找,活学活用,不同的部分,对应有不同的解决方式。并且方法不唯一cross product , natural join这些,都是可以相互贯穿运用求解的。

CUDA-GPU programming Introduction (4)

Concurrent execution and streams GPU和CPU之间的并行性是不言而喻的,各自的计算是asynchronous的,任何时候如果需要同步这两者,都需要用到: CudaDeviceSynchronize () 对于GPU和CPU之间的memory copy来说,小数据量传输默认是asynchronous,大数据量传输则是synchronous的。但是我们可以加上后