@awsless/awsless 0.0.212 → 0.0.213

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 +2 -1
  2. package/package.json +8 -8
package/dist/bin.js CHANGED
@@ -2122,11 +2122,12 @@ var createLambdaFunction = (group, ctx, ns, id, local2) => {
2122
2122
  if ("stackConfig" in ctx) {
2123
2123
  lambda.addEnvironment("STACK", ctx.stackConfig.name);
2124
2124
  }
2125
- new aws2.lambda.EventInvokeConfig(group, "async", {
2125
+ const invokeConfig = new aws2.lambda.EventInvokeConfig(group, "async", {
2126
2126
  functionArn: lambda.arn,
2127
2127
  retryAttempts: props.retryAttempts,
2128
2128
  onFailure: getGlobalOnFailure(ctx)
2129
2129
  });
2130
+ invokeConfig.dependsOn(policy);
2130
2131
  if (hasOnFailure(ctx.stackConfigs)) {
2131
2132
  policy.addStatement({
2132
2133
  actions: ["sqs:SendMessage", "sqs:GetQueueUrl"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.212",
3
+ "version": "0.0.213",
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/lambda": "^0.0.18",
32
- "@awsless/redis": "^0.0.12",
33
31
  "@awsless/s3": "^0.0.10",
32
+ "@awsless/redis": "^0.0.12",
34
33
  "@awsless/open-search": "^0.0.12",
34
+ "@awsless/lambda": "^0.0.18",
35
35
  "@awsless/sqs": "^0.0.7",
36
- "@awsless/ssm": "^0.0.7",
37
- "@awsless/sns": "^0.0.7",
38
36
  "@awsless/validate": "^0.0.13",
39
- "@awsless/weak-cache": "^0.0.1"
37
+ "@awsless/sns": "^0.0.7",
38
+ "@awsless/weak-cache": "^0.0.1",
39
+ "@awsless/ssm": "^0.0.7"
40
40
  },
41
41
  "dependencies": {
42
42
  "@aws-appsync/utils": "^1.5.0",
@@ -97,11 +97,11 @@
97
97
  "wrap-ansi": "^8.1.0",
98
98
  "zod": "^3.21.4",
99
99
  "zod-to-json-schema": "^3.22.3",
100
- "@awsless/graphql": "^0.0.9",
101
100
  "@awsless/duration": "^0.0.1",
101
+ "@awsless/graphql": "^0.0.9",
102
+ "@awsless/size": "^0.0.1",
102
103
  "@awsless/validate": "^0.0.13",
103
104
  "@awsless/formation": "^0.0.21",
104
- "@awsless/size": "^0.0.1",
105
105
  "@awsless/code": "^0.0.10"
106
106
  },
107
107
  "scripts": {