Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewritten tutorial to write a very simple AWS Lambda #131

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,16 @@ dependencies: # Install dependencies needed to build and test the project @Pipel
# TODO: Implement installation of your project dependencies

build: # Build the project artefact @Pipeline
# TODO: Implement the artefact build step
make _project name="build"

up: # Run your code @Pipeline
make _project name="up"

down: # Stop your code @Pipeline
make _project name="down"

sh: up # Get a shell inside your running project, running it first if necessary @Development
make _project name="sh"

publish: # Publish the project artefact @Pipeline
# TODO: Implement the artefact publishing step
Expand All @@ -28,9 +37,22 @@ config:: # Configure development environment (main) @Configuration

# ==============================================================================
regularfry marked this conversation as resolved.
Show resolved Hide resolved

_project:
set -e
SCRIPT="./scripts/projecthooks/${name}.sh"
if [ -e "$${SCRIPT}" ]; then
exec $$SCRIPT
else
echo "make ${name} not implemented: $${SCRIPT} not found" >&2
fi

${VERBOSE}.SILENT: \
regularfry marked this conversation as resolved.
Show resolved Hide resolved
_project \
build \
clean \
config \
dependencies \
deploy \
down \
sh \
up \
Loading
Loading