Skip to content

Collection of AWS Lambdas to update Hubspot Companies with customer details from Daisy Wholesale.

Notifications You must be signed in to change notification settings

Tohaker/UpdateHubspotCompanies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UpdateHubspotCompanies

A collection of AWS Lambdas to continuously update a Hubspot account.

Build Status:
Travis Build

Project Structure

For the setup script to work correctly, lambdas must follow this folder structure:

lambdas
├── lambda1
│   ├── main.py
│   └── requirements.txt
└── lambda2
    ├── main.py
    └── requirements.txt

Requirements

Setup process

Local development

Invoking function locally using a local sample payload

sam local invoke DaisyCustomerUpload --event event.json

Invoking function locally through local API Gateway

sam local start-api

Deployment

Deployment is carried out using Terraform. Running the setup.sh script with the following parameters will build the project according to a strict directory layout.

./setup.sh <ftp_username> <ftp_password>

e.g.

./setup.sh OVR90120 fqfgsflusgfkqwg

Terraform

Ensure your AWS Credentials file has a user specified that has permissions to write to the S3 bucket and DynamoDB Table. More permissions are often needed, these are stored in [deployment/iam/terraform-role.role]

Navigate to the terraform folder and initialise Terraform

terraform init

Plan the Terraform to see what will be created.

terraform plan

Apply the Terraform to create the infrastructure.

terraform apply

About

Collection of AWS Lambdas to update Hubspot Companies with customer details from Daisy Wholesale.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published