File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change
1
+ cdk.context.json
1
2
src /drivers /aws /runtime /server.js
Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ export class StacksCloud extends Stack {
72
72
this . manageFirewall ( )
73
73
this . manageFileSystem ( )
74
74
75
+ // this also deploys your API
75
76
const { cdn, originAccessIdentity, cdnCachePolicy } = this . manageCdn ( )
76
77
this . cdn = cdn
77
78
this . originAccessIdentity = originAccessIdentity
@@ -134,6 +135,7 @@ export class StacksCloud extends Stack {
134
135
functionName : `${ config . app . name } -${ config . app . env } -server` ,
135
136
description : 'The Stacks Server' ,
136
137
memorySize : 512 ,
138
+ vpc : this . vpc ,
137
139
filesystem : lambda . FileSystem . fromEfsAccessPoint ( this . storage . accessPoint ! , '/mnt/efs' ) ,
138
140
timeout : Duration . seconds ( 30 ) ,
139
141
tracing : lambda . Tracing . ACTIVE ,
@@ -303,9 +305,9 @@ export class StacksCloud extends Stack {
303
305
304
306
305
307
manageFileSystem ( ) {
306
- this . vpc = new ec2 . Vpc ( this , 'StacksVpc ' , {
308
+ this . vpc = new ec2 . Vpc ( this , 'Network ' , {
307
309
maxAzs : 2 ,
308
- natGateways : 1 ,
310
+ // natGateways: 1,
309
311
} )
310
312
311
313
this . storage . fileSystem = new efs . FileSystem ( this , 'StacksFileSystem' , {
You can’t perform that action at this time.
0 commit comments