@architect/inventory 4.0.0-RC.2 → 4.0.0-RC.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@architect/inventory",
3
- "version": "4.0.0-RC.2",
3
+ "version": "4.0.0-RC.4",
4
4
  "description": "Architect project resource enumeration utility",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -21,23 +21,23 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@architect/asap": "~7.0.0-RC.1",
24
+ "@architect/asap": "~7.0.0-RC.2",
25
25
  "@architect/parser": "~6.0.3",
26
- "@architect/utils": "~4.0.0-RC.3",
27
- "@aws-lite/client": "~0.14.2",
28
- "@aws-lite/ssm": "~0.2.2",
26
+ "@architect/utils": "~4.0.0-RC.4",
27
+ "@aws-lite/client": "^0.15.1",
28
+ "@aws-lite/ssm": "^0.2.2",
29
29
  "lambda-runtimes": "~2.0.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@architect/eslint-config": "~2.1.2",
33
33
  "cross-env": "~7.0.3",
34
- "dotenv": "~16.4.0",
34
+ "dotenv": "~16.4.1",
35
35
  "eslint": "~8.56.0",
36
36
  "mock-tmp": "~0.0.2",
37
37
  "nyc": "~15.1.0",
38
38
  "proxyquire": "~2.1.3",
39
39
  "tap-arc": "^1.2.2",
40
- "tape": "^5.7.3"
40
+ "tape": "^5.7.4"
41
41
  },
42
42
  "eslintConfig": {
43
43
  "extends": "@architect/eslint-config"
@@ -6,7 +6,7 @@ module.exports = function createDefaultFunctionConfig () {
6
6
  timeout: 5,
7
7
  memory: 1152,
8
8
  runtime: 'nodejs20.x',
9
- architecture: 'x86_64', // TODO [BREAKING]: default to 'arm64'
9
+ architecture: 'arm64',
10
10
  handler: 'index.handler',
11
11
  state: 'n/a',
12
12
  concurrency: 'unthrottled',
package/src/env/index.js CHANGED
@@ -10,12 +10,12 @@ module.exports = function env (params, inventory, callback) {
10
10
 
11
11
  let aws
12
12
  let name = inventory.app
13
- let { region } = inventory.aws
13
+ let { profile, region } = inventory.aws
14
14
  let result = []
15
15
  // eslint-disable-next-line
16
16
  let awsLite = require('@aws-lite/client')
17
17
  /* istanbul ignore next */
18
- awsLite({ region }).then(_aws => {
18
+ awsLite({ profile, region }).then(_aws => {
19
19
  aws = _aws
20
20
 
21
21
  // Perform the query