Configuring and using Terraform

Terraform configurations are in HashiCorp Configuration Language (HCL) and can also be JSON formatted. The configuration files normally end with .tf and they can be used to configure various things.

Read https://www.terraform.io/docs/configuration/syntax.html for understanding the syntax in detail. 

In the current sample, we will initialize the two cloud providers for us (AWS and OpenStack) and create a simple IaaC code, which will create resources in both the clouds.

Refer to the https://www.terraform.io/docs/providers/index.html for the configuration for each provider. 

We will create two files for the providers prov-os.tf and prov-aws.tf. The filenames can be anything as long as they end with the .tf  extension. ...

Get Hybrid Cloud for Architects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.