Skip to content

Commit d4cfad6

Browse files
committed
chore: wip
1 parent b971840 commit d4cfad6

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.stacks/core/cloud/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
cdk.context.json
12
src/drivers/aws/runtime/server.js

.stacks/core/cloud/src/cloud.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export class StacksCloud extends Stack {
7272
this.manageFirewall()
7373
this.manageFileSystem()
7474

75+
// this also deploys your API
7576
const { cdn, originAccessIdentity, cdnCachePolicy } = this.manageCdn()
7677
this.cdn = cdn
7778
this.originAccessIdentity = originAccessIdentity
@@ -134,6 +135,7 @@ export class StacksCloud extends Stack {
134135
functionName: `${config.app.name}-${config.app.env}-server`,
135136
description: 'The Stacks Server',
136137
memorySize: 512,
138+
vpc: this.vpc,
137139
filesystem: lambda.FileSystem.fromEfsAccessPoint(this.storage.accessPoint!, '/mnt/efs'),
138140
timeout: Duration.seconds(30),
139141
tracing: lambda.Tracing.ACTIVE,
@@ -303,9 +305,9 @@ export class StacksCloud extends Stack {
303305

304306

305307
manageFileSystem() {
306-
this.vpc = new ec2.Vpc(this, 'StacksVpc', {
308+
this.vpc = new ec2.Vpc(this, 'Network', {
307309
maxAzs: 2,
308-
natGateways: 1,
310+
// natGateways: 1,
309311
})
310312

311313
this.storage.fileSystem = new efs.FileSystem(this, 'StacksFileSystem', {

bun.lockb

-831 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)