Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
feat: ✨ use on-demand capacity so we don't go broke
Browse files Browse the repository at this point in the history
  • Loading branch information
ecxyzzy committed Feb 5, 2024
1 parent 20ac2c2 commit f75f278
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/api/bronya.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { PrismaClient } from "@libs/db";
import { logger, warmingRequestBody } from "@libs/lambda";
import { LambdaIntegration, ResponseType } from "aws-cdk-lib/aws-apigateway";
import { Certificate } from "aws-cdk-lib/aws-certificatemanager";
import { AttributeType, Table } from "aws-cdk-lib/aws-dynamodb";
import { AttributeType, BillingMode, Table } from "aws-cdk-lib/aws-dynamodb";
import { Rule, RuleTargetInput, Schedule } from "aws-cdk-lib/aws-events";
import { LambdaFunction } from "aws-cdk-lib/aws-events-targets";
import {
Expand Down Expand Up @@ -243,6 +243,7 @@ class ApiStack extends Stack {
this.cache = new Table(this, `${id}-cache`, {
partitionKey: { name: "cacheKey", type: AttributeType.STRING },
timeToLiveAttribute: "expireAt",
billingMode: BillingMode.PAY_PER_REQUEST,
});
}
}
Expand Down

0 comments on commit f75f278

Please sign in to comment.