@adobe/helix-deploy 9.0.0 → 9.0.2
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 +16 -0
- package/package.json +11 -11
- package/src/deploy/AWSDeployer.js +20 -6
- package/src/gateway/FastlyGateway.js +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## [9.0.2](https://github.com/adobe/helix-deploy/compare/v9.0.1...v9.0.2) (2023-02-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* close clients on destroy ([#498](https://github.com/adobe/helix-deploy/issues/498)) ([b30404d](https://github.com/adobe/helix-deploy/commit/b30404de570783f0aae8af8ee0bebdecfacda20b))
|
|
7
|
+
|
|
8
|
+
## [9.0.1](https://github.com/adobe/helix-deploy/compare/v9.0.0...v9.0.1) (2023-01-31)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update dependency @adobe/fastly-native-promises to v3 ([#497](https://github.com/adobe/helix-deploy/issues/497)) ([ab5cbe6](https://github.com/adobe/helix-deploy/commit/ab5cbe6cc34fab8d92fd38085fb73c41065812be))
|
|
14
|
+
* **deps:** update external fixes ([#496](https://github.com/adobe/helix-deploy/issues/496)) ([841586c](https://github.com/adobe/helix-deploy/commit/841586c84a4e31588c0586da3fc51cc86c884171))
|
|
15
|
+
* use correct import ([50f999c](https://github.com/adobe/helix-deploy/commit/50f999cf48f08269fa55afbe60e73c633f865345))
|
|
16
|
+
|
|
1
17
|
# [9.0.0](https://github.com/adobe/helix-deploy/compare/v8.1.2...v9.0.0) (2023-01-31)
|
|
2
18
|
|
|
3
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-deploy",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.2",
|
|
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,15 +36,15 @@
|
|
|
36
36
|
"@adobe/helix-universal": ">=4.1.1"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@adobe/fastly-native-promises": "
|
|
39
|
+
"@adobe/fastly-native-promises": "3.0.0",
|
|
40
40
|
"@adobe/fetch": "4.0.1",
|
|
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.
|
|
46
|
-
"@aws-sdk/client-sts": "3.
|
|
47
|
-
"@fastly/js-compute": "1.3.
|
|
41
|
+
"@aws-sdk/client-apigatewayv2": "3.261.0",
|
|
42
|
+
"@aws-sdk/client-lambda": "3.261.0",
|
|
43
|
+
"@aws-sdk/client-s3": "3.261.0",
|
|
44
|
+
"@aws-sdk/client-secrets-manager": "3.261.0",
|
|
45
|
+
"@aws-sdk/client-ssm": "3.261.0",
|
|
46
|
+
"@aws-sdk/client-sts": "3.261.0",
|
|
47
|
+
"@fastly/js-compute": "1.3.2",
|
|
48
48
|
"@google-cloud/functions": "2.2.3",
|
|
49
49
|
"@google-cloud/secret-manager": "4.2.0",
|
|
50
50
|
"@google-cloud/storage": "6.9.1",
|
|
@@ -72,11 +72,11 @@
|
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@adobe/eslint-config-helix": "2.0.1",
|
|
74
74
|
"@adobe/helix-shared-wrap": "2.0.0",
|
|
75
|
-
"@adobe/helix-status": "10.0.
|
|
75
|
+
"@adobe/helix-status": "10.0.1",
|
|
76
76
|
"@semantic-release/changelog": "6.0.2",
|
|
77
77
|
"@semantic-release/git": "10.0.1",
|
|
78
78
|
"c8": "7.12.0",
|
|
79
|
-
"eslint": "8.
|
|
79
|
+
"eslint": "8.33.0",
|
|
80
80
|
"husky": "8.0.3",
|
|
81
81
|
"lint-staged": "13.1.0",
|
|
82
82
|
"mocha": "10.2.0",
|
|
@@ -155,12 +155,18 @@ export default class AWSDeployer extends BaseDeployer {
|
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
async initAccountId() {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
158
|
+
let sts;
|
|
159
|
+
|
|
160
|
+
try {
|
|
161
|
+
sts = new STSClient({
|
|
162
|
+
region: this._cfg.region,
|
|
163
|
+
});
|
|
164
|
+
const ret = await sts.send(new GetCallerIdentityCommand());
|
|
165
|
+
this._accountId = ret.Account;
|
|
166
|
+
this.log.info(chalk`{green ok:} initialized AWS deployer for account {yellow ${ret.Account}}`);
|
|
167
|
+
} finally {
|
|
168
|
+
sts.destroy();
|
|
169
|
+
}
|
|
164
170
|
}
|
|
165
171
|
|
|
166
172
|
async uploadZIP() {
|
|
@@ -874,6 +880,14 @@ export default class AWSDeployer extends BaseDeployer {
|
|
|
874
880
|
throw err;
|
|
875
881
|
}
|
|
876
882
|
}
|
|
883
|
+
|
|
884
|
+
async close() {
|
|
885
|
+
this._s3?.destroy();
|
|
886
|
+
this._lambda?.destroy();
|
|
887
|
+
this._api?.destroy();
|
|
888
|
+
this._ssm?.destroy();
|
|
889
|
+
this._sm?.destroy();
|
|
890
|
+
}
|
|
877
891
|
}
|
|
878
892
|
|
|
879
893
|
AWSDeployer.Config = AWSConfig;
|
|
@@ -9,14 +9,15 @@
|
|
|
9
9
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
// eslint-disable-next-line import/no-named-default
|
|
13
|
+
import { default as Fastly, loghelpers } from '@adobe/fastly-native-promises';
|
|
13
14
|
import chalk from 'chalk-template';
|
|
14
15
|
import FastlyConfig from './FastlyConfig.js';
|
|
15
16
|
import BaseDeployer from '../deploy/BaseDeployer.js';
|
|
16
17
|
|
|
17
18
|
const {
|
|
18
19
|
toString, vcl, time, req, res, str, concat,
|
|
19
|
-
} =
|
|
20
|
+
} = loghelpers;
|
|
20
21
|
|
|
21
22
|
export default class FastlyGateway {
|
|
22
23
|
constructor(baseConfig, config) {
|