Leanpub Header

Skip to main content

Terraform:自动化管理云基础设施

基础设施即代码实战

The author is letting you choose the price you pay for this book!

Pick Your Price...
PDF
EPUB
127
Pages
About

About

About the Book

随着云计算的逐渐流行,创建和管理诸如虚拟服务器、网络、存储、负载均衡等基础设施的方式已然发生转变。传统的手动或者脚本管理方式虽然能够应付数台服务器这种少量使用场景,但是对于多则成百上千的大规模服务器数量来说,显然不再适用和高效。

为此,我们需要一种可以自动化的、可重复的以及可靠的创建和管理云基础设施的方法。来自 Google、Amazon、Netflix 等互联网公司的做法表明,基础设施即代码(Infrastructure as code)正是用来解决此类问题的最佳实践。

根据我们长期观察,HashiCorp 旗下的 Terraform 是目前用来编写基础设施即代码的最佳开源工具之一。我们喜爱 Terraform,不仅仅因为它支持 AWS、Google Cloud、Microsoft Azure、DigitalOcean、Linode、Vultr、阿里云、腾讯云等市场上广泛的云供应商,而且也在于它的生态越来越成熟。

本书将通过真实世界的应用案例来引导你一步一步的入门 Terraform,并在此基础上提高你使用 Terraform 的“姿势水平”。在学完本书后,你将能够独立编写基础设施即代码,从而自动化管理各种云基础设施。

Price

Pick Your Price...

Minimum price

$9.99

$14.99

You pay

$14.99

Author earns

$11.99
$

All prices are in US $. You can pay in US $ or in your local currency when you check out.

EU customers: prices exclude VAT, which is added during checkout.

...Or Buy With Credits!

Number of credits (Minimum 1)

1
The author will earn $12.00 from your purchase!
You can get credits monthly with a Reader Membership

Author

About the Author

Xiaodong Xu

Xiaodong Xu, also known as ~toy, is a GNU/Linux enthusiast and DevOps practitioner. He is passionate about technology and sharing knowledge. Through his website, he has written and translated over 3000 articles. He is also the author of Mastering the Command Line Like a Hacker, The Containerization Trio: Podman, Buildah, and Skopeo and Terraform: Automating Cloud Infrastructure Management. He has translated books such as Git for Dummies and Things Every Perl Programmer Should Know.

Contents

Table of Contents

  • 第一章 准备篇
    1. 1.1 什么是基础设施即代码
    2. 1.2 Terraform 简介及工作原理
    3. 1.3 Terraform 的使用场景
    4. 1.4 安装 Terraform
    5. 1.5 配置 Terraform 开发环境
  • 第二章 入门篇
    1. 2.1 创建云基础设施
    2. 2.2 变更云基础设施
    3. 2.3 销毁云基础设施
  • 第三章 提高篇
    1. 3.1 通过 Provisioner 配置服务器
    2. 3.2 利用 Terraform 模块重用资源
    3. 3.3 与团队成员协同使用 Terraform
    4. 3.4 测试云基础设施
  • 第四章 技巧篇
    1. 4.1 实现循环
    2. 4.2 条件选择
    3. 4.3 零宕机部署
    4. 4.4 格式化并验证 Terraform 代码
    5. 4.5 利用 terraform console 对表达式求值
    6. 4.6 Terraform 命令参考
    7. 4.7 Terraform 参考资源

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub