-
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
(ecs-patterns): omiting cluster and specifying only vpc results in an error #18519
Comments
I removed 3 tests that seem pointless, but I opened an issue to investigate further: #18519 It really seems like the scenario they were testing (omiting the cluster and only providing vpc) is not a working scenario anyway. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
I removed 3 tests that seem pointless, but I opened an issue to investigate further: aws#18519 It really seems like the scenario they were testing (omiting the cluster and only providing vpc) is not a working scenario anyway. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
This looks like an issue with the
The This function is repeated in all base ec2 constructs. I'll keep digging into this |
+1, this construct is unusable without a provided cluster. It seems like the intent was to use capacity_provider_strategies but that is not in use right now. |
What is the problem?
The ecs-patterns README states that 'Instead of providing a cluster you can specify a VPC and CDK will create a new ECS cluster.' However, omiting the cluster prop and only provided a vpc results in an error. And there is not clear direction on how to do this properly.
So far I have noticed this issue with the following constructs. It might apply to more.
This might just be a miss in the documentation, and not missing functionality. I will need to dive deeper into this to find out.
Reproduction Steps
Synthesize and app with this sample code:
What did you expect to happen?
No errors, and it synthesizes an ECS service with a cluster created by the CDK.
What actually happened?
I get this error:
CDK CLI Version
1.139.0
Framework Version
No response
Node.js Version
12.22.7
OS
MacOS
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: