瀏覽代碼

bastion subnet_id as string not list

Roberto Barbosa 8 年之前
父節點
當前提交
b766dc4cb2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      main.tf

+ 1 - 1
main.tf

@@ -97,5 +97,5 @@ module "bastion" {
 
   vpc_id = "${var.vpc_id}"
   allowed_network="10.0.0.0/16"
-  subnet_public="${module.net.public_subnets}"
+  subnet_id="${element(module.net.private_subnets, 0)}"
 }