Skip to content

BimManager/pendo-hubspot-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deployment Step

echo 'PENDO_API_KEY=***' > .env
echo 'HUBSPOT_API_KEY=***' >> .env
npm install
zip -qr function.zip .env node_modules index.js package.json package-lock.json

Using AWS Console

go to aws.amazon.com/lambda
click 'Get Started with AWS Lambda'
click 'Create function'
Function name: passNpsRatingFromPendoToHubspot
Runtime: Node.js 14.x
Arcnhitecture: x86_64
Permissions: Use an existing role -> lambda-role
Advanced settings:
Enable function URL:
Auth type: NONE
Configure CORS
click 'Create function'
go to Functions > passNpsRatingFromPendoToHubspot
click 'Upload from' -> '.zip file'
click 'Test'

Using awscli

aws lambda create-function \
	--function-name 'passNpsRatingFromPendoToHubspot' \
    --runtime 'nodejs14.x' \
    --handler 'index.handler' \
    --publish \
    --package-type Zip \
    --zip-file fileb://function.zip \
    --role $(aws iam list-roles --query "Roles[?RoleName='lambda-role'].Arn" --output text) \
    --description 'A function that is notified of NPS submissions by Pendo and passes the NPS scores to HubSpot'

aws lambda create-function-url-config \
	--function-name 'passNpsRatingFromPendoToHubspot' \
    --auth-type NONE \
    --cors AllowOrigins="*"

In order to update the function code

aws lambda update-function-code --function-name 'passNpsRatingFromPendoToHubspot' --zip-file fileb://function.zip --publish

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published