I am quite new to AWS and I am trying to launch a security group from and cloud formation: I have this in my parameters
NetworkStackName:
Description: "Network Stack Name which created connectivity resources (subnets, routing, etc)."
Type: String
Default: vpc-xxxx
And it is being referenced in my resources as follows
Resources:
JUMPsgID:
Type: 'AWS::EC2::SecurityGroup'
Properties:
VpcId:
Fn::ImportValue: !Sub "${NetworkStackName}:vpc-id"
when I try to lauch the template, I get this error
AWS::CloudFormation::Stack ROLLBACK_IN_PROGRESS No export named vpc-xxx:vpc-id found. Rollback requested by user.
I am sure it has something to do with this line Fn::ImportValue: !Sub "${NetworkStackName}:vpc-id" but I am not sure how to resolve this?