Terraform Cookbook by Mikael Krief
Author:Mikael Krief
Language: eng
Format: mobi, epub
Tags: COM048000 - COMPUTERS / Systems Architecture / Distributed Systems and Computing, COM051440 - COMPUTERS / Software Development and Engineering / Tools, COM088010 - COMPUTERS / System Administration / Linux and UNIX Administration
Publisher: Packt Publishing
Published: 2020-09-17T05:40:24+00:00
In this Terrafile, for each module, we have specified its destination folder, and as you can see, we have added the version number in the folder name. Hence, the name of the folder is unique and will allow us to use several versions of the same module in the Terraform configuration. The following code shows an extract of a Terrafile with two different versions of the same module:
network-3.0.1:
source: "https://github.com/Azure/terraform-azurerm-network.git"
version: "v3.0.1"
network-2.0.0:
source: "https://github.com/Azure/terraform-azurerm-network.git"
version: "v2.0.0"
Also, it allows you to specify, if necessary, the authorized Git credentials to clone the module code. Be careful, however, not to write passwords in this file, which will be archived in a Git repository.
In this recipe, the Rakefile script was provided and is available in the original article of the Terrafile pattern (https://bensnape.com/2016/01/14/terraform-design-patterns-the-terrafile/). You are free to adapt it according to your needs.
Finally, the essentials of the Terrafile pattern is not the script, the language, or the format used but, rather, its working principle. There are alternative scripts and tools to this Rakefile with, for example, a Python script available at https://github.com/claranet/python-terrafile, or a tool written in Go available at https://github.com/coretech/terrafile.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7808)
Grails in Action by Glen Smith Peter Ledbrook(7719)
Azure Containers Explained by Wesley Haakman & Richard Hooper(6810)
Configuring Windows Server Hybrid Advanced Services Exam Ref AZ-801 by Chris Gill(6807)
Running Windows Containers on AWS by Marcio Morales(6327)
Kotlin in Action by Dmitry Jemerov(5089)
Microsoft 365 Identity and Services Exam Guide MS-100 by Aaron Guilmette(5053)
Combating Crime on the Dark Web by Nearchos Nearchou(4626)
Microsoft Cybersecurity Architect Exam Ref SC-100 by Dwayne Natwick(4578)
Management Strategies for the Cloud Revolution: How Cloud Computing Is Transforming Business and Why You Can't Afford to Be Left Behind by Charles Babcock(4437)
The Ruby Workshop by Akshat Paul Peter Philips Dániel Szabó and Cheyne Wallace(4316)
The Age of Surveillance Capitalism by Shoshana Zuboff(3977)
Python for Security and Networking - Third Edition by José Manuel Ortega(3878)
The Ultimate Docker Container Book by Schenker Gabriel N.;(3536)
Learn Windows PowerShell in a Month of Lunches by Don Jones(3528)
Learn Wireshark by Lisa Bock(3495)
Mastering Python for Networking and Security by José Manuel Ortega(3376)
Mastering Azure Security by Mustafa Toroman and Tom Janetscheck(3353)
Blockchain Basics by Daniel Drescher(3322)
