-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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): Unable to Specify Mount point and Volume in CDK for Batch Job #26622
Comments
You should be able to provide volumes to our ECS Container constructs, such as here. If you want to drop to the L1s, you will want to configure the JobDefinition.containerProperties Do either of these help your use case? |
Thanks for the reply. This is the relevant bit of the stack I have already created:
I'm not quite sure which properties I should use to specify the mount points and volume. I see the |
Volume prop takes in an array of |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
This is exactly what I was looking for. Thank you. |
|
Describe the bug
I have a working StepFunction that calls a couple of Batch jobs. These were configured using the console. I'm trying to automate the deployment of the workflow using CDK (TypeScript). I am unable to find the options to specify the mount points and volume configuration that's found in the console.
Specifically, if you are looking at the console and setting up an EC2-based job definition:
Linux and logging settings > Filesystem configuration > Additional configuration > Volumes configuration
, and similarly, next to itMount points configuration
.I am trying to do this with both
aws-cdk-lib/aws-batch
and@aws-cdk/aws-batch-alpha
(v2.89.0), but I can't find the right properties to specify.The Batch job is EC2-based and will run a container using a previously defined computer environments. The EBS storage cannot be restricted to 30 GB.
Expected Behavior
I can't find the appropriate classes to use in the documentation. I'm not sure if it's unimplemented or undocumented.
Current Behavior
Batch job cannot be created without these options.
Reproduction Steps
NA
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.79.0
Framework Version
No response
Node.js Version
16.20.1
OS
Ubuntu
Language
Typescript
Language Version
4.9.5
Other information
No response
The text was updated successfully, but these errors were encountered: