Skip to content

Instantly share code, notes, and snippets.

@hsyyid
hsyyid / clean.py
Last active January 28, 2021 18:24
How to integrate Salesforce with Python Sample
# Let's only select the columns we want
leads = input_df[["Id", "Name", "Title", "Phone", "Email"]]
leads.head()
# Create Lambda + API Gateway
resource "local_file" "chalice_config" {
# Output vars to chalice config
filename = ".chalice/config.json"
content = "${format(file(".chalice/base-config.json"), var.user_pool_name, var.user_pool_arn)}"
# Deploy via chalice
provisioner "local-exec" {
command = "rm -r .chalice/deployed && chalice deploy"