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
# Let's only select the columns we want | |
leads = input_df[["Id", "Name", "Title", "Phone", "Email"]] | |
leads.head() |
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
# 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" |