@awsless/awsless 0.0.305 → 0.0.307

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 +10 -7
  2. package/package.json +8 -8
package/dist/bin.js CHANGED
@@ -3468,12 +3468,17 @@ 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",
3475
+ `sudo chown -R ${u} /var/infra`,
3476
+ `sudo chown -R ${u} /var/code`,
3472
3477
  `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`,
3478
+ `sudo -E -u ${u} aws s3 cp s3://${bucketName2}/${name} /var/infra`,
3479
+ `sudo -E -u ${u} unzip -o /var/infra/${name} -d /var/code`,
3480
+ `sudo -E -u ${u} rm /var/infra/${name}`,
3481
+ `cd /var/code`,
3477
3482
  // system environment vars
3478
3483
  ...Object.entries(env).map(([key, value]) => {
3479
3484
  return `echo export ${key}="${unwrap(value)}" >> /etc/profile`;
@@ -4119,8 +4124,6 @@ import { aws as aws17, Node as Node16 } from "@awsless/formation";
4119
4124
  import { paramCase as paramCase6 } from "change-case";
4120
4125
  var typeGenCode5 = `
4121
4126
  import { Body, PutObjectProps, BodyStream } from '@awsless/s3'
4122
- import { Size } from '@awsless/size'
4123
- import { Duration } from '@awsless/duration'
4124
4127
 
4125
4128
  type Store<Name extends string> = {
4126
4129
  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.307",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -28,15 +28,15 @@
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",
32
+ "@awsless/s3": "^0.0.17",
34
33
  "@awsless/open-search": "^0.0.15",
35
34
  "@awsless/sqs": "^0.0.7",
35
+ "@awsless/ssm": "^0.0.7",
36
36
  "@awsless/validate": "^0.0.14",
37
37
  "@awsless/sns": "^0.0.7",
38
- "@awsless/weak-cache": "^0.0.1",
39
- "@awsless/ssm": "^0.0.7"
38
+ "@awsless/redis": "^0.0.12",
39
+ "@awsless/weak-cache": "^0.0.1"
40
40
  },
41
41
  "dependencies": {
42
42
  "@arcanyx/cidr-slicer": "^0.3.0",
@@ -105,11 +105,11 @@
105
105
  "zip-a-folder": "^3.1.6",
106
106
  "zod": "^3.21.4",
107
107
  "zod-to-json-schema": "^3.22.3",
108
- "@awsless/duration": "^0.0.1",
109
- "@awsless/ts-file-cache": "^0.0.1",
110
- "@awsless/validate": "^0.0.14",
111
108
  "@awsless/graphql": "^0.0.9",
112
109
  "@awsless/size": "^0.0.1",
110
+ "@awsless/validate": "^0.0.14",
111
+ "@awsless/ts-file-cache": "^0.0.1",
112
+ "@awsless/duration": "^0.0.1",
113
113
  "@awsless/code": "^0.0.10",
114
114
  "@awsless/formation": "^0.0.41"
115
115
  },