Skip to content

Commit

Permalink
rename stories function to landing_metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
rivernews committed Sep 17, 2022
1 parent b6851c5 commit 6c6e250
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

lambda_golang/landing
lambda_golang/story
lambda_golang/stories
lambda_golang/landing_metadata
venv

# Binaries for programs and plugins
Expand Down
2 changes: 1 addition & 1 deletion cloud_environments/terraform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ set +o allexport
if (
cd $GOLANG_SRC_DIR && \
go build ./cmd/landing && \
go build ./cmd/stories && \
go build ./cmd/landing_metadata && \
go build ./cmd/story && \
cd $PYTHON_SRC_DIR && python -m compileall layer src
); then
Expand Down
8 changes: 4 additions & 4 deletions cloud_module/stories_sfn.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ module batch_stories_fetch_parse_lambda {
source = "terraform-aws-modules/lambda/aws"
create_function = true
function_name = "${local.project_name}-batch-stories-fetch-parse"
description = "Batch fetch and parse all stories of a landing page"
handler = "stories"
description = "Scrape metadata from a landing page"
handler = "landing_metadata"
runtime = "go1.x"

source_path = [{
path = "${path.module}/../lambda_golang/"
commands = ["${local.go_build_flags} go build ./cmd/stories", ":zip"]
patterns = ["stories"]
commands = ["${local.go_build_flags} go build ./cmd/landing_metadata", ":zip"]
patterns = ["landing_metadata"]
}]

timeout = 900
Expand Down
File renamed without changes.

0 comments on commit 6c6e250

Please sign in to comment.