Reverse Engineering With Terraform: An Introduction To Infrastructure Automation, Integration, and Scalability Using Terraform 1st Edition Sumit Bhatia PDF Download
Reverse Engineering With Terraform: An Introduction To Infrastructure Automation, Integration, and Scalability Using Terraform 1st Edition Sumit Bhatia PDF Download
https://ebookmeta.com/product/practical-gitops-infrastructure-
management-using-terraform-aws-and-github-actions-1st-edition-
rohit-salecha/
https://ebookmeta.com/product/terraform-up-and-running-writing-
infrastructure-as-code-3rd-edition-yevgeniy-brikman/
https://ebookmeta.com/product/2015-international-zoning-code-1st-
edition-international-code-council/
The Jewelry Recipe Book 2nd Edition Nancy Soriano
https://ebookmeta.com/product/the-jewelry-recipe-book-2nd-
edition-nancy-soriano/
https://ebookmeta.com/product/marketing-the-menacing-fetus-in-
japan-helen-hardacre/
https://ebookmeta.com/product/english-in-action-1-third-edition-
barbara-h-foley/
https://ebookmeta.com/product/theirs-a-billionaire-reverse-harem-
romance-1st-edition-penny-crane/
https://ebookmeta.com/product/venom-and-vice-of-myth-and-
man-2-1st-edition-jill-ramsower/
Reverse Engineering
with Terraform
An Introduction
to Infrastructure Automation,
Integration, and Scalability
using Terraform
Sumit Bhatia
Chetan Gabhane
Reverse Engineering with Terraform: An Introduction to Infrastructure
Automation, Integration, and Scalability using Terraform
Sumit Bhatia Chetan Gabhane
Houston, TX, USA Pune, Maharashtra, India
Acknowledgments����������������������������������������������������������������������������xvii
Introduction���������������������������������������������������������������������������������������xix
v
Table of Contents
vi
Table of Contents
Data Section��������������������������������������������������������������������������������������������������46
Resource Section�������������������������������������������������������������������������������������������46
Variable Section���������������������������������������������������������������������������������������������49
Terraform Provisioners����������������������������������������������������������������������������������53
Set Up Variables and Resources��������������������������������������������������������������������55
Use an External Provisioner���������������������������������������������������������������������������55
Create the External Script�����������������������������������������������������������������������������56
Depend on Script Execution��������������������������������������������������������������������������56
Apply the Configuration���������������������������������������������������������������������������������56
Output Section�����������������������������������������������������������������������������������������������57
Backup Strategy for Config File���������������������������������������������������������������������57
Mastering Control: Utilizing Terraform Variables as Powerful Module
Parameters���������������������������������������������������������������������������������������������������������59
Variables��������������������������������������������������������������������������������������������������������60
Maps��������������������������������������������������������������������������������������������������������������63
Lists���������������������������������������������������������������������������������������������������������������65
Variable Defaults�������������������������������������������������������������������������������������������66
Populating Variables��������������������������������������������������������������������������������������68
Interactive Prompts���������������������������������������������������������������������������������������70
Example Usage in VMware Configuration������������������������������������������������������70
Leveraging Modularization in Terraform�������������������������������������������������������������71
Introduction to Modules���������������������������������������������������������������������������������71
Module Structure�������������������������������������������������������������������������������������������72
Using a Module����������������������������������������������������������������������������������������������73
Streamlining Infrastructure Provisioning with Terraform������������������������������������74
Committing the Configuration File�����������������������������������������������������������������74
Initializing Terraform��������������������������������������������������������������������������������������75
terraform plan�����������������������������������������������������������������������������������������������75
vii
Table of Contents
terraform apply����������������������������������������������������������������������������������������������76
Hands-On Exercise: Generation of Config and State Files to Create a
VMware VM via vCenter (Using Templates)���������������������������������������������������76
Summary������������������������������������������������������������������������������������������������������������87
viii
Table of Contents
Review��������������������������������������������������������������������������������������������������������������126
Understand a Sample Reverse-Engineering Model with Terraform������������������128
Terraform Provider Version��������������������������������������������������������������������������130
Infrastructure Platform Revisions����������������������������������������������������������������130
Automated Creation of a Point-in-Time Config File�������������������������������������������132
Provider�������������������������������������������������������������������������������������������������������132
Provider Details to Connect to the Platform������������������������������������������������133
Data Section������������������������������������������������������������������������������������������������133
Resource Section�����������������������������������������������������������������������������������������135
Importing of a Resource with Terraform�����������������������������������������������������������137
Validating a Successful Import�������������������������������������������������������������������������140
Hands-On Exercise: Import Script to Demonstrate Successful
Autogeneration of a Config File�������������������������������������������������������������������������141
Summary����������������������������������������������������������������������������������������������������������155
ix
Table of Contents
x
Table of Contents
xi
Table of Contents
Index�������������������������������������������������������������������������������������������������267
xii
About the Authors
Lead author Sumit Bhatia is a global
infrastructure solutions architect with a focus
on addressing difficult business challenges
and encouraging green IT through intelligent
hybrid cloud strategies, advanced automation,
and cost savings in IT operations to support
the global oil and gas industry. With more than
15 years in the tech industry, Sumit is driving
technology innovations by employing his deep
knowledge of automation tactics, DevOps
practices, multicloud, and edge computing
solutions engineering. With the help of his world-class inventions with
Terraform, the introduction of capacity management as service (CMaaS)
in hybrid deployments, and cost reductions with cutting-edge on/off
solutions, his firm was able to cut their yearly spending by hundreds of
thousands of dollars. He received the highest honor from his organization,
an award for being a pioneer in the field of energy innovation.
Sumit is also a well-known author and reviewer for leading oil and
gas industry journals and publications. His steadfast drive to share
information and best practices has aided many professionals in navigating
the complicated realm of sustainability and solutions engineering.
xiii
About the Authors
xiv
About the Technical Reviewer
Simon Mansbridge has over 35 years of
IT experience in the development and
deployment of large enterprise systems,
often supporting over 100,000 users. He
has worked on a range of IT technologies
from high-performance computing to
core infrastructures, SAP R/3, Microsoft
enterprise communication and collaboration
systems, cloud, security tooling, and service
management. As a technical manager,
one of his focuses has always been on
efficient optimized solutions delivered via
combinations of commercial and in-house developed monitoring and
automation tools. His technical insights and innovations have led to some
being implemented as, or incorporated into, commercial products.
With his broad and deep knowledge, Simon now acts as Chief Architect,
ensuring alignment across the broad range of technologies in the
organization he currently works for.
xv
Exploring the Variety of Random
Documents with Different Content
back
back
back
back
back
back
back
back
back
back
back
back
back
back
back
back
back
back
back
back
back