@awsless/awsless 0.0.273 → 0.0.275

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/bin.js CHANGED
@@ -697,7 +697,8 @@ var TypeSchema = z12.enum([
697
697
  "t4g.large",
698
698
  "t4g.xlarge",
699
699
  "t4g.2xlarge",
700
- "g4ad.xlarge"
700
+ "g4ad.xlarge",
701
+ "g4dn.xlarge"
701
702
  ]).describe(`The instance type.`);
702
703
  var CommandSchema = z12.string().describe(`The script you want to execute when the instance starts up.`);
703
704
  var CodeSchema = LocalDirectorySchema.describe(`The code directory that will be deployed to your instance.`);
@@ -712,6 +713,7 @@ var InstancesSchema = z12.record(
712
713
  image: ImageSchema,
713
714
  type: TypeSchema,
714
715
  code: CodeSchema,
716
+ user: z12.string().default("ec2-user"),
715
717
  command: CommandSchema.optional(),
716
718
  environment: EnvironmentSchema2.optional()
717
719
  })
@@ -3484,7 +3486,7 @@ var instanceFeature = defineFeature({
3484
3486
  const userData = new Output2([], (resolve) => {
3485
3487
  ctx.onReady(() => {
3486
3488
  combine([bucketName, ...Object.values(env)]).apply(([bucketName2]) => {
3487
- const u = "ec2-user";
3489
+ const u = props.user;
3488
3490
  const code2 = [
3489
3491
  `#!/bin/bash`,
3490
3492
  `cd /home/${u}`,
@@ -468,7 +468,8 @@ var TypeSchema2 = z15.enum([
468
468
  "t4g.large",
469
469
  "t4g.xlarge",
470
470
  "t4g.2xlarge",
471
- "g4ad.xlarge"
471
+ "g4ad.xlarge",
472
+ "g4dn.xlarge"
472
473
  ]).describe(`The instance type.`);
473
474
  var CommandSchema = z15.string().describe(`The script you want to execute when the instance starts up.`);
474
475
  var CodeSchema = LocalDirectorySchema.describe(`The code directory that will be deployed to your instance.`);
@@ -483,6 +484,7 @@ var InstancesSchema = z15.record(
483
484
  image: ImageSchema,
484
485
  type: TypeSchema2,
485
486
  code: CodeSchema,
487
+ user: z15.string().default("ec2-user"),
486
488
  command: CommandSchema.optional(),
487
489
  environment: EnvironmentSchema2.optional()
488
490
  })