Untitled
unknown
plain_text
3 years ago
661 B
10
Indexable
import boto3
# Create a SageMaker Processing job
processing_job_name = "my-processing-job"
# Set up the ECR image for your script
image_uri = "<your-ecr-image-uri>"
# Set up the parameters for your script
script_parameters = [
{
"Name": "--current-date",
"Value": "2022-12-08"
}
]
# Create a SageMaker client
sagemaker = boto3.client("sagemaker")
# Create a SageMaker Processing job
response = sagemaker.create_processing_job(
ProcessingJobName=processing_job_name,
AppSpecification={"ImageUri": image_uri, "ContainerArguments": script_parameters},
RoleArn="<your-sagemaker-execution-role-arn>"
)Editor is loading...