-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
42 lines (35 loc) · 1.02 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
variable "id_rsa_pub" {
description = "contents of id_rsa.pub file for SSH access"
}
variable "core_resource_group_name" {
description = "Name for core resource group"
default = "azure-vmss-core"
}
variable "location" {
description = "The location where resources are created"
default = "East US"
}
#Azure provider configured via Environment variables
provider "azurerm" {}
#Instantiate core module:
module "core" {
source = "app.terraform.io/CI-demo-org/vmss-module-core/azure"
version = "1.2"
location = "${var.location}"
core_resource_group_name = "${var.core_resource_group_name}"
tags = {
environment = "dev"
owner = "kawsar-at-hashicorp"
ttl = "24h"
app = "vmss-core"
client = "multiple"
}
id_rsa_pub = "${var.id_rsa_pub}"
}
output "jumpbox_public_ip" {
value = "${module.core.jumpbox_public_ip}"
}
#Declare output so it can be accessed from terraform_remote_state data source
output "app_subnet_id" {
value = "${module.core.app_subnet_id}"
}