I am trying to deploy VPC, subnets etc but I am getting the above error. I am not sure why I am getting this error. Here is the part of the template(yml) file where I am getting this error.
NATGateway:
Type: AWS::EC2::NatGateway
Properties:
AllocationId: !GetAtt ElasticIPAddress.AllocationId
SubnetId: !Ref PublicSubnetA
Tags:
- Key: Name
Value: !Sub NAT-${AWS::StackName}
thanks in Advance.