-
Notifications
You must be signed in to change notification settings - Fork 3
/
cisco-aws-azure-vpn.tf
33 lines (30 loc) · 1.44 KB
/
cisco-aws-azure-vpn.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
variable "cisco_user" { default = "mesosphere" }
variable "cisco_password" { default = "MesosphereR0cks" }
variable "cisco_azure_instance_type" { default = "Standard_A4m_v2"}
variable "cisco_aws_instance_type" { default = "c4.4xlarge"}
module "aws_azure_cisco_vpn_connecter" {
source = "modules/cisco-csr-aws-oneshot"
vpc_id = "${aws_vpc.default.id}"
aws_region = "${var.aws_region}"
aws_profile = "${var.aws_profile}"
ssh_key_name = "${var.ssh_key_name}"
aws_instance_type = "${var.cisco_aws_instance_type}"
cisco_azure_instance_type = "${var.cisco_azure_instance_type}"
azure_region = "${var.azure_region}"
vnet_name = "${azurerm_virtual_network.vnet.name}"
rg_name = "${azurerm_resource_group.dcos.name}"
owner = "${coalesce(var.owner, data.external.whoami.result["owner"])}"
expiration = "${var.expiration}"
aws_docker_utility_node = "${aws_instance.bootstrap.public_ip}"
aws_docker_utility_node_username = "${module.aws-tested-oses.user}"
azure_docker_utility_node = "${azurerm_public_ip.bootstrap_public_ip.fqdn}"
azure_docker_utility_node_username = "${module.azure-tested-oses.user}"
cisco_user = "${var.cisco_user}"
cisco_password = "${var.cisco_password}"
}
output "AWS Cisco CSR VPN Router Public IP Address" {
value = "${module.aws_azure_cisco_vpn_connecter.aws_public_ip_address}"
}
output "Azure Cisco CSR VPN Router Public IP Address" {
value = "${module.aws_azure_cisco_vpn_connecter.azure_public_ip_address}"
}