【发布时间】:2018-08-28 08:31:35
【问题描述】:
我要求用户选择现有的 VPC:
Parameters:
MyVPC:
Type: AWS::EC2::VPC::Id
然后在我的“资源”块中,我试图获取该 VPC 的 CIDR 块。
当我尝试这个时:
- Fn::GetAtt:
- MyVPC
- CidrBlock
我明白了:
Template error: instance of Fn::GetAtt references undefined resource MyVPC
我想这是因为从技术上讲 MyVPC 是一个参数而不是资源。
那么如何获取用户选择的 VPC 的 CIDR 块呢?
【问题讨论】:
标签: amazon-web-services amazon-cloudformation amazon-vpc