-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ecsPatterns.ApplicationLoadBalancedFargateService: targetGroup cannot be declared. #30151
Comments
Hi @ZenergyBryson , thanks for reaching out. I tested the above scenario with this code and it worked fine for me. Sharing the code and snippet of synthesized template with mentioned properties as well -
I am not sue why you are facing this error. Plese feel free to correct me if you are trying to do something else . Also Could you please share the minimum reproducible code. |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one. |
Describe the issue
This is my first submission, so try not to rake me over the coals too harshly if this is a bug and not a documentation issue.
In the documentation,
targetGroup
shows up in the Properties table, along withloadBalancer
,certificate
, and other properties that CAN be assigned. I have verified I'm using CDK v2.141.0 on my local, and am reading the docs for 2.141.0, but when I try to rundiff
,synth
, ordeploy
I get this:error TS2345: Argument of type '{ loadBalancer: cdk.aws_elasticloadbalancingv2.IApplicationLoadBalancer; targetGroup: cdk.aws_elasticloadbalancingv2.IApplicationTargetGroup; publicLoadBalancer: false; ... 14 more ...; openListener: false; }' is not assignable to parameter of type 'ApplicationLoadBalancedFargateServiceProps'.
Object literal may only specify known properties, and 'targetGroup' does not exist in type 'ApplicationLoadBalancedFargateServiceProps'.
179 targetGroup: jenkinsTargetGroup,
Links
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs_patterns.ApplicationLoadBalancedFargateService.html
The text was updated successfully, but these errors were encountered: