Skip to content

Commit

Permalink
introduce RDS
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed Mar 11, 2024
1 parent da3e266 commit 49b990c
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 37 deletions.
10 changes: 10 additions & 0 deletions _integration/lib/integration-stack.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as cdk from "aws-cdk-lib";
import { Construct } from "constructs";
import * as ec2 from "aws-cdk-lib/aws-ec2";
import * as rds from "aws-cdk-lib/aws-rds";

export class IntegrationStack extends cdk.Stack {
constructor(scope: Construct, id: string, props?: cdk.StackProps) {
Expand All @@ -24,5 +25,14 @@ export class IntegrationStack extends cdk.Stack {
}),
securityGroup: bastionSG,
});

// Relational Database Service
const cluster = new rds.DatabaseCluster(this, "Database", {
engine: rds.DatabaseClusterEngine.auroraMysql({
version: rds.AuroraMysqlEngineVersion.VER_3_05_2,
}),
writer: rds.ClusterInstance.serverlessV2("writer"),
vpc,
});
}
}
84 changes: 50 additions & 34 deletions _integration/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions _integration/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "_integration",
"name": "integration",
"version": "0.1.0",
"bin": {
"_integration": "bin/_integration.js"
Expand All @@ -13,14 +13,14 @@
"devDependencies": {
"@types/jest": "^29.4.0",
"@types/node": "18.14.6",
"aws-cdk": "^2.78.0",
"jest": "^29.5.0",
"ts-jest": "^29.0.5",
"aws-cdk": "2.78.0",
"ts-node": "^10.9.1",
"typescript": "~4.9.5"
},
"dependencies": {
"aws-cdk-lib": "2.78.0",
"aws-cdk-lib": "^2.78.0",
"constructs": "^10.0.0",
"source-map-support": "^0.5.21"
}
Expand Down

0 comments on commit 49b990c

Please sign in to comment.