sst-http 2.0.0-beta.7 → 2.0.0-beta.8
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/dist/infra.cjs +3 -1
- package/dist/infra.js +3 -1
- package/package.json +1 -1
package/dist/infra.cjs
CHANGED
|
@@ -330,9 +330,10 @@ function loadRoutesManifest(filePath) {
|
|
|
330
330
|
}
|
|
331
331
|
return manifest;
|
|
332
332
|
}
|
|
333
|
+
var publisherHandlerCount = 0;
|
|
333
334
|
function setHandlerBus(handler) {
|
|
334
335
|
const aws2 = ensureSstAws();
|
|
335
|
-
new aws2.iam.RolePolicy("PublisherHandlerPolicy", {
|
|
336
|
+
new aws2.iam.RolePolicy("PublisherHandlerPolicy" + publisherHandlerCount ? publisherHandlerCount : "", {
|
|
336
337
|
role: handler.nodes.role.name,
|
|
337
338
|
policy: {
|
|
338
339
|
Version: "2012-10-17",
|
|
@@ -345,6 +346,7 @@ function setHandlerBus(handler) {
|
|
|
345
346
|
]
|
|
346
347
|
}
|
|
347
348
|
});
|
|
349
|
+
publisherHandlerCount++;
|
|
348
350
|
}
|
|
349
351
|
// Annotate the CommonJS export names for ESM import in node:
|
|
350
352
|
0 && (module.exports = {
|
package/dist/infra.js
CHANGED
|
@@ -300,9 +300,10 @@ function loadRoutesManifest(filePath) {
|
|
|
300
300
|
}
|
|
301
301
|
return manifest;
|
|
302
302
|
}
|
|
303
|
+
var publisherHandlerCount = 0;
|
|
303
304
|
function setHandlerBus(handler) {
|
|
304
305
|
const aws2 = ensureSstAws();
|
|
305
|
-
new aws2.iam.RolePolicy("PublisherHandlerPolicy", {
|
|
306
|
+
new aws2.iam.RolePolicy("PublisherHandlerPolicy" + publisherHandlerCount ? publisherHandlerCount : "", {
|
|
306
307
|
role: handler.nodes.role.name,
|
|
307
308
|
policy: {
|
|
308
309
|
Version: "2012-10-17",
|
|
@@ -315,6 +316,7 @@ function setHandlerBus(handler) {
|
|
|
315
316
|
]
|
|
316
317
|
}
|
|
317
318
|
});
|
|
319
|
+
publisherHandlerCount++;
|
|
318
320
|
}
|
|
319
321
|
export {
|
|
320
322
|
httpApiAdapter,
|