-
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
aws_batch_alpha: JobQueue uses wrong id for underlying CfnJobQueue #25248
Comments
Makes sense, thanks for reporting. @comcalvi do we want to change the id to |
definitely change the id to |
Should this be feature-flagged? |
My opinion is that given that this a change recently introduced (2.74) in an experimental package, and that apparently there are not many users of this new package version given the number of bugs that I've found for ECS on EC2 and that had not been reported yet I think not many people will care or notice the change if released soon. So I would not put it behind a feature flag. |
I don't think it needs to be behind a feature flag simply because this is not a stable package yet |
Closes #25248. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Describe the bug
With the new API in
aws_batch_alpha
thenode.defaultChild
property no longer returns the underlyingCfnJobQueue
.I tracked this to the fact that instead of using
'Resource'
as theid
for theCfnJobQueue
created inaws-cdk/packages/@aws-cdk/aws-batch-alpha/lib/job-queue.ts
Line 181 in 046d0fc
id
of the parentJobQueue
is used. Before rewritingJobQueue
for the new API it was'Resource'
.This also has the effect that the logical ID of a JobQueue changed with the new API, although there was no reason for it.
Expected Behavior
JobQueue
'snode.defaultChild
property returns the underlyingCfnJobQueue
.Current Behavior
JobQueue
'snode.defaultChild
property returnsundefined
.Reproduction Steps
Trivial
Possible Solution
Use the usual
'Resource'
string as theid
for theCfnJobQueue
.Additional Information/Context
No response
CDK CLI Version
2.76
Framework Version
2.76
Node.js Version
v16.18.1
OS
Linux
Language
Typescript
Language Version
4.9.5
Other information
No response
The text was updated successfully, but these errors were encountered: