gpt4 book ai didi

amazon-web-services - Terraform 是否支持 VPC 的辅助 CIDR?

转载 作者:行者123 更新时间:2023-12-04 08:08:00 26 4
gpt4 key购买 nike

我想为我的 VPC 分配一个辅助 CIDR block ,但不知道如何使用 terraform 实现这一点。

来自 AWS 文档:http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html

Adding IPv4 CIDR Blocks to a VPC

You can associate secondary IPv4 CIDR blocks with your VPC. When you associate a CIDR block with your VPC, a route is automatically added to your VPC route tables to enable routing within the VPC (the destination is the CIDR block and the target is local).

有人知道这是否受支持吗?

谢谢!

最佳答案

您可以引用有关此 here 的文档

When a VPC is created, a primary IPv4 CIDR block for the VPC must be specified. The aws_vpc_ipv4_cidr_block_association resource allows further IPv4 CIDR blocks to be added to the VPC

关于amazon-web-services - Terraform 是否支持 VPC 的辅助 CIDR?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47164229/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com