02/05/2021, 9:47 PM
Folks, i am getting this error while creating load balancer. The load balancer attribute for vpcid is coming as a string from aws cli as a str.
error: 1 error occurred:
    	* Error creating LB Target Group: ValidationError: 1 validation error detected: Value 'vpc-012345678abc
    ' at 'targetGroup.vpcId' failed to satisfy constraint: Member must satisfy regular expression pattern: (?i)vpc-[a-zA-Z0-9]+
    	status code: 400, request id: bb8f4f52-***
it works when i am using hardcoded vpcid value, but fails while retrieving using dynamic way. Not sure why it’s failing.