Implementing Modern DevOps: Enabling IT organizations to deliver faster and smarter by David Gonzalez
Author:David Gonzalez [Gonzalez, David]
Language: eng
Format: azw3
Publisher: Packt Publishing
Published: 2017-10-04T04:00:00+00:00
The IP was associated with our VM, as expected.
Terraform variables
One thing we did not mention earlier is the fact that Terraform can work with variables. Take a look at the following definition:
provider "google" {
credentials = "${file("xxx.json")}"
project = "implementing-modern-devops"
region = "europe-west1"
}
This is the configuration of our provider. There are few strings that, quite likely, are going to be used in other places, such as the region or the name of the project. Terraform has the concept of variable, which is a value that is susceptible to change so we can extract it into a separated file. Up until now, we have created a file called resources.tf. Let's create a file called vars.tf with the following content:
variable "project_name" {
type = "string"
default = "implementing-modern-devops"
}
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.
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7763)
Filmora Efficient Editing by Alexander Zacharias(5773)
The Infinite Retina by Robert Scoble Irena Cronin(5249)
Learn Wireshark - Fundamentals of Wireshark. by Lisa Bock(3971)
Linux Device Driver Development Cookbook by Rodolfo Giometti(3935)
Edit Like a Pro with iMovie by Regit(3421)
Linux Administration Best Practices by Scott Alan Miller(2858)
Linux Command Line and Shell Scripting Techniques by Vedran Dakic & Jasmin Redzepagic(2835)
MCSA Windows Server 2016 Study Guide: Exam 70-740 by William Panek(2520)
Mastering PowerShell Scripting - Fourth Edition by Chris Dent(2395)
Docker on Windows by Stoneman Elton(2317)
Kali Linux - An Ethical Hacker's Cookbook: End-to-end penetration testing solutions by Sharma Himanshu(2313)
Creative Projects for Rust Programmers by Carlo Milanesi(2242)
Hands-On AWS Penetration Testing with Kali Linux by Karl Gilbert(2107)
Hands-On Linux for Architects by Denis Salamanca(2051)
Programming in C (4th Edition) (Developer's Library) by Stephen G. Kochan(2004)
Computers For Seniors For Dummies by Nancy C. Muir(1996)
The Old New Thing by Raymond Chen(1940)
Linux Kernel Debugging by Kaiwan N Billimoria(1762)
