gpt4 book ai didi

amazon-web-services - Amazon Intrinsic 函数可从一个帐户获取所有 VPC 以进行云形成

转载 作者:行者123 更新时间:2023-12-03 07:32:39 25 4
gpt4 key购买 nike

对于 CloudFormation 脚本,我需要一个函数来从执行该脚本的账户获取所有可用的 VPC ID。

我希望用户从现有 VPC 列表中进行选择,就像启动 EC2 实例(网络组合框)时的方式一样。

最佳答案

使用AWS-specific parameter type , AWS::EC2::VPC::Id:

For AWS-specific parameter types, template users must specify existing AWS values that are in their account.

示例:

Parameters: 
VPCId:
Type: AWS::EC2::VPC::Id

关于amazon-web-services - Amazon Intrinsic 函数可从一个帐户获取所有 VPC 以进行云形成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43048599/

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