I hope this saves someone some headaches one day.
This is currently a known issue with CloudFormation in which you need to provide the VPC and Subnets as parameters to the stack when using AWS::CodeDeployBlueGreen
Transform.
Parameters:
VPC:
Type: AWS::EC2::VPC::Id
Subnet1:
Type: AWS::EC2::Subnet::Id
Subnet2:
Type: AWS::EC2::Subnet::Id
CLICK HERE to find out more related problems solutions.