Skip to content

Commit

Permalink
Update cdk setup
Browse files Browse the repository at this point in the history
Signed-off-by: Johan Haals <[email protected]>
  • Loading branch information
jhaals committed Dec 3, 2024
1 parent 72fa080 commit fe67b0c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion deploy/cdk/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ node_modules
cdk.out

bootstrap
bootstrap.zip
bootstrap.zip
deployment.zip
2 changes: 1 addition & 1 deletion deploy/cdk/bin/cdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ new CdkStack(app, "CdkStack", {
* and Region that are implied by the current CLI configuration. */
env: {
account: process.env.CDK_DEFAULT_ACCOUNT,
region: process.env.CDK_DEFAULT_REGION,
region: "eu-west-1",
},

/* Uncomment the next line if you know exactly what Account and Region you
Expand Down
8 changes: 4 additions & 4 deletions deploy/cdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
"cdk": "bin/cdk.js"
},
"scripts": {
"build": "tsc",
"build": "tsc && GOOS=linux GOARCH=arm64 go build -o ./bootstrap -tags lambda.norpc && zip deployment.zip bootstrap",
"watch": "tsc -w",
"test": "jest",
"cdk": "cdk",
"deploy": "GOOS=linux GOARCH=arm64 go build -o ./bootstrap -tags lambda.norpc && zip deployment.zip bootstrap && cdk synth"
"deploy": "cdk synth"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"@types/node": "22.5.4",
"aws-cdk": "2.161.1",
"jest": "^29.7.0",
"ts-jest": "^29.2.5",
"aws-cdk": "2.161.1",
"ts-node": "^10.9.2",
"typescript": "~5.6.2"
},
Expand All @@ -25,4 +25,4 @@
"constructs": "^10.0.0",
"source-map-support": "^0.5.21"
}
}
}

0 comments on commit fe67b0c

Please sign in to comment.