# The manifest for the "cron-job" job. # Read the full specification for the "Scheduled Job" type at: # https://aws.github.io/copilot-cli/docs/manifest/scheduled-job/ # Your job name will be used in naming your resources like log groups, ECS Tasks, etc. name: cron-job type: Scheduled Job # Trigger for your task. on: # The scheduled trigger for your job. You can specify a Unix cron schedule or keyword (@weekly) or a rate (@every 1h30m) # AWS Schedule Expressions are also accepted: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html schedule: "@every 1h" retries: 3 # Optional. The number of times to retry the job before failing. timeout: 1h # Optional. The timeout after which to stop the job if it's still running. You can use the units (h, m, s). # Configuration for your container and task. image: # Docker build arguments. For additional overrides: https://aws.github.io/copilot-cli/docs/manifest/scheduled-job/#image-build build: Dockerfile cpu: 256 # Number of CPU units for the task. memory: 512 # Amount of memory in MiB used by the task. # Optional fields for more advanced use-cases. # #variables: # Pass environment variables as key value pairs. # LOG_LEVEL: info #secrets: # Pass secrets from AWS Systems Manager (SSM) Parameter Store. # GITHUB_TOKEN: GITHUB_TOKEN # The key is the name of the environment variable, the value is the name of the SSM parameter. # You can override any of the values defined above by environment. #environments: # prod: # cpu: 2048 # Larger CPU value for prod environment.