Let's pretend you want to create a AWS Lambda project called "sns-processor".

Overview

Usage

Let's pretend you want to create a AWS Lambda project called "sns-processor". Rather than using lambda and then editing the results to include your name, email, and various configuration issues that always get forgotten until the worst possible moment, get cookiecutter_ to do all the work.

First, get Cookiecutter. Trust me, it's awesome::

=1.7.0"">
$ pip install "cookiecutter>=1.7.0"

Now run it against this repo::

$ cookiecutter https://github.com/zahaar/go-lambda-cookiecutter

You'll be prompted for some values. Provide them, then a Lambda sample project will be created for you.

Warning: After this point, change '[My Lambda]', 'lambda_description', etc to your own information.

Answer the prompts with your own desired options_. For example::

lambda_name [My Lambda]:
lambda_version [0.1.0]:
lambda_slug [MyLambda]:
lambda_slug_lower [my_lambda]: sns-processor
lambda_description [GoLang lambda for My Lambda]:
author_name [Engineering Department]:
author_email [[email protected]]:
go_version [1.16]:
go_module_path [example.com]:
Select event_type:
1 - SNS
2 - S3
3 - API_GW
Choose from 1, 2, 3 [1]:
sentry_dsn []:
Select license:
1 - MIT
2 - BSD-3
3 - GNU GPL v3.0
4 - Apache 2.0
5 - Mozilla 2.0
Choose from 1, 2, 3, 4, 5 [1]:
Select add_git:
1 - True
2 - False
Choose from 1, 2 [1]:
go: creating new go.mod: module example.com
go: to add module requirements and sums:
go mod tidy
go: finding module for package github.com/getsentry/sentry-go
go: finding module for package github.com/lib/pq
go: finding module for package github.com/aws/aws-lambda-go/events
go: finding module for package github.com/aws/aws-lambda-go/lambda
go: downloading github.com/aws/aws-lambda-go v1.27.1
go: downloading github.com/getsentry/sentry-go v0.12.0
go: found github.com/aws/aws-lambda-go/events in github.com/aws/aws-lambda-go v1.27.1
go: found github.com/aws/aws-lambda-go/lambda in github.com/aws/aws-lambda-go v1.27.1
go: found github.com/getsentry/sentry-go in github.com/getsentry/sentry-go v0.12.0
go: found github.com/lib/pq in github.com/lib/pq v1.10.4
go: downloading golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac
sam build
Building codeuri: /Users/wparker/Dev/sns-processor runtime: go1.x metadata: {} architecture: x86_64 functions: ['MyLambda']
Running GoModulesBuilder:Build

Enter the project and take a look around::

$ cd sns-processor/
$ ls

IMPORTANT: take a look at README.md file generated inside of Lambda folder

$ cat sns-processor/README.md
You might also like...
Serverless demo showing users how they can capture (and obfuscate) their Lambda payloads in Datadog APM
Serverless demo showing users how they can capture (and obfuscate) their Lambda payloads in Datadog APM

Serverless-capture-lambda-payload-demo Serverless demo showing users how they can capture (and obfuscate) their Lambda payloads in Datadog APM This wi

Exploring basic lambda calculus in Python

Lambda Exploring basic lambda calculus in Python. In this repo I have used the lambda function built into python to get a more intiutive feel of lambd

Chalice - A tool to facilitate Python based lambda deployment

Chalice is a tool to facilitate Python based lambda deployment. This repo contains the output of my basic exploration of this tool.

lets learn Python language with basic examples. highly recommended for beginners who just start coding.
lets learn Python language with basic examples. highly recommended for beginners who just start coding.

Lets Learn Python 🐍 Learn python from basic programs. learn python from scratch. 1.Online python compiler: https://www.onlinegdb.com/online_python_co

This is a multi-app executor that it used when we have some different task in a our applications and want to run them at the same time

This is a multi-app executor that it used when we have some different task in a our applications and want to run them at the same time. It uses SQLAlchemy for ORM and Alembic for database migrations.

Simple plug-and-play installer for users who want to LineageOS from stock firmware, or from another custom ROM.

LineageOS for the Teracube 2e Simple plug-and-play installer for users who want to LineageOS from stock firmware, or from another custom ROM. Dependen

A Google sheet which keeps track of the locations that want to visit and a price cutoff
A Google sheet which keeps track of the locations that want to visit and a price cutoff

FlightDeals Here's how the program works. First, I have a Google sheet which keeps track of the locations that I want to visit and a price cutoff. It

PSP (Python Starter Package) is meant for those who want to start coding in python but are new to the coding scene.

Python Starter Package PSP (Python Starter Package) is meant for those who want to start coding in python, but are new to the coding scene. We include

We want to check several batch of web URLs (1~100 K) and find the phishing website/URL among them.
We want to check several batch of web URLs (1~100 K) and find the phishing website/URL among them.

We want to check several batch of web URLs (1~100 K) and find the phishing website/URL among them. This module is designed to do the URL/web attestation by using the API from NUS-Phishperida-Project.

Owner
null
A toolkit for developing and deploying serverless Python code in AWS Lambda.

Python-lambda is a toolset for developing and deploying serverless Python code in AWS Lambda. A call for contributors With python-lambda and pytube bo

Nick Ficano 1.4k Jan 3, 2023
A site that went kinda viral that lets you put Bernie Sanders in places

Bernie In Places An app that accidentally went viral! Read the story in WIRED here Install First, create a python virtual environment, and install all

null 310 Aug 22, 2022
An extension for Arma 3 that lets you write extensions in Python 3

An Arma 3 extension that lets you to write python extensions for Arma 3. And it's really simple and straightforward to use!

Lukasz Taczuk 48 Dec 18, 2022
An addin for Autodesk Fusion 360 that lets you view your design in a Looking Glass Portrait 3D display

An addin for Autodesk Fusion 360 that lets you view your design in a Looking Glass Portrait 3D display

Brian Peiris 12 Nov 2, 2022
A program that lets you use your tablet's tilting to emulate an actual joystick on a Linux computer.

Tablet Tilt Joystick A program that lets you use your tablet's tilting to emulate an actual joystick on a Linux computer. It's called tablet tilt joys

null 1 Feb 7, 2022
A multi purpose password managing and generating tool called Kyper.

Kyper A multi purpose password managing and generating tool called Kyper. Setup The setup for Kyper is fairly simple only involving the command python

Jan Dorian Poczekaj 1 Feb 5, 2022
Participants of Bertelsmann Technology Scholarship created an awesome list of resources and they want to share it with the world, if you find illegal resources please report to us and we will remove.

Participants of Bertelsmann Technology Scholarship created an awesome list of resources and they want to share it with the world, if you find illegal

Wissem Marzouki 29 Nov 28, 2022
Find out where all films you want to watch are streaming

Just Watch Letterboxd Find out where all films you want to watch are streaming Ever wonder what films you want to watch are already on the streaming p

Jordan Oslislo 2 Feb 4, 2022
Aides to reduce a cheat file with a personal selection of the cheats you want to use.

Retroarch Cheat File Reducer Description Aides to reduce a cheat file with a personal selection of the cheats you want to use. Instructions Copy a sel

null 1 Jan 9, 2022
Allow you to create you own custom decentralize job management system.

ants Allow you to create you own custom decentralize job management system. Install $> git clone https://github.com/hvuhsg/ants.git Run monitor exampl

null 1 Feb 15, 2022