dtz_containers_job
last updated: 2025-07-10
The dtz_containers_job
resource allows you to create, update, and delete container jobs in the DownToZero.cloud service.
Example Usage
resource "dtz_containers_job" "example" {
name = "my-container-job"
container_image = "docker.io/library/hello-world:latest"
schedule_type = "precise"
schedule_cron = "52 3 * * *" #daily at 03:52am
}
Schema
Required
name
(String) The name of the container job.container_image
(String) The Docker image to use for the job.schedule_type
(String) The type of schedule for the job.
Optional
container_pull_user
(String) The username for private image registry authentication.container_pull_pwd
(String, Sensitive) The password for private image registry authentication.schedule_repeat
(String) The repeat interval for the job (used whenschedule_type
is not “cron”).schedule_cron
(String) The cron expression for job scheduling (used whenschedule_type
is “precise”).schedule_cost_optimization
(String) Cost optimization settings for the job.
Read-Only
id
(String) The ID of this resource.
Import
Import is supported using the following syntax:
terraform import dtz_containers_job.example <job_id>