Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

[WIP] Localstack Lambda #103

Closed
wants to merge 4 commits into from
Closed

[WIP] Localstack Lambda #103

wants to merge 4 commits into from

Conversation

jcoyne
Copy link

@jcoyne jcoyne commented Jun 19, 2018

Ref #91

TODO:

  • Write to Solr (rather than ES)
  • Triggering based on SNS
  • Pass the index path as an environment variable (currently hardcoded)

@jcoyne jcoyne added the review label Jun 19, 2018
@jcoyne jcoyne changed the title Localstack Lambda [WIP] Localstack Lambda Jun 19, 2018
@@ -0,0 +1,57 @@
# Running a lambda on localstack

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This required a go get for github.com/aws/aws-lambda-go/events and github.com/aws/aws-lambda-go/lambda for me. Can that be added in step 1 here?

lambda/main.go Outdated
// stdout and stderr are sent to AWS CloudWatch Logs
log.Printf("Running Lambda function\n")

host := "192.168.2.7"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be set to whatever the local machine IP address is, so instructions should be added to the README.

@aaron-collier
Copy link
Contributor

aaron-collier commented Jun 19, 2018

"Triggered based on SNS" is described here: https://github.com/sul-dlss/rialto/wiki/Working-with-localstack

@mjgiarlo
Copy link
Member

Closing per today's storytime. This PR moved to rialto-lambda.

@mjgiarlo mjgiarlo closed this Jun 25, 2018
@mjgiarlo mjgiarlo removed the review label Jun 25, 2018
@mjgiarlo mjgiarlo deleted the lambda branch June 25, 2018 21:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants