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
version: 0.2 | |
phases: | |
install: | |
runtime-versions: | |
nodejs: 10 | |
pre_build: | |
commands: | |
- npm install | |
build: |
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
{ | |
"description": "My Christmas Gift Flow", | |
"states": [ | |
{ | |
"name": "Trigger", | |
"type": "InitialState", | |
"properties": { | |
"offset": { | |
"x": 380, | |
"y": 70 |
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
AWS Service | Cost Per Invocation | Type | Cost Formula | |
---|---|---|---|---|
API Gateway Request | 0.0000035 | Compute | $3.50 / million | |
API Gateway Data Transfer (1KB) | 0.00000009 | Compute | $.09 / GB | |
Lambda Execution | 0.0000002 | Compute | $.20 / million invocations | |
Lambda Compute (300ms, 128MB) | 0.00000067 | Compute | (.3 seconds * .125 GB) * .0000167 | |
DDB Write Capacity Unit (1 / Month) | 0.468 | Compute | $.00065 per hour ( x 24 hrs x 30 days) | |
DDB Read Capacity Unit (1 / Month) | 0.0936 | Compute | $.00013 per hour ( x 24 hrs x 30 days) | |
DDB Stream Reads | 0.0000002 | Compute | $.02 / 100,000 | |
DDB Storage (1KB /Month) | 0.00000025 | Storage | $.25 / GB / month | |
DDB Backup (1KB/Month PITR) | 0.00000024 | Storage | $.20 / GB / month |
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
{ | |
"dependencies": { | |
"twilio": "^3.39.3", | |
"http-status-codes": "^1.3.2" | |
} | |
} |
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
DependencyLayer: | |
Type: AWS::Serverless::LayerVersion | |
Properties: | |
LayerName: dependency-layer | |
ContentUri: dependencies/ | |
CompatibleRuntimes: | |
- nodejs12.x | |
RetentionPolicy: Retain |
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
FunctionLayer: | |
Type: AWS::Serverless::LayerVersion | |
Properties: | |
LayerName: FunctionLayer | |
ContentUri: layers/ | |
CompatibleRuntimes: | |
- nodejs12.x | |
RetentionPolicy: Retain |
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
Globals: | |
Function: | |
Layers: | |
- !Ref FunctionLayer | |
- !Ref DependencyLayer | |
Runtime: nodejs12.x | |
Timeout: 10 | |
Tracing: Active |
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
// Pulls from Dependency Layer - Declared like normal | |
const Twilio = require('twilio'); | |
const short = require('short-uuid'); | |
const httpStatusCode = require('http-status-codes'); |
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
// Pulls from Function Layer - Must pull from 'opt/nodejs/<filename>' | |
const db = require('/opt/nodejs/database'); |
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
{ | |
"description": "<Your company here>", | |
"states": [ | |
{ | |
"name": "Trigger", | |
"type": "InitialState", | |
"properties": { | |
"offset": { | |
"x": 20, | |
"y": -170 |
OlderNewer