Terraform module to build a on-premise to aloud active-active high-availability networking architecture on Alibaba Cloud
English | 简体中文
This solution supports the use of 3rd SDWAN to build a on-premise to aloud active-active high-availability networking architecture. The high availability implementation of this solution relies on the BGP.
Support creat:
- Transit VPC, business VPC, and corresponding subnet
- Security group for SDWAN image instance
- SDWAN brand fortigate image instance (fortigate 7.2.7vm image). You can also choose other SDWAN brand that support function "bgp over ipsec" to implement this solution.
- SDWAN Image instance configures a secondary network card for intranet communication
- CEN instance
- VPC attachment to CEN and implement route learning and route synchronization
- IPsec vpn attachment to CEN and implements route learning and route synchronization
Architecture Diagram:
provider "alicloud" {
region = "cn-shanghai"
}
module "complete" {
source = "alibabacloud-automation/build-local-to-cloud-active-active-connection-with-sdwan/alicloud"
business_vpc = {
vpc_name = "business_vpc"
cidr_block = "10.1.0.0/16"
vswitches = [{
cidr_block = "10.1.1.0/24"
zone_id = "cn-shanghai-m"
}, {
cidr_block = "10.1.2.0/24"
zone_id = "cn-shanghai-n"
}]
}
transit_vpc = {
vpc_name = "transit_vpc"
cidr_block = "172.16.0.0/16"
vswitches = [{
cidr_block = "172.16.0.0/24"
zone_id = "cn-shanghai-m"
}, {
cidr_block = "172.16.1.0/24"
zone_id = "cn-shanghai-n"
}]
}
transit_router_cidr = "10.10.10.0/24"
instance_config = {
image_id = "m-uf6c1shi2lk1xt196ybz"
}
vpn_attachment = {
local_subnet = "0.0.0.0/0"
remote_subnet = "0.0.0.0/0"
}
}
Name | Version |
---|---|
terraform | >= 1.3 |
Name | Version |
---|---|
alicloud | n/a |
No modules.
Name | Description | Type | Default | Required |
---|---|---|---|---|
business_vpc | The parameters of business vpc and vswitches. | object({ |
n/a | yes |
cen_config | The parameters of cen. | object({ |
{} |
no |
eni_name_prefix | The name of ecs network interface. | string |
"eni" |
no |
instance_config | The parameters of instance. | object({ |
n/a | yes |
security_group_name | The name of security group. | string |
null |
no |
transit_router_cidr | The cidr of transit router. | string |
n/a | yes |
transit_vpc | The parameters of transit vpc and vswitches. | object({ |
n/a | yes |
vpc_customer_gateway | The parameters of vpc customer gateway. | object({ |
{ |
no |
vpn_attachment | The parameters of the VPN attachment | object({ |
n/a | yes |
Name | Description |
---|---|
business_vpc_id | The ID of the business VPC |
business_vswitch_ids | List of IDs for business VSwitches |
cen_instance_id | The ID of the CEN instance |
cen_transit_router_business_vpc_attachment_id | The attachment ID of the CEN transit router and business VPC |
cen_transit_router_id | The ID of the CEN transit router |
cen_transit_router_transit_vpc_attachment_id | The attachment ID of the CEN transit router and transit VPC |
instance_ids | List of instance IDs in the transit VPC |
network_interface_ids | List of network interface IDs |
security_group_id | The ID of the security group |
transit_router_vpn_attachment_ids | List of transit router VPN attachment IDs |
transit_vpc_id | The ID of the transit VPC |
transit_vswitch_ids | List of IDs for transit VSwitches |
vpn_attachment_ids | List of VPN attachment IDs |
vpn_customer_gateway_ids | List of VPN customer gateway IDs |
If you have any problems when using this module, please opening a provider issue and let us know.
Note: There does not recommend opening an issue on this repo.
Created and maintained by Alibaba Cloud Terraform Team(terraform@alibabacloud.com).
MIT Licensed. See LICENSE for full details.