diff --git a/components/aws/sagemaker/batch_transform/component.yaml b/components/aws/sagemaker/batch_transform/component.yaml index 780471f30781..82e966856bf7 100644 --- a/components/aws/sagemaker/batch_transform/component.yaml +++ b/components/aws/sagemaker/batch_transform/component.yaml @@ -74,7 +74,7 @@ outputs: - {name: output_location, description: 'S3 URI of the transform job results.'} implementation: container: - image: redbackthomson/aws-kubeflow-sagemaker:20191003 + image: redbackthomson/aws-kubeflow-sagemaker:20200402 command: ['python'] args: [ batch_transform.py, diff --git a/components/aws/sagemaker/common/_utils.py b/components/aws/sagemaker/common/_utils.py index 3dc2e3c7ba64..b7358825f5f4 100644 --- a/components/aws/sagemaker/common/_utils.py +++ b/components/aws/sagemaker/common/_utils.py @@ -52,9 +52,16 @@ # Get current directory to open templates __cwd__ = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))) + +def nullable_string_argument(value): + value = value.strip() + if not value: + return None + return value + def add_default_client_arguments(parser): parser.add_argument('--region', type=str.strip, required=True, help='The region where the training job launches.') - parser.add_argument('--endpoint_url', type=str.strip, required=False, help='The URL to use when communicating with the Sagemaker service.') + parser.add_argument('--endpoint_url', type=nullable_string_argument, required=False, help='The URL to use when communicating with the Sagemaker service.') def get_sagemaker_client(region, endpoint_url=None): """Builds a client to the AWS SageMaker API.""" diff --git a/components/aws/sagemaker/deploy/component.yaml b/components/aws/sagemaker/deploy/component.yaml index fce7a4f3bd9b..57fe96b3b006 100644 --- a/components/aws/sagemaker/deploy/component.yaml +++ b/components/aws/sagemaker/deploy/component.yaml @@ -79,7 +79,7 @@ outputs: - {name: endpoint_name, description: 'Endpoint name'} implementation: container: - image: redbackthomson/aws-kubeflow-sagemaker:20191003 + image: redbackthomson/aws-kubeflow-sagemaker:20200402 command: ['python'] args: [ deploy.py, diff --git a/components/aws/sagemaker/ground_truth/component.yaml b/components/aws/sagemaker/ground_truth/component.yaml index 47502f4494b0..07beb6665a1c 100644 --- a/components/aws/sagemaker/ground_truth/component.yaml +++ b/components/aws/sagemaker/ground_truth/component.yaml @@ -88,7 +88,7 @@ outputs: - {name: active_learning_model_arn, description: 'The ARN for the most recent Amazon SageMaker model trained as part of automated data labeling.'} implementation: container: - image: redbackthomson/aws-kubeflow-sagemaker:20191003 + image: redbackthomson/aws-kubeflow-sagemaker:20200402 command: ['python'] args: [ ground_truth.py, diff --git a/components/aws/sagemaker/hyperparameter_tuning/component.yaml b/components/aws/sagemaker/hyperparameter_tuning/component.yaml index d5ab8e421a01..f16ad36dac7b 100644 --- a/components/aws/sagemaker/hyperparameter_tuning/component.yaml +++ b/components/aws/sagemaker/hyperparameter_tuning/component.yaml @@ -139,7 +139,7 @@ outputs: description: 'The registry path of the Docker image that contains the training algorithm' implementation: container: - image: redbackthomson/aws-kubeflow-sagemaker:20191003 + image: redbackthomson/aws-kubeflow-sagemaker:20200402 command: ['python'] args: [ hyperparameter_tuning.py, diff --git a/components/aws/sagemaker/model/component.yaml b/components/aws/sagemaker/model/component.yaml index 5bc7a4d0770e..f1baad4130c5 100644 --- a/components/aws/sagemaker/model/component.yaml +++ b/components/aws/sagemaker/model/component.yaml @@ -45,7 +45,7 @@ outputs: - {name: model_name, description: 'The model name Sagemaker created'} implementation: container: - image: redbackthomson/aws-kubeflow-sagemaker:20191003 + image: redbackthomson/aws-kubeflow-sagemaker:20200402 command: ['python'] args: [ create_model.py, diff --git a/components/aws/sagemaker/train/component.yaml b/components/aws/sagemaker/train/component.yaml index 2a2fff8d432a..b0a589c9a6c0 100644 --- a/components/aws/sagemaker/train/component.yaml +++ b/components/aws/sagemaker/train/component.yaml @@ -103,7 +103,7 @@ outputs: - {name: training_image, description: 'The registry path of the Docker image that contains the training algorithm'} implementation: container: - image: redbackthomson/aws-kubeflow-sagemaker:20191003 + image: redbackthomson/aws-kubeflow-sagemaker:20200402 command: ['python'] args: [ train.py, diff --git a/components/aws/sagemaker/workteam/component.yaml b/components/aws/sagemaker/workteam/component.yaml index a794e0bf8d16..14bf67a065d9 100644 --- a/components/aws/sagemaker/workteam/component.yaml +++ b/components/aws/sagemaker/workteam/component.yaml @@ -27,7 +27,7 @@ outputs: - {name: workteam_arn, description: 'The ARN of the workteam.'} implementation: container: - image: redbackthomson/aws-kubeflow-sagemaker:20191003 + image: redbackthomson/aws-kubeflow-sagemaker:20200402 command: ['python'] args: [ workteam.py,