This file contains hidden or 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
# Local .terraform directories | |
**/.terraform/* | |
# .tfstate files | |
*.tfstate | |
*.tfstate.* | |
# Crash log files | |
crash.log |
This file contains hidden or 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 { NestFactory } from '@nestjs/core'; | |
import { ExpressAdapter } from '@nestjs/platform-express'; | |
import serverlessExpress from '@vendia/serverless-express'; | |
import { Context, Handler } from 'aws-lambda'; | |
import express from 'express'; | |
import { AppModule } from './app.module'; | |
let cachedServer: Handler; |
This file contains hidden or 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
Tags: | |
tag,hot-lead,null,null,null,hot-lead,hot-lead,tag#deal#2022-05-01,tag,hot-lead,"Hot Lead",tag-uuid-1,1,null,true,2022-05-01,null,null,deal,{} | |
tag,hot-lead,null,null,null,hot-lead,hot-lead,tag#customer#2022-05-01,tag,hot-lead,"Hot Lead",tag-uuid-1,1,null,true,2022-05-01,null,null,customer,{} | |
tag,warm-lead,null,null,null,warm-lead,warm-lead,tag#deal#2022-05-01,tag,warm-lead,"Warm Lead",tag-uuid-1,1,null,true,2022-05-01,null,null,deal,{} | |
tag,warm-lead,null,null,null,warm-lead,warm-lead,tag#customer#2022-05-01,tag,warm-lead,"Warm Lead",tag-uuid-1,1,null,true,2022-05-01,null,null,customer,{} | |
IDXPK - recordType (e.g. "entity" | "tag") | |
IDXSK - tagName | |
IDXLSI1 - scheduledStart |
This file contains hidden or 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
TargetRequestAutoScalingPolicy: | |
Type: AWS::ApplicationAutoScaling::ScalingPolicy | |
Properties: | |
PolicyName: !Sub '${Name}-${EnvironmentName}-${ServiceName}-RequestAutoScalingPolicy' | |
PolicyType: TargetTrackingScaling | |
ScalingTargetId: !Ref AutoScalingTarget | |
TargetTrackingScalingPolicyConfiguration: | |
TargetValue: 10.0 | |
ScaleInCooldown: 60 | |
ScaleOutCooldown: 30 |
This file contains hidden or 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 AWS from 'aws-sdk'; | |
import request from 'request-promise'; | |
import { recognizeImage } from './image'; | |
const { BUCKET = '' } = process.env; | |
const SEPARATOR = '_-_'; | |
const s3 = new AWS.S3(); | |
const TWITTER_STATUS_URL = 'https://api.twitter.com/1.1/statuses/update.json'; | |
const { |
This file contains hidden or 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
service: you-betta-rekognize | |
package: | |
individually: true | |
plugins: | |
- serverless-bundle | |
- serverless-pseudo-parameters | |
custom: |
This file contains hidden or 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 AWS from 'aws-sdk'; | |
const rekognition = new AWS.Rekognition(); | |
const formatCelebrities = celeb => ({ | |
url: celeb.Urls ? celeb.Urls[0] : 'No URL', | |
name: celeb.Name || 'unknown Name', | |
id: celeb.Id || 'unknown ID', | |
}); |
This file contains hidden or 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
service: you-betta-rekognize | |
package: | |
individually: true | |
plugins: | |
- serverless-bundle | |
- serverless-pseudo-parameters | |
custom: |
This file contains hidden or 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
service: you-betta-rekognize | |
package: | |
individually: true | |
plugins: | |
- serverless-bundle | |
- serverless-pseudo-parameters | |
custom: |
This file contains hidden or 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 AWS from 'aws-sdk'; | |
import request from 'request-promise'; | |
const { BUCKET = '' } = process.env; | |
const SEPARATOR = '_-_'; | |
const s3 = new AWS.S3(); | |
const parseTweet = tweet => { | |
const tweetData = tweet.tweet_create_events; | |
if (typeof tweetData === 'undefined' || tweetData.length < 1) { |
NewerOlder