Skip to content

Commit

Permalink
fix: update instance type for workshop
Browse files Browse the repository at this point in the history
  • Loading branch information
yanbasic committed Dec 19, 2023
1 parent ba9080d commit 96a175e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/api-deployment/ai-solution-kit-workshop-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ export class AISolutionKitStack extends Stack {
ecrDeployment: ecrDeployment,
updateCustomResourceProvider: updateCustomResourceProvider,
ecrRegistry: props?.ecrRegistry,
instanceType: 'ml.g5.xlarge',
});
(advancedOCRSageMaker.nestedStackResource as CfnStack).cfnOptions.condition = cfnTemplate.getCondition('ConditionAdvancedOCRSageMaker');
this.addOutput(cfnTemplate, api.restApiId, 'advanced-ocr-ml', 'Advanced OCR - Multilingual', 'ConditionAdvancedOCRSageMaker');
Expand All @@ -184,6 +185,7 @@ export class AISolutionKitStack extends Stack {
ecrDeployment: ecrDeployment,
updateCustomResourceProvider: updateCustomResourceProvider,
ecrRegistry: props.ecrRegistry,
instanceType: 'ml.g5.xlarge',
});
(customOCRSageMakerFeatureNestedStack.nestedStackResource as CfnStack).cfnOptions.condition = cfnTemplate.getCondition('ConditionCustomOCRSageMaker');
this.addOutput(cfnTemplate, api.restApiId, 'custom-ocr-ml', 'Custom OCR SageMaker', 'ConditionCustomOCRSageMaker');
Expand Down Expand Up @@ -211,6 +213,7 @@ export class AISolutionKitStack extends Stack {
ecrDeployment: ecrDeployment,
updateCustomResourceProvider: updateCustomResourceProvider,
ecrRegistry: props.ecrRegistry,
instanceType: 'ml.g5.xlarge',
});
(generalNLUSageMaker.nestedStackResource as CfnStack).cfnOptions.condition = cfnTemplate.getCondition('ConditionGeneralNLUSageMaker');
this.addOutput(cfnTemplate, api.restApiId, 'general-nlu-ml', 'General NLU SageMaker', 'ConditionGeneralNLUSageMaker');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class AdvancedOCRSageMakerFeatureNestedStack extends FeatureNestedStack {
featureName: `${featureName}`,
featureCategory: 'media',
updateCustomResourceProvider: props.updateCustomResourceProvider,
sageMakerInstanceType: 'ml.g4dn.xlarge',
sageMakerInstanceType: props.instanceType == null ? 'ml.g4dn.xlarge' : props.instanceType,
sageMakerEcrDeployment: props.ecrDeployment,
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class CustomOCRSageMakerFeatureNestedStack extends FeatureNestedStack {
featureName: `${featureName}`,
featureCategory: 'media',
updateCustomResourceProvider: props.updateCustomResourceProvider,
sageMakerInstanceType: 'ml.g4dn.xlarge',
sageMakerInstanceType: props.instanceType == null ? 'ml.g4dn.xlarge' : props.instanceType,
sageMakerEcrDeployment: props.ecrDeployment,
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class GeneralNLUSageMakerFeatureNestedStack extends FeatureNestedStack {
featureName: `${featureName}`,
featureCategory: 'media',
updateCustomResourceProvider: props.updateCustomResourceProvider,
sageMakerInstanceType: 'ml.g4dn.xlarge',
sageMakerInstanceType: props.instanceType == null ? 'ml.g4dn.xlarge' : props.instanceType,
sageMakerEcrDeployment: props.ecrDeployment,
});
}
Expand Down

0 comments on commit 96a175e

Please sign in to comment.