一、Terraform安装
安装
首先我们先安装Terraform。对于Ubuntu用户:
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
sudo apt-add-repository -y "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
sudo apt-get update && sudo apt-get install -y terraform
对于CentOS用户:
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo
sudo yum -y install terraform
对于Mac用户:
brew tap hashicorp/tap
brew install hashicorp/tap/terraform
对于Windows用户,官方推荐的包管理器是choco,可以去https://chocolatey.org/ 下载安装好chocolatey后,以管理员身份启动powershell,然后:
choco install terraform
如果只想纯手动安装,那么可以前往Terraform官网下载对应操作系统的可执行文件(Terraform是用go编写的,只有一个可执行文件),解压缩到指定的位置后,配置一下环境变量的PATH,使其包含Terraform所在的目录即可。
验证
terraform version
Terraform v0.13.5terraform -help
Usage: terraform [-version] [-help] <command> [args]The available commands for execution are listed below.
The most common, useful commands are shown first, followed by
less common or more advanced commands. If you're just getting
started with Terraform, stick with the common commands. For the
other commands, please read the help and docs before usage.
##...
一、Terraform安装相关推荐
- terraform 安装及命令
Terraform Terraform是用于安全有效地构建,更改和版本控制基础结构的工具.Terraform可以管理现有和流行的服务提供商以及定制的内部解决方案. 配置文件向Terraform描述了运 ...
- Terraform安装
安装 MacOs安装 //通过brew安装hashicorp tap brew tap hashicorp/tap //通过brew安装terraforbrew install hashicorp/t ...
- Terraform指南:安装
使用之前首先必须将 Terraform 安装在你的机器上.Terraform 是以二进制安装包发布的,它可以支持所有的平台和架构.在本章节我们将不会涉及如何通过源代码编译 Terraform,但是对于 ...
- 基础设施即代码:Terraform和AWS无服务器
基础设施即代码 基础设施即代码(IaC)是一种通过机器可读的定义文件管理设备和服务器的方法.从根本上说,你要写下你希望基础设施是什么样子,以及应该在该基础设施上运行什么代码.然后,按下一个按钮,说&q ...
- [转]Terraform 使用 - 从最简单例子开始
Terraform 使用 - 从最简单例子开始 https://yanbin.blog/terraform-get-started-with-first-sample/ Terraform 是一个 I ...
- 【云原生 • Terraform】基础设施即代码工具力荐
目录 前言 Terraform 如何工作 为什么要使用Terraform? 管理任何基础设施 跟踪基础设施 自动化变更 标准化配置 Terraform 安装 举个栗子 使用nginx 镜像启动一个名为 ...
- Terraform学习
Terraform学习 Terraform 与IaC 什么是Terraform Terraform 是 HashiCorp 的基础设施即代码工具.它允许您在人类可读的声明性配置文件中定义资源和基础设施 ...
- Terraform云平台实例操作神器
目录 一.Terraform功能简介 二.Terraform知识准备: 三.Terraform安装: 四.Terraform的基本命令: 4.1 Terraform的编排 4.2 Terrafrom的 ...
- 如何在DigitalOcean中使用Terraform
介绍 (Introduction) Terraform is a tool for building and managing infrastructure in an organized way. ...
最新文章
- 未识别的网络无法连接Internet解决方法
- Codeforces 858A. k-rounding 数论
- MySQL复制常见问题处理
- stream模式不能接受blob文件_一文带你层层解锁文件下载的奥秘
- python后端开发web_最简易的python web框架的后端实现
- flutter offset_牛笔!自己用Flutter撸一个天气APP
- css3价格斜切_HTML5+CSS3价格表翻转切换动画
- 为vsftpd添加虚拟用户的脚本
- 码农如何写好一封邮件/1
- pcie握手机制_图解PCIE原理(从软件角度)
- datatable高效写入mysql_如何将DataTable批量写入数据库
- 格雷希尔GripSeal螺纹接头的规格型号
- nodejs 安装教程
- 如何通过供应商分类来提高采购绩效?
- 使用ORC识别图片的文字
- Selenium 定位Loading元素图标,只需要简单配置下就行
- 同步或者重构Activiti Identify用户数据的多种方案比较
- php面试题(附带答案)
- 「科普」一文读懂生产制造MES系统
- Windows消息拦截技术的应用(Hook钩子)