@adobe/helix-deploy 7.0.12 → 7.1.0
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 +14 -0
- package/package.json +15 -15
- package/src/deploy/AWSConfig.js +16 -1
- package/src/deploy/AWSDeployer.js +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [7.1.0](https://github.com/adobe/helix-deploy/compare/v7.0.13...v7.1.0) (2022-10-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* 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)
|
|
7
|
+
|
|
8
|
+
## [7.0.13](https://github.com/adobe/helix-deploy/compare/v7.0.12...v7.0.13) (2022-10-10)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update external fixes ([#454](https://github.com/adobe/helix-deploy/issues/454)) ([2b98839](https://github.com/adobe/helix-deploy/commit/2b98839236f8a83ee3eb02e1ee2f7d70261c75ea))
|
|
14
|
+
|
|
1
15
|
## [7.0.12](https://github.com/adobe/helix-deploy/compare/v7.0.11...v7.0.12) (2022-10-03)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-deploy",
|
|
3
|
-
"version": "7.0
|
|
3
|
+
"version": "7.1.0",
|
|
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",
|
|
@@ -38,24 +38,24 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@adobe/fastly-native-promises": "2.0.11",
|
|
40
40
|
"@adobe/fetch": "3.1.4",
|
|
41
|
-
"@aws-sdk/client-apigatewayv2": "3.
|
|
42
|
-
"@aws-sdk/client-lambda": "3.
|
|
43
|
-
"@aws-sdk/client-s3": "3.
|
|
44
|
-
"@aws-sdk/client-secrets-manager": "3.
|
|
45
|
-
"@aws-sdk/client-ssm": "3.
|
|
41
|
+
"@aws-sdk/client-apigatewayv2": "3.186.0",
|
|
42
|
+
"@aws-sdk/client-lambda": "3.186.0",
|
|
43
|
+
"@aws-sdk/client-s3": "3.186.0",
|
|
44
|
+
"@aws-sdk/client-secrets-manager": "3.186.0",
|
|
45
|
+
"@aws-sdk/client-ssm": "3.186.0",
|
|
46
46
|
"@fastly/js-compute": "0.5.4",
|
|
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": "
|
|
51
|
-
"@rollup/plugin-commonjs": "
|
|
52
|
-
"@rollup/plugin-json": "
|
|
53
|
-
"@rollup/plugin-node-resolve": "
|
|
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",
|
|
57
57
|
"dotenv": "16.0.3",
|
|
58
|
-
"express": "4.18.
|
|
58
|
+
"express": "4.18.2",
|
|
59
59
|
"form-data": "4.0.0",
|
|
60
60
|
"fs-extra": "10.1.0",
|
|
61
61
|
"get-stream": "6.0.1",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"proxyquire": "2.1.3",
|
|
65
65
|
"rollup": "2.79.1",
|
|
66
66
|
"rollup-plugin-terser": "7.0.2",
|
|
67
|
-
"semver": "7.3.
|
|
67
|
+
"semver": "7.3.8",
|
|
68
68
|
"tar": "6.1.11",
|
|
69
69
|
"webpack": "5.74.0",
|
|
70
70
|
"yargs": "17.6.0"
|
|
@@ -72,7 +72,7 @@
|
|
|
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.
|
|
75
|
+
"@adobe/helix-status": "9.2.15",
|
|
76
76
|
"@adobe/helix-universal-logger": "2.0.13",
|
|
77
77
|
"@semantic-release/changelog": "6.0.1",
|
|
78
78
|
"@semantic-release/git": "10.0.1",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"chai": "4.3.6",
|
|
81
81
|
"chai-http": "4.3.0",
|
|
82
82
|
"codecov": "3.8.3",
|
|
83
|
-
"eslint": "8.
|
|
83
|
+
"eslint": "8.25.0",
|
|
84
84
|
"eslint-plugin-header": "3.1.1",
|
|
85
85
|
"eslint-plugin-import": "2.26.0",
|
|
86
86
|
"husky": "8.0.1",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"mocha-multi-reporters": "1.5.1",
|
|
91
91
|
"nock": "13.2.9",
|
|
92
92
|
"semantic-release": "19.0.5",
|
|
93
|
-
"sinon": "14.0.
|
|
93
|
+
"sinon": "14.0.1",
|
|
94
94
|
"yauzl": "2.10.0"
|
|
95
95
|
},
|
|
96
96
|
"engines": {
|
package/src/deploy/AWSConfig.js
CHANGED
|
@@ -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
|