feat: add repo importing
This commit is contained in:
20
cdk/lib/cdk-stack.ts
Normal file
20
cdk/lib/cdk-stack.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import * as cdk from 'aws-cdk-lib/core';
|
||||
import { Construct } from 'constructs';
|
||||
import * as dynamodb from "aws-cdk-lib/aws-dynamodb";
|
||||
|
||||
export class GhostV2Stack extends cdk.Stack {
|
||||
constructor(scope: Construct, id: string, props?: cdk.StackProps) {
|
||||
super(scope, id, props);
|
||||
|
||||
const table = new dynamodb.TableV2(this, "ghostv2-table", {
|
||||
partitionKey: { name: "pk", type: dynamodb.AttributeType.STRING },
|
||||
sortKey: { name: "sk", type: dynamodb.AttributeType.STRING },
|
||||
billing: dynamodb.Billing.onDemand(),
|
||||
})
|
||||
table.addGlobalSecondaryIndex({
|
||||
indexName: "gsi1",
|
||||
partitionKey: { name: "gsi1pk", type: dynamodb.AttributeType.STRING },
|
||||
sortKey: { name: "gsi1sk", type: dynamodb.AttributeType.STRING }
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user