@adobe/helix-deploy 7.0.13 → 7.1.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [7.1.1](https://github.com/adobe/helix-deploy/compare/v7.1.0...v7.1.1) (2022-10-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update adobe fixes ([f2f493e](https://github.com/adobe/helix-deploy/commit/f2f493e815598932acb3acf075f3f02e97af6543))
7
+
8
+ # [7.1.0](https://github.com/adobe/helix-deploy/compare/v7.0.13...v7.1.0) (2022-10-13)
9
+
10
+
11
+ ### Features
12
+
13
+ * add support to specify architecture ([#456](https://github.com/adobe/helix-deploy/issues/456)) ([f1cc55e](https://github.com/adobe/helix-deploy/commit/f1cc55eb98a850365ff751b7874596b8a3bc3382)), closes [#452](https://github.com/adobe/helix-deploy/issues/452)
14
+
1
15
  ## [7.0.13](https://github.com/adobe/helix-deploy/compare/v7.0.12...v7.0.13) (2022-10-10)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-deploy",
3
- "version": "7.0.13",
3
+ "version": "7.1.1",
4
4
  "description": "Library and Commandline Tools to build and deploy OpenWhisk Actions",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/adobe/helix-deploy#readme",
@@ -36,8 +36,8 @@
36
36
  "@adobe/helix-universal": ">=1.9.0"
37
37
  },
38
38
  "dependencies": {
39
- "@adobe/fastly-native-promises": "2.0.11",
40
- "@adobe/fetch": "3.1.4",
39
+ "@adobe/fastly-native-promises": "2.0.12",
40
+ "@adobe/fetch": "3.2.0",
41
41
  "@aws-sdk/client-apigatewayv2": "3.186.0",
42
42
  "@aws-sdk/client-lambda": "3.186.0",
43
43
  "@aws-sdk/client-s3": "3.186.0",
@@ -47,10 +47,10 @@
47
47
  "@google-cloud/functions": "2.2.1",
48
48
  "@google-cloud/secret-manager": "4.1.3",
49
49
  "@google-cloud/storage": "6.5.2",
50
- "@rollup/plugin-alias": "3.1.9",
51
- "@rollup/plugin-commonjs": "22.0.2",
52
- "@rollup/plugin-json": "4.1.0",
53
- "@rollup/plugin-node-resolve": "14.1.0",
50
+ "@rollup/plugin-alias": "4.0.0",
51
+ "@rollup/plugin-commonjs": "23.0.0",
52
+ "@rollup/plugin-json": "5.0.0",
53
+ "@rollup/plugin-node-resolve": "15.0.0",
54
54
  "archiver": "5.3.1",
55
55
  "chalk-template": "0.4.0",
56
56
  "constants-browserify": "1.0.0",
@@ -72,8 +72,8 @@
72
72
  "devDependencies": {
73
73
  "@adobe/eslint-config-helix": "1.3.2",
74
74
  "@adobe/helix-shared-wrap": "1.0.5",
75
- "@adobe/helix-status": "9.2.15",
76
- "@adobe/helix-universal-logger": "2.0.13",
75
+ "@adobe/helix-status": "9.2.16",
76
+ "@adobe/helix-universal-logger": "2.0.14",
77
77
  "@semantic-release/changelog": "6.0.1",
78
78
  "@semantic-release/git": "10.0.1",
79
79
  "c8": "7.12.0",
@@ -26,6 +26,7 @@ export default class AWSConfig {
26
26
  parameterMgr: ['system', 'secret'],
27
27
  createAuthorizer: '',
28
28
  attachAuthorizer: '',
29
+ arch: 'x86_64',
29
30
  identitySources: ['$request.header.Authorization'],
30
31
  deployTemplate: 'helix-deploy-template',
31
32
  });
@@ -36,6 +37,7 @@ export default class AWSConfig {
36
37
  .withAWSRegion(argv.awsRegion)
37
38
  .withAWSRole(argv.awsRole)
38
39
  .withAWSApi(argv.awsApi)
40
+ .withAWSArch(argv.awsArch)
39
41
  .withAWSLambdaFormat(argv.awsLambdaFormat)
40
42
  .withAWSCreateAuthorizer(argv.awsCreateAuthorizer)
41
43
  .withAWSAttachAuthorizer(argv.awsAttachAuthorizer)
@@ -62,6 +64,14 @@ export default class AWSConfig {
62
64
  return this;
63
65
  }
64
66
 
67
+ withAWSArch(value) {
68
+ if (value !== 'x86_64' && value !== 'arm64') {
69
+ throw new Error('unsupported arch. only x86_64 and arm64 are supported by AWS lambda');
70
+ }
71
+ this.arch = value;
72
+ return this;
73
+ }
74
+
65
75
  withAWSLambdaFormat(value) {
66
76
  this.lambdaFormat = value;
67
77
  return this;
@@ -111,7 +121,7 @@ export default class AWSConfig {
111
121
  return yargs
112
122
  .group(['aws-region', 'aws-api', 'aws-role', 'aws-cleanup-buckets', 'aws-cleanup-integrations',
113
123
  'aws-create-routes', 'aws-create-authorizer', 'aws-attach-authorizer', 'aws-lambda-format',
114
- 'aws-parameter-manager', 'aws-deploy-template'], 'AWS Deployment Options')
124
+ 'aws-parameter-manager', 'aws-deploy-template', 'aws-arch'], 'AWS Deployment Options')
115
125
  .option('aws-region', {
116
126
  description: 'the AWS region to deploy lambda functions to',
117
127
  type: 'string',
@@ -127,6 +137,11 @@ export default class AWSConfig {
127
137
  type: 'string',
128
138
  default: 'auto',
129
139
  })
140
+ .option('aws-arch', {
141
+ description: 'deployment architecture. either \'x86_64\' or \'arm64\'',
142
+ type: 'string',
143
+ default: 'x86_64',
144
+ })
130
145
  .option('aws-create-routes', {
131
146
  description: 'Create routes for function (usually not needed due to proxy function).',
132
147
  type: 'boolean',
@@ -250,8 +250,12 @@ export default class AWSDeployer extends BaseDeployer {
250
250
  Variables: cfg.params,
251
251
  },
252
252
  Handler: cfg.esm ? 'esm-adapter/index.handler' : 'index.lambda',
253
+ Architectures: [
254
+ this._cfg.arch,
255
+ ],
253
256
  };
254
257
 
258
+ console.log(functionConfig);
255
259
  this.log.info(`--: using lambda role "${this._cfg.role}"`);
256
260
 
257
261
  // check if function already exists