florins
florins

Reputation: 1655

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.

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).

Upvotes: 0

Views: 473

Answers (1)

wjordan
wjordan

Reputation: 20380

Use the 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.

Example:

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

Upvotes: 2

Related Questions