Skip to content

Commit

Permalink
Fix remote state syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
lhercot committed Oct 6, 2020
1 parent 0962e3a commit d8cae03
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@ data "terraform_remote_state" "network" {
backend = "remote"
config = {
organization = var.org
workspaces {
workspaces = {
name = var.network_workspace
}
}
}

terraform {
required_providers {
aws = {
source = "hashicorp/aws"
}
}
}

# Deploy VM to On-Premises site
module "demo_vm" {
source = "app.terraform.io/cisco-dcn-ecosystem/demo_vm/vsphere"
Expand All @@ -31,4 +39,9 @@ module "demo-azure" {
virtual_network_name = data.terraform_remote_state.network.outputs.virtual_network_name
vm_resource_group_name = "VMs_WoS_TF-Hybrid_Cloud_VRF_westus"
net_resource_group_name = data.terraform_remote_state.network.outputs.resource_group_name
}

provider "aws" {
# Configuration options
region = "us-west-1"
}

0 comments on commit d8cae03

Please sign in to comment.