- Develop Code
- Publish Lambda, code lives in S3
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 { CodegenConfig } from '@graphql-codegen/cli' | |
const modelNames = [ | |
'User', | |
'Contractor', | |
'JobSite', | |
'Project', | |
'PunchListItem', | |
'ScheduleItem', | |
'Section', |
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 type { EditorConfig } from '@editorjs/editorjs' | |
// The image tool has no types, if using TS you'll need to define them. See below for example | |
import ImageTool from '@editorjs/image' | |
import axios from 'axios' | |
const editorOptions: EditorConfig = { | |
tools: { | |
image: { | |
class: ImageTool, | |
config: { |
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
/** Types for @uphold/uphold-sdk-javascript as of July 9th, 2021 | |
* Use as your own risk, as these types are created by hand from someone outside of the Uphold organization. | |
*/ | |
declare module '@uphold/uphold-sdk-javascript' { | |
type HttpMethod = string // 'get' | 'post' | 'delete' | 'put' | 'patch' | |
export interface SdkConstructorArgs { | |
/** Key used to store the access token | |
* @default uphold.access_token | |
*/ |
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
Transform: 'AWS::Serverless-2016-10-31' | |
Parameters: | |
Stage: | |
Type: String | |
CloudFrontDistributionId: | |
Type: String | |
BranchToRunBuildFrom: | |
Type: String | |
RepositoryUrl: |
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
#!/bin/sh | |
Red="\033[0;31m" # Red | |
Green="\033[0;32m" # Green | |
BICyan="\033[1;96m" # Bold Cyan | |
# Reset | |
Color_Off="\033[0m" # Text Reset | |
printf "\n\n$BICyan$( echo Deploying the Docker container )$Color_Off" |
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
Transform: 'AWS::Serverless-2016-10-31' | |
Parameters: | |
ClusterName: | |
Type: String | |
Stage: | |
Type: String | |
Resources: |
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
const baseArray = [ | |
{value: 1}, | |
{value: 4}, | |
{value: 8}, | |
{value: 9}, | |
{value: 7}, | |
{value: 2}, | |
{value: 3}, | |
{value: 5}, | |
{value: 6}, |
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
#!/bin/bash | |
echo '##### (33%)\r\c' | |
sleep 1 | |
echo '############# (66%)\r\c' | |
sleep 1 | |
echo '####################### (100%)\r\c' | |
echo '\n' |
This guide is intended for the absolute beginner to AWS. It assumes you know little to nothing about AWS.
A "serverless" function ran without provisioning a certain server for a given amount of time. The concept of serverless is a huge topic, but the basic idea is that the starting and stopping of the server is abstracted away. When you ask it to run, it runs. After the code is done, the server stops running. You are only charged for the server when it's running.
They are completely stateless, and are essentially a new boot every time they run. This means that session level things maintained by a Lambda, such as auth session, are not possible.