@awsless/cli 0.0.11 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.json +1 -1
- package/dist/app.stage.json +1 -1
- package/dist/bin.js +4 -7
- package/dist/build-json-schema.js +2 -2
- package/dist/prebuild/icon/bundle.zip +0 -0
- package/dist/prebuild/image/bundle.zip +0 -0
- package/dist/prebuild/on-error-log/bundle.zip +0 -0
- package/dist/prebuild/on-failure/bundle.zip +0 -0
- package/dist/prebuild/rpc/bundle.zip +0 -0
- package/dist/stack.json +1 -1
- package/dist/stack.stage.json +1 -1
- package/package.json +10 -10
package/dist/bin.js
CHANGED
|
@@ -1807,7 +1807,7 @@ var CodeSchema2 = z26.union([
|
|
|
1807
1807
|
FileCodeSchema2
|
|
1808
1808
|
]).describe("Specify the code of your job.");
|
|
1809
1809
|
var TimeoutSchema3 = DurationSchema.describe("The maximum time the job is allowed to run before being stopped.");
|
|
1810
|
-
var ImageSchema = z26.string().describe("The URL of the container image to use.");
|
|
1810
|
+
var ImageSchema = z26.string().describe("The URL of the container image to use. Default: public.ecr.aws/aws-cli/aws-cli:{architecture}");
|
|
1811
1811
|
var PersistentStorageSchema = z26.boolean().describe("Mount persistent storage for the job at a fixed internal path.");
|
|
1812
1812
|
var StartupCommandSchema = z26.union([z26.string().transform((v) => [v]), z26.string().array()]).describe("Optional shell commands to run before the job executable is downloaded and started.");
|
|
1813
1813
|
var ASchema = z26.object({
|
|
@@ -1916,7 +1916,7 @@ var PermissionSchema3 = z27.object({
|
|
|
1916
1916
|
});
|
|
1917
1917
|
var PermissionsSchema3 = z27.union([PermissionSchema3.transform((v) => [v]), PermissionSchema3.array()]).describe("Add IAM permissions to your instance.");
|
|
1918
1918
|
var DescriptionSchema2 = z27.string().describe("A description of the instance.");
|
|
1919
|
-
var ImageSchema2 = z27.string().optional().describe("The URL of the container image to use.");
|
|
1919
|
+
var ImageSchema2 = z27.string().optional().describe("The URL of the container image to use. Default: public.ecr.aws/aws-cli/aws-cli:{architecture}");
|
|
1920
1920
|
var validLogRetentionDays3 = [
|
|
1921
1921
|
...[1, 3, 5, 7, 14, 30, 60, 90, 120, 150],
|
|
1922
1922
|
...[180, 365, 400, 545, 731, 1096, 1827, 2192],
|
|
@@ -7330,7 +7330,7 @@ var createFargateJob = (parentGroup, ctx, ns, id, local) => {
|
|
|
7330
7330
|
});
|
|
7331
7331
|
const shortName = shortId(`${ctx.app.name}:${ctx.stack.name}:${ns}:${id}:${ctx.appId}`);
|
|
7332
7332
|
const props = deepmerge4(ctx.appConfig.defaults.job, local);
|
|
7333
|
-
const image2 = props.image || "public.ecr.aws/
|
|
7333
|
+
const image2 = props.image || (props.architecture === "arm64" ? "public.ecr.aws/aws-cli/aws-cli:arm64" : "public.ecr.aws/aws-cli/aws-cli:amd64");
|
|
7334
7334
|
ctx.registerBuild("job", name, async (build3, { workspace }) => {
|
|
7335
7335
|
const fingerprint = [await generateFileHash2(workspace, local.code.file), props.architecture].join(":");
|
|
7336
7336
|
return build3(fingerprint, async (write) => {
|
|
@@ -7534,10 +7534,7 @@ var createFargateJob = (parentGroup, ctx, ns, id, local) => {
|
|
|
7534
7534
|
entryPoint: ["sh", "-c"],
|
|
7535
7535
|
command: [
|
|
7536
7536
|
[
|
|
7537
|
-
...props.startupCommand?.length ? (
|
|
7538
|
-
const setupHash = createHash4("sha1").update(props.startupCommand.join(" && ")).digest("hex").slice(0, 8);
|
|
7539
|
-
return [`if [ ! -f /root/.setup-done-${setupHash} ]; then ${props.startupCommand.join(" && ")} && touch /root/.setup-done-${setupHash}; fi`];
|
|
7540
|
-
})() : [],
|
|
7537
|
+
...props.startupCommand?.length ? [props.startupCommand.join(" && ")] : [],
|
|
7541
7538
|
`if [ "$(cat /root/.code-hash 2>/dev/null)" != "$CODE_HASH" ]; then command -v aws >/dev/null 2>&1 || dnf install -y awscli && aws s3 cp s3://${s3Bucket}/${s3Key} /root/program.tmp && mv /root/program.tmp /root/program && chmod +x /root/program && echo "$CODE_HASH" > /root/.code-hash; fi`,
|
|
7542
7539
|
`exec timeout --kill-after=10 ${toSeconds9(props.timeout)} /root/program`
|
|
7543
7540
|
].join(" && ")
|
|
@@ -865,7 +865,7 @@ var CodeSchema2 = z22.union([
|
|
|
865
865
|
FileCodeSchema2
|
|
866
866
|
]).describe("Specify the code of your job.");
|
|
867
867
|
var TimeoutSchema3 = DurationSchema.describe("The maximum time the job is allowed to run before being stopped.");
|
|
868
|
-
var ImageSchema = z22.string().describe("The URL of the container image to use.");
|
|
868
|
+
var ImageSchema = z22.string().describe("The URL of the container image to use. Default: public.ecr.aws/aws-cli/aws-cli:{architecture}");
|
|
869
869
|
var PersistentStorageSchema = z22.boolean().describe("Mount persistent storage for the job at a fixed internal path.");
|
|
870
870
|
var StartupCommandSchema = z22.union([z22.string().transform((v) => [v]), z22.string().array()]).describe("Optional shell commands to run before the job executable is downloaded and started.");
|
|
871
871
|
var ASchema = z22.object({
|
|
@@ -974,7 +974,7 @@ var PermissionSchema3 = z23.object({
|
|
|
974
974
|
});
|
|
975
975
|
var PermissionsSchema3 = z23.union([PermissionSchema3.transform((v) => [v]), PermissionSchema3.array()]).describe("Add IAM permissions to your instance.");
|
|
976
976
|
var DescriptionSchema2 = z23.string().describe("A description of the instance.");
|
|
977
|
-
var ImageSchema2 = z23.string().optional().describe("The URL of the container image to use.");
|
|
977
|
+
var ImageSchema2 = z23.string().optional().describe("The URL of the container image to use. Default: public.ecr.aws/aws-cli/aws-cli:{architecture}");
|
|
978
978
|
var validLogRetentionDays3 = [
|
|
979
979
|
...[1, 3, 5, 7, 14, 30, 60, 90, 120, 150],
|
|
980
980
|
...[180, 365, 400, 545, 731, 1096, 1827, 2192],
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|