sst 2.24.18 → 2.24.19
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/constructs/Service.js +3 -1
- package/package.json +1 -1
package/constructs/Service.js
CHANGED
|
@@ -491,7 +491,7 @@ export class Service extends Construct {
|
|
|
491
491
|
assumedBy: new CompositePrincipal(new AccountPrincipal(app.account), new ServicePrincipal("lambda.amazonaws.com")),
|
|
492
492
|
maxSessionDuration: CdkDuration.hours(12),
|
|
493
493
|
});
|
|
494
|
-
|
|
494
|
+
const fn = new Function(this, `ServerFunction`, {
|
|
495
495
|
description: "Service dev function",
|
|
496
496
|
handler: path.join(__dirname, "../support/service-dev-function", "index.handler"),
|
|
497
497
|
runtime: "nodejs18.x",
|
|
@@ -502,6 +502,8 @@ export class Service extends Construct {
|
|
|
502
502
|
environment,
|
|
503
503
|
permissions,
|
|
504
504
|
});
|
|
505
|
+
fn._doNotAllowOthersToBind = true;
|
|
506
|
+
return fn;
|
|
505
507
|
}
|
|
506
508
|
bindForService(constructs) {
|
|
507
509
|
// Get referenced secrets
|