- Pseudo-parameters (for example, AWS::Region, AWS::AccountId) are automatic, built-in values you can reference without declaring them.
- Typed parameters (for example, AWS::EC2::VPC::Id) tell the console to present a list of existing resource identifiers from the region where the stack runs. This demo uses a typed parameter so you don’t need to hardcode a VPC ID.
Use the parameter type AWS::EC2::VPC::Id to let the CloudFormation console show available VPCs for the region where the stack runs. This is different from pseudo-parameters like AWS::Region.
References:
- AWS CloudFormation documentation
- AWS::EC2::VPC::Id parameter type details
- EC2 Security Group properties
- Define a new parameter named MyVPC with Type: AWS::EC2::VPC::Id.
- Reference the parameter using !Ref where the VpcId is required.
- Choose “Replace current template” → Upload the updated template or paste it into the console.
- On the stack details page, the MyVPC parameter will appear as a dropdown populated with VPCs from the selected region.



If you select a different VPC than the one currently used by the stack, CloudFormation may need to replace resources that cannot move between VPCs (for example, security groups). Resource replacements can take longer than a quick update—review the change set carefully before submitting.
- If you choose the same VPC that was already in use, the update may complete quickly because no effective resource changes are required.
- If you choose a different VPC, CloudFormation might recreate resources that are VPC-specific (security groups, network interfaces, etc.), which can increase update time.