-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
batch: job-definition-arn has trailing ':1' #26128
Labels
@aws-cdk/aws-batch
Related to AWS Batch
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Comments
alexiswl
added
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
labels
Jun 27, 2023
pahud
changed the title
(batch): (job-definition-arn has trailing ':1')
batch: job-definition-arn has trailing ':1'
Jun 27, 2023
pahud
added
p2
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
effort/medium
Medium work item – several days of effort
labels
Jun 27, 2023
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 |
|
This was referenced Jul 26, 2023
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
@aws-cdk/aws-batch
Related to AWS Batch
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
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: