Skip to content
Discussion options

You must be logged in to vote

Either your port or protocol must be defined on your ApplicationTargetGroup, so that the port can be known. The implementation we have is a bit buggy in that we are running this code without first verifying that the port is defined, leading to an unhelpful error message

public registerConnectable(connectable: ec2.IConnectable, portRange?: ec2.Port) {
portRange = portRange || ec2.Port.tcp(this.defaultPort);

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@bolsote
Comment options

Answer selected by bolsote
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants