-
Notifications
You must be signed in to change notification settings - Fork 4
Submitting Jobs
Alexandre Henrique Afonso Campos edited this page Feb 15, 2023
·
3 revisions
You can submit yourself a job to check behaviors and check logs
aws batch \
submit-job \
--job-name sanity-check-manual \
--job-queue sanity-check-cron-job-queue-prod \
--job-definition sanity-check-job-definition-prod \
--container-overrides 'environment=[{name=service.mail.to,value=YOUR_EMAIL@worldcubeassociation.org}]'
- --job-name: it can be anything, really
- --job-queue: defined in the IAC
- --job-definition: Also defined in the IAC
The WRT leader also received instructions to submit this jobs, although they differ a bit.
AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY aws batch \
submit-job \
--job-name sanity-check-manual \
--job-queue arn:aws:batch:us-west-2:{{ACCOUNT_ID}}:job-queue/sanity-check-cron-job-queue-prod \
--job-definition arn:aws:batch:us-west-2:{{ACCOUNT_ID}}:job-definition/sanity-check-job-definition-prod \
--region us-west-2
The previous security keys is probably useless, as they were taken from here.
You can generate a new credentials for the WRT leader by doing it in the IAM console in AWS. Look for WRT.