Skip to content

Instantly share code, notes, and snippets.

View onlybakam's full-sized avatar

Brice Pellé onlybakam

View GitHub Profile
export function sqsSendMessage(queueUrl: string, msg: unknown, groupId: string, dedupId: string) {
const bodyJson = {
Action: 'SendMessage',
MessageBody: JSON.stringify(msg),
QueueUrl: queueUrl,
MessageDeduplicationId: dedupId,
MessageGroupId: groupId,
}
import {
util,
DynamoDBGetItem,
DynamoDBExpression,
DynamoDBPutItemRequest,
DynamoDBUpdateItemRequest,
DynamoDBDeleteItemRequest,
LambdaRequest,
Context as _Context,
DynamoDBQueryRequest,
@onlybakam
onlybakam / setup.md
Last active September 6, 2023 13:39
Create an appsync custom domain association in your Amplify project

Pre-req

Create the custom domain name separately. Since the domain name is a longer-lived resource, you may not want it modified, or deleted by your application stack.

Do this in the console as shown in this blog, or use your favorite IaC tool.

Example with CDK:

import * as cdk from '@aws-cdk/core'
@onlybakam
onlybakam / dataStoreLink.ts
Created May 25, 2021 16:55
Connect Amplify DataStore with existing SQL datasources - Lambda Function