March 2018
Intermediate to advanced
376 pages
7h 25m
English
$ vi main.tfvariable "stack_name" { default = "MyTestMachine"}variable "aws_region" { default = "us-east-1" }variable "instance_type" { default = "t2.micro" }variable "instance_count" { default = "1" }variable "route53_zone_id"variable "security_group_id"provider "aws" { region = "${var.aws_region}"}module "MyTestMachine" { source = "./ec2_nodes" instance_type = "${var.instance_type}" stack_name = "${var.stack_name}" role = "MyTestMachine" count = "1" security_group_id = "${var.security_group_id}"}resource "aws_route53_record" "MyTestMachine" { zone_id = "${var.route53_zone_id}" ...