简体   繁体   English

Amazon Intrinsic功能可从帐户中获取所有VPC以进行云形成

[英]Amazon Intrinsic function to get all the VPC from an account for cloud formation

For a CloudFormation script, I need a function that will get all the available VPC IDs from the account that is executing that script. 对于CloudFormation脚本,我需要一个函数,该函数将从正在执行该脚本的帐户中获取所有可用的VPC ID。

I would like the user to select from the list of existing VPCs, in the same way that you have for example when launching an EC2 instance (networking combobox). 我希望用户以与启动EC2实例(网络组合框)时相同的方式从现有VPC列表中进行选择。

Use the AWS-specific parameter type , AWS::EC2::VPC::Id : 使用特定AWS的参数类型 AWS::EC2::VPC::Id

For AWS-specific parameter types, template users must specify existing AWS values that are in their account. 对于特定于AWS的参数类型,模板用户必须指定其帐户中的现有AWS值。

Example: 例:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM