@awsless/awsless 0.0.305 → 0.0.306

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.
Files changed (2) hide show
  1. package/dist/bin.js +8 -7
  2. package/package.json +6 -6
package/dist/bin.js CHANGED
@@ -3468,12 +3468,15 @@ var instanceFeature = defineFeature({
3468
3468
  const u = props.user;
3469
3469
  const code2 = [
3470
3470
  `#!/bin/bash`,
3471
- `cd /home/${u}`,
3471
+ "sudo mkdir /var/infra",
3472
+ "sudo mkdir /var/code",
3473
+ "sudo chmod -R a+rwx /var/infra",
3474
+ "sudo chmod -R a+rwx /var/code",
3472
3475
  `sudo -E -u ${u} aws configure set default.s3.use_dualstack_endpoint true`,
3473
- `sudo -E -u ${u} aws s3 cp s3://${bucketName2}/${name} .`,
3474
- `sudo -E -u ${u} unzip -o ${name} -d ./code`,
3475
- `sudo -E -u ${u} rm ./${name}`,
3476
- `cd ./code`,
3476
+ `sudo -E -u ${u} aws s3 cp s3://${bucketName2}/${name} /var/infra`,
3477
+ `sudo -E -u ${u} unzip -o /var/infra/${name} -d /var/code`,
3478
+ `sudo -E -u ${u} rm /var/infra/${name}`,
3479
+ `cd /var/code`,
3477
3480
  // system environment vars
3478
3481
  ...Object.entries(env).map(([key, value]) => {
3479
3482
  return `echo export ${key}="${unwrap(value)}" >> /etc/profile`;
@@ -4119,8 +4122,6 @@ import { aws as aws17, Node as Node16 } from "@awsless/formation";
4119
4122
  import { paramCase as paramCase6 } from "change-case";
4120
4123
  var typeGenCode5 = `
4121
4124
  import { Body, PutObjectProps, BodyStream } from '@awsless/s3'
4122
- import { Size } from '@awsless/size'
4123
- import { Duration } from '@awsless/duration'
4124
4125
 
4125
4126
  type Store<Name extends string> = {
4126
4127
  readonly name: Name
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.305",
3
+ "version": "0.0.306",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -28,14 +28,14 @@
28
28
  }
29
29
  },
30
30
  "peerDependencies": {
31
- "@awsless/s3": "^0.0.17",
32
- "@awsless/redis": "^0.0.12",
33
31
  "@awsless/lambda": "^0.0.25",
34
32
  "@awsless/open-search": "^0.0.15",
35
- "@awsless/sqs": "^0.0.7",
33
+ "@awsless/redis": "^0.0.12",
36
34
  "@awsless/validate": "^0.0.14",
37
35
  "@awsless/sns": "^0.0.7",
36
+ "@awsless/s3": "^0.0.17",
38
37
  "@awsless/weak-cache": "^0.0.1",
38
+ "@awsless/sqs": "^0.0.7",
39
39
  "@awsless/ssm": "^0.0.7"
40
40
  },
41
41
  "dependencies": {
@@ -106,10 +106,10 @@
106
106
  "zod": "^3.21.4",
107
107
  "zod-to-json-schema": "^3.22.3",
108
108
  "@awsless/duration": "^0.0.1",
109
+ "@awsless/size": "^0.0.1",
110
+ "@awsless/graphql": "^0.0.9",
109
111
  "@awsless/ts-file-cache": "^0.0.1",
110
112
  "@awsless/validate": "^0.0.14",
111
- "@awsless/graphql": "^0.0.9",
112
- "@awsless/size": "^0.0.1",
113
113
  "@awsless/code": "^0.0.10",
114
114
  "@awsless/formation": "^0.0.41"
115
115
  },