Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

SOCless Template

Template Repository


  • Node.js
  • Python 3.7
  • AWS account and IAM profile configured with Programmatic access
  • Socless Core Stack deployed in AWS



$ git clone
$ cd socless-template
$ npm install

Rename Template With New Integration Name

npm run rename

Deployment to AWS

$ npm run [dev|stage|prod|sandbox]


Unit Tests

$ npm run test

Note: Requires Python 3.7 to accurately reflect the environment used by these lambda functions

Stack Outputs

Output Type Description
SendOldTimeyTelegram Lambda Function ARN ARN of mock socless integration for example use
ServerlessDeploymentBucketName S3 Bucket name S3 bucket used by Serverless to deploy the integration

Tips for Writing SOCless Integrations

  • Use the ./common_files folder to share code between all your lambda functions

    • Any files in this folder will be packaged with each lambda function, allowing you to write generic helper functions and constants that only need to be written once and imported by the lambdas that need them.
  • handle_state must always return a Dict, but feel free to add multiple fields that could be useful in current & future playbooks

    • When writing a playbook function, try to think of all the useful data that this function generates from its input that might be helpful to reference later, and add it under a descriptive key in the return dict.
  • Use Type Hints for your function definitions, it will only make things easier to debug and reference later

(OPTIONAL) - Setting up VSCode for optimal python development

Setup your python installation

  1. Ensure you have Python 3.7 installed
  2. pip install black
    1. This is an opinionated Python linter that will ensure your code is formatted correctly
  3. pip install flake8
  4. pip install flake8-bugbear
    1. better error messaging that pairs well with pylance language server and black
  5. git+
    1. Optional but this will allow VSCode to provide syntax hints and descriptions for socless_python functions used in your lambda functions

Install the following recommended extensions

(Search with extension ID in the VSCode extensions tab)

Extension ID Description
ms-python.python Basic Python support for VSCode
ms-python.vscode-pylance a fast, enhanced language server that type checks and lints automatically
noxasaxon.socless-visualizer An alpha tool for socless-specific visualization of playbook.json files A polished tool for visualizing Step Functions json definitions (but does not include any socless specific code)
bungcip.better-toml (optional) .toml language syntax highlighting
redhat.vscode-yaml (optional) .yaml language syntax highlighting
coenraads.bracket-pair-colorizer-2 (optional) {([])} will no longer be the same color, pairs will be matching colors for easier debugging missing parentheses, brackets etc and also for better reading in general
oderwat.indent-rainbow (optional) Each indent will be a different highlighted color, to easily tell how nested python code is. also will highlight red if code is not indented with the current file's default (helps find bad indents which would raise an error)

Setup your VSCode settings.json file

This will turn on advanced python language server capabilities, allow VSCode to view ./common_files python files as valid modules for importing in lambda functions, run black linter on every .py file save, and keep things fast by exempting temporary build folders from analysis.

  • Press CMD + , to open your settings UI.
  • Click the document icon in the top right to open settings.json
  • Copy over the following code and save the file:
    "python.formatting.provider": "black",
    "python.linting.pylintEnabled": false,
    "python.linting.flake8Enabled": true,
    "python.linting.flake8Args": [
    "python.languageServer": "Pylance",
    "python.analysis.extraPaths": [
    "python.analysis.diagnosticMode": "workspace",
    "python.analysis.typeCheckingMode": "basic",
    "files.watcherExclude": {
        "**/build/**": true
    "search.exclude": {
        "**/build/**": true


Template for creating SOCless Integrations



Code of conduct





No releases published


No packages published