Create

Create a reusable shell command that can be scheduled, run manually, or set as predeploy steps. These commands run as one-off ECS tasks with the specified CPU, memory, and Docker image settings.

tapit create command name=command-name 'command to run' [schedule='cron-expression'] [memory|cpu|image|image_tag|max_hours|ephemeral_storage_gb]=value [description='text'] [--ignore-existing]

Arguments

  • ‘command to run’ - The shell command to execute

Required

  • name

Parameters

  • name: Name for the command (required, alphanumeric with hyphens)
  • schedule: Cron expression for scheduled execution (e.g., ‘0 * * * *’)
  • memory: Memory allocation in GB (default: 2.0, sandbox limit: 1.0)
  • cpu: CPU allocation in vCPUs (default: 1.0, sandbox limit: 0.25)
  • image: Custom Docker image to use
  • image_tag: Docker image tag to use (alias: tag)
  • max_hours: Maximum runtime in hours
  • ephemeral_storage_gb: Ephemeral storage size in GB
  • description: Description of what the command does
  • --ignore-existing: Skip creation if a resource with the same name already exists (useful for idempotent scripts)