-
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
batch: job-definition-arn has trailing ':1' #26128
Comments
Hi @pahud, thank you for getting back to me. Will use the job definition arn over the job definition name instead Putting this down to user error. Alexis |
|
Describe the bug
Hello,
I have created a CDK pipeline with the following stack
https://github.com/umccr/cttso-ica-to-pieriandx/blob/3f1de2c187c0587db97712920a02119d95054628/deploy/cttso-ica-to-pieriandx-cdk/lib/cttso-ica-to-pieriandx-batch-stack.ts
The job definition (https://github.com/umccr/cttso-ica-to-pieriandx/blob/3f1de2c187c0587db97712920a02119d95054628/deploy/cttso-ica-to-pieriandx-cdk/lib/cttso-ica-to-pieriandx-batch-stack.ts) has a jobDefinitionArn attribute,
This job definition arn attribute is added to a IAM Policy used by a lambda role to submit jobs to this batch stack (https://github.com/umccr/cttso-ica-to-pieriandx/blob/3f1de2c187c0587db97712920a02119d95054628/deploy/cttso-ica-to-pieriandx-cdk/lib/cttso-ica-to-pieriandx-batch-stack.ts#L464)
Unforunately this resulted in the following error at runtime
I then had a look at the policies for the lambda role (and the cloud formation outputs, since it has the jobAttributeArn as an output),
And the jobAttributeArn attribute generated by cloudFormation is
Which has a trailing
:1
???Expected Behavior
For the jobdefinition attribute ARN to be
not
Current Behavior
The stack definition can be found here
Reproduction Steps
I do not have a self-contained version of this error for reproduction
Possible Solution
I have no idea, I did not have this error when working with aws-cdk aws-batch-alpha v2.39.0
Additional Information/Context
No response
CDK CLI Version
2.85.0
Framework Version
No response
Node.js Version
16.13.0 (not sure what cdk on the self-mutating pipeline is using)
OS
Ubuntu
Language
Typescript
Language Version
TypeScript (5.1.3)
Other information
No response
The text was updated successfully, but these errors were encountered: