-
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: EksContainerDefinition image from ECR raises RuntimeError: Cannot read property 'obtainExecutionRole' of undefined #28417
Comments
I reproduced this in typescript. Error message below:
The bind() essentually creates EcrImage() aws-cdk/packages/aws-cdk-lib/aws-ecs/lib/container-image.ts Lines 22 to 24 in 52a5579
which expects ecs task definition
But obviously eks container def does not have that. |
I found workaround:
|
@zaremb Thank you! Nice workaround! |
Describe the bug
When specifying EKS task in batch module like this:
part
ecs.ContainerImage.from_ecr_repository
raisesRuntimeError: Cannot read property 'obtainExecutionRole' of undefined
.CDK version: CDK_CLI_VERSION: '2.115.0', Python
Expected Behavior
Image is successfully set
Current Behavior
Reproduction Steps
Run CDK synth with the code above
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.115.0 (build 58027ee)
Framework Version
No response
Node.js Version
v16.0.0
OS
Amazon Linux
Language
Python
Language Version
3.11
Other information
No response
The text was updated successfully, but these errors were encountered: