@awsless/awsless 0.0.273 → 0.0.274

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
@@ -712,6 +712,7 @@ var InstancesSchema = z12.record(
712
712
  image: ImageSchema,
713
713
  type: TypeSchema,
714
714
  code: CodeSchema,
715
+ user: z12.string().default("ec2-user"),
715
716
  command: CommandSchema.optional(),
716
717
  environment: EnvironmentSchema2.optional()
717
718
  })
@@ -3484,7 +3485,7 @@ var instanceFeature = defineFeature({
3484
3485
  const userData = new Output2([], (resolve) => {
3485
3486
  ctx.onReady(() => {
3486
3487
  combine([bucketName, ...Object.values(env)]).apply(([bucketName2]) => {
3487
- const u = "ec2-user";
3488
+ const u = props.user;
3488
3489
  const code2 = [
3489
3490
  `#!/bin/bash`,
3490
3491
  `cd /home/${u}`,
@@ -483,6 +483,7 @@ var InstancesSchema = z15.record(
483
483
  image: ImageSchema,
484
484
  type: TypeSchema2,
485
485
  code: CodeSchema,
486
+ user: z15.string().default("ec2-user"),
486
487
  command: CommandSchema.optional(),
487
488
  environment: EnvironmentSchema2.optional()
488
489
  })