runtime_jobs_import
Read another platform's job into the Runtime jobs that run the same container: a Google Cloud Run job's YAML with the Cloud Scheduler job that runs it, or an AWS Batch job definition (API JSON, describe-job-definitions output or a CloudFormation template) with the EventBridge schedule or rule that submits it. Image, command and args, environment, secrets, CPU and memory, timeout, retries and schedule (EventBridge cron and rate expressions in five fields, in the schedule's time zone) are carried over; each job's image is a Dockerfile FROM the container image. Every setting that could not be carried over is a note that says why, and a job that would not run as it did (several tasks at once, a GPU, a mounted volume) is blocked. Changes nothing: runtime jobs import builds and creates the plan. Pass files as [{path, text}]. Returns from, jobs (each with name, sourceImage, dockerfile, env, secrets, compute, timeoutSeconds, retry, schedule, blocked) and notes (unmapped, changed, info). Then build each job's image from its dockerfile with runtime_images_build and create it with runtime_jobs action create, its command the image's start command.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Read the files as this platform's. Detected from the files when omitted. | |
| files | Yes | The platform's files, each with its name: a Cloud Run job's YAML (`gcloud run jobs describe --format export`) and the Cloud Scheduler job that runs it (`gcloud scheduler jobs describe --format yaml`); or an AWS Batch job definition (`register-job-definition` input, `describe-job-definitions` output or a CloudFormation template) and the EventBridge Scheduler schedule or EventBridge rule that submits it. At most 1 MiB of text in all. | |
| parameters | No | Values for a CloudFormation template's parameters and pseudo parameters, such as {"AWS::Region": "us-east-1", "AWS::AccountId": "123456789012"}, so values built with Ref, Fn::Join and Fn::Sub can be read. |