When providing a configuration without specifying path the CloudFormation template generated looks like this:
"Conditions": [ { "Field": "path-pattern", "Values": [ "*" ] }, {} ],
Notice the extra {} at the end. CloudFormation does not like that empty {} and results in the following error:
A condition field must be specified (Service: AmazonElasticLoadBalancing; Status Code: 400; Error Code: ValidationError; Request ID: 38b48765-1bcf-43c1-b234-8232ef7546c1; Proxy: null).
The issue is in src/resources/protocol.ts line 109
When providing a configuration without specifying
path
the CloudFormation template generated looks like this:"Conditions": [ { "Field": "path-pattern", "Values": [ "*" ] }, {} ],
Notice the extra {} at the end. CloudFormation does not like that empty {} and results in the following error:A condition field must be specified (Service: AmazonElasticLoadBalancing; Status Code: 400; Error Code: ValidationError; Request ID: 38b48765-1bcf-43c1-b234-8232ef7546c1; Proxy: null).
The issue is in src/resources/protocol.ts line 109
Simply change the [{}] on that last line to [].
To work around this, I used this configuration:
But I should not have to do this.