This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { DynamoDBClient } from '@aws-sdk/client-dynamodb' | |
import { DeleteCommand, DynamoDBDocumentClient, GetCommand, PutCommand, UpdateCommand } from '@aws-sdk/lib-dynamodb' | |
import { Cookie, createCookie, createFileSessionStorage, createSessionStorage, SessionStorage } from '@remix-run/node' | |
import { v4 as uuidv4 } from 'uuid' | |
import { getEnv } from '~/utils/get-env' | |
const LOCAL_DEV = process.env.LOCAL_DEV === 'true' | |
if (LOCAL_DEV) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as path from 'path'; | |
import * as apigatewayv2 from '@aws-cdk/aws-apigatewayv2'; | |
import * as apigatewayv2Integrations from '@aws-cdk/aws-apigatewayv2-integrations'; | |
import * as certificatemanager from '@aws-cdk/aws-certificatemanager'; | |
import * as lnjs from '@aws-cdk/aws-lambda-nodejs'; | |
import * as route53 from '@aws-cdk/aws-route53'; | |
import * as alias from '@aws-cdk/aws-route53-targets'; | |
import * as cdk from '@aws-cdk/core'; | |
export interface WebsocketExampleProps { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CfnDatabase from @aws-cdk/aws-glue | |
const db = new CfnDatabase(this, 'DB', { | |
catalogId: this.account, | |
databaseInput: {}, | |
}); | |
const dbName = db.ref; | |
const createOrRelaceViewQuery = new CfnNamedQuery( | |
this, |