A proposal to make life easy for Anglo/Romantic/Germanic speakers.
Latin | Cyrillic | Comment |
---|---|---|
í | и | Easy to write on mac |
j | дж | Like Jesus would want |
y | й | Fuck a "j" for this sound |
v | в | Fuck using "w" for this |
import middy, { MiddlewareObj } from '@middy/core' | |
import httpErrorHandler from '@middy/http-error-handler' | |
import httpHeaderNormalizer from '@middy/http-header-normalizer' | |
import httpJsonBodyParser from '@middy/http-json-body-parser' | |
import { APIGatewayProxyEventV2, APIGatewayProxyStructuredResultV2, Handler } from 'aws-lambda' | |
import { zodValidator } from 'middy-zod-validator' | |
import { ZodSchema, z, infer as ZInfer } from 'zod' | |
import { isHttpError } from 'http-errors' |
# AWS AppSync GQL directives | |
# | |
## Scalars come from here: | |
# https://raw.githubusercontent.com/aws-amplify/amplify-cli/master/packages/amplify-graphql-types-generator/awsAppSyncDirectives.graphql | |
# https://docs.aws.amazon.com/appsync/latest/devguide/scalars.html | |
# | |
## Directives came from a GitHub issue here: | |
# https://github.com/apollographql/eslint-plugin-graphql/issues/263 | |
## And comparing with the JSON output of | |
# https://docs.aws.amazon.com/appsync/latest/APIReference/API_GetIntrospectionSchema.html |
import cdk = require("aws-cdk-lib"); | |
import ec2 = require("aws-cdk-lib/aws-ec2"); | |
import elastic = require("aws-cdk-lib/aws-elasticache"); | |
import rds = require("aws-cdk-lib/aws-rds"); | |
import es = require("aws-cdk-lib/aws-elasticsearch"); | |
import ecs = require("aws-cdk-lib/aws-ecs"); | |
import s3 = require("aws-cdk-lib/aws-s3"); | |
import elbv2 = require("aws-cdk-lib/aws-elasticloadbalancingv2"); | |
import route53 = require("aws-cdk-lib/aws-route53"); | |
import certificateManager = require("aws-cdk-lib/aws-certificatemanager"); |
/* eslint-disable @typescript-eslint/no-explicit-any */ | |
/* eslint-disable @typescript-eslint/no-non-null-assertion */ | |
import * as sst from '@serverless-stack/resources'; | |
import { Function, getStack } from '@serverless-stack/resources'; | |
import { Match, Template } from 'aws-cdk-lib/assertions'; | |
import { useBaseInfra } from 'stacks'; | |
import { test } from 'vitest'; | |
import { Functions } from './functions'; | |
function TestStack({ stack }: sst.StackContext) { |
/** | |
* CloudFormation exports. Unique per-region. | |
*/ | |
export enum StackExports { | |
GREMLIN_PORT = "GremlinPort", | |
GREMLIN_ENDPOINT = "GremlinEndpoint" | |
} | |
/** |
import { Construct } from "constructs" | |
import { Code, LayerVersion, LayerVersionProps } from "aws-cdk-lib/aws-lambda" | |
import { AssetHashType, IgnoreMode } from "aws-cdk-lib" | |
import crypto from "crypto" | |
import path from "path" | |
import { getProjectRoot } from "./paths" | |
import { DEFAULT_RUNTIME } from "../stacks" | |
// deps to npm install to the layer | |
const PRISMA_DEPS = ["prisma", "@prisma/migrate", "@prisma/sdk", "@prisma/client"] |
/* | |
- Enable IAM authentication | |
- Grant IAM permission to lambda function | |
*/ | |
import { HttpRequest } from "@aws-sdk/protocol-http" | |
import { parseUrl } from "@aws-sdk/url-parser" | |
import { Response, got, RequestError } from "got" | |
import { GraphQLResponse } from "graphql-request/dist/types" | |
import { signHttpRequest } from "./signedAwsRequest" |
import { createProjectSync, ts } from "@ts-morph/bootstrap" | |
import * as fs from "fs" | |
import * as path from "path" | |
import { default as SimpleMarkdown } from "simple-markdown" | |
describe("README examples", () => { | |
const readmePath = path.join(__dirname, "..", "..", "README.md") | |
const readmeContents = fs.readFileSync(readmePath) | |
// extract examples |