Skip to content

Commit

Permalink
add new dynamo table
Browse files Browse the repository at this point in the history
  • Loading branch information
ConjunctiveNormalForm committed Apr 18, 2024
1 parent 02854d0 commit d04618f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions bin/stacks/api-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import * as aws_apigateway from 'aws-cdk-lib/aws-apigateway';
import { MethodLoggingLevel } from 'aws-cdk-lib/aws-apigateway';
import * as aws_asg from 'aws-cdk-lib/aws-applicationautoscaling';
import * as aws_cloudwatch from 'aws-cdk-lib/aws-cloudwatch';
import * as aws_dynamo from 'aws-cdk-lib/aws-dynamodb';
import { CfnEIP, NatProvider, Vpc } from 'aws-cdk-lib/aws-ec2';
import * as aws_iam from 'aws-cdk-lib/aws-iam';
import * as aws_lambda from 'aws-cdk-lib/aws-lambda';
Expand All @@ -14,13 +15,15 @@ import { Construct } from 'constructs';
import * as path from 'path';
import { KmsStack } from './kms-stack';

import { DYNAMO_TABLE_NAME } from '../../lib/constants';
import {
HardQuoteMetricDimension,
Metric,
SoftQuoteMetricDimension,
UniswapXParamServiceMetricDimension,
} from '../../lib/entities';
import { STAGE } from '../../lib/util/stage';
import { PROD_TABLE_CAPACITY } from '../config';
import { SERVICE_NAME } from '../constants';
import { AnalyticsStack } from './analytics-stack';
import { CronDashboardStack } from './cron-dashboard-stack';
Expand Down Expand Up @@ -484,6 +487,19 @@ export class APIStack extends cdk.Stack {
quoteLambdaName: quoteLambda.functionName,
});

/* filler addr table */
new aws_dynamo.Table(this, `FillerAddrTable`, {
tableName: DYNAMO_TABLE_NAME.FILLER_ADDRESS,
partitionKey: {
name: 'pk',
type: aws_dynamo.AttributeType.STRING,
},
deletionProtection: true,
pointInTimeRecovery: true,
contributorInsightsEnabled: true,
...PROD_TABLE_CAPACITY.fadeRate,
});

/* Alarms */
const apiAlarm5xxSev2 = new aws_cloudwatch.Alarm(this, 'UniswapXParameterizationAPI-SEV2-5XXAlarm', {
alarmName: 'UniswapXParameterizationAPI-SEV2-5XX',
Expand Down

0 comments on commit d04618f

Please sign in to comment.