[英]How can I get the CIDR block of the VPC selected by the user in CloudFormation?
我要求用戶選擇現有的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塊?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.