jobs: {
	pass: {
		env: {
			PASS: "secret://zzz/password"
		}
		image: "public.ecr.aws/docker/library/busybox:latest"
		files: "/run.sh": """
			#!/bin/sh
			cat << EOF > /run/secrets/output
			{
			    "type": "basic",
			    "data": {
			        "key": "$(echo -n value | base64)",
			        "pass": "$(echo -n $PASS | base64)"
			    }
			}
			EOF
			"""
		cmd: ["sh", "/run.sh"]
	}
	cronpass: {schedule: "* * * * *"} & pass
}

secrets: {
	zzz: {
		type: "basic"
		data: {
			password: "static"
		}
	}
	gen: {
		type: "generated"
		params: {
			format: "json"
			job:    "pass"
		}
	}
	gen2: {
		type: "generated"
		params: {
			format: "json"
			job:    "cronpass"
		}
	}
}
