使用Terraform在特定区域中创建Customer_gateway

时间:2020-03-18 19:45:23

标签: terraform terraform-provider-aws

我正在将我们的Site_to_Site VPN连接分布在多个区域中,并且在创建CGW时找不到有关如何指定区域的任何文档。下面将在我的默认us-east-1中创建它,但是我想在us-west-1和其他许多主机中创建它,但一次只能做一件事

resource "aws_customer_gateway" "cgw-singapore" {
    bgp_asn     = 65000
    ip_address  = "111.111.111.111"
    type        = "ipsec.1"

    tags = {
        Name =  "cgw-singapore"
    }

我尝试添加region = "us-west-1" but that fails,有人可以帮忙吗?

0 个答案:

没有答案