Skip to content

Commit e13dcc1

Browse files
authored
feat: enable NAT Gateway based on deploy type for AutoMQ BYOC (#29)
1 parent c62d9be commit e13dcc1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

aws.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ module "automq_byoc_vpc" {
4949
enable_dns_support = true
5050
enable_dns_hostnames = true
5151

52+
# NAT Gateway
53+
# if the deploy type is k8s, then enable_nat_gateway is true, single_nat_gateway is true
54+
enable_nat_gateway = var.automq_byoc_default_deploy_type == "k8s"
55+
single_nat_gateway = var.automq_byoc_default_deploy_type == "k8s"
56+
5257
tags = {
5358
automqVendor = "automq"
5459
automqEnvironmentID = var.automq_byoc_env_id

0 commit comments

Comments
 (0)