-
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-stepfunctions-tasks: SageMakerCreateTrainingJob does not correctly support empty inputDataConfig #31132
aws-stepfunctions-tasks: SageMakerCreateTrainingJob does not correctly support empty inputDataConfig #31132
Comments
@Stoggles Good afternoon. Per my understanding, one needs to provide input source for training the model in Sagemaker. Although, Amazon Sagemaker > CreateTrainingJob API reference specifies InputDataConfig as not required, this could be a API reference documentation issue. Most of the examples I have searched around so far specify For validation, are you able to create training job using any of the available AWS SDKs or AWS CLI, without providing the InputDataConfig? Thanks, |
I can confirm that SageMaker will accept and run jobs without The latest JavaScript SDK does not mark The latest AWS CLI reference also does not mark |
inputDataConfig is defined in L2 aws-stepfunctions-tasks construct. |
…ly support empty inputDataConfig (#31210) ### Issue # (if applicable) Closes #31132. ### Reason for this change `inputDataConfig` is not a required property in the API: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html#sagemaker-CreateTrainingJob-request-InputDataConfig However in `SageMakerCreateTrainingJob`, it's marked as required. We should make it align with the API. ### Description of changes Make the property optional. ### Description of how you validated changes unit test and integration test ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Comments on closed issues and PRs are hard for our team to see. |
…ly support empty inputDataConfig (aws#31210) ### Issue # (if applicable) Closes aws#31132. ### Reason for this change `inputDataConfig` is not a required property in the API: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html#sagemaker-CreateTrainingJob-request-InputDataConfig However in `SageMakerCreateTrainingJob`, it's marked as required. We should make it align with the API. ### Description of changes Make the property optional. ### Description of how you validated changes unit test and integration test ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
…ly support empty inputDataConfig (aws#31210) ### Issue # (if applicable) Closes aws#31132. ### Reason for this change `inputDataConfig` is not a required property in the API: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html#sagemaker-CreateTrainingJob-request-InputDataConfig However in `SageMakerCreateTrainingJob`, it's marked as required. We should make it align with the API. ### Description of changes Make the property optional. ### Description of how you validated changes unit test and integration test ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
…ly support empty inputDataConfig (#31210) ### Issue # (if applicable) Closes #31132. ### Reason for this change `inputDataConfig` is not a required property in the API: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html#sagemaker-CreateTrainingJob-request-InputDataConfig However in `SageMakerCreateTrainingJob`, it's marked as required. We should make it align with the API. ### Description of changes Make the property optional. ### Description of how you validated changes unit test and integration test ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Describe the bug
inputDataconfig
is incorrectly marked as a required field onSageMakerCreateTrainingJobProps
. Forcing this value to undefined throws aCannot read properties of undefined
error.An empty list is not accepted by SageMaker:
Relevant SageMakerCreateTrainingJob docs: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html#sagemaker-CreateTrainingJob-request-InputDataConfig
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
A valid
SageMakerCreateTrainingJob
step function task can be created wheninputDataConfig
is undefined.Current Behavior
SageMakerCreateTrainingJob
throws an error wheninputDataConfig
is undefined.Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.151.0 (build b8289e2)
Framework Version
No response
Node.js Version
Node.js v20.12.2
OS
macOS 14.6.1
Language
TypeScript
Language Version
5.5.4
Other information
No response
The text was updated successfully, but these errors were encountered: