Panther is a collection of serverless applications deployed within your AWS account. The frontend is a React application which runs in a Docker container (via ECS), and the backend is a collection of compute (Lambda), storage (DynamoDB / S3), and other supporting services.

The sections below provide guidance on how to extend Panther to meet your individual needs.


You can use the Docker environment from the quick start instructions for development. However, it's faster to compile and test the code locally.


Install Go 1.13+, Node 10+, and Python 3.7+.

For MacOS w/ homebrew:

brew install go node python3

Add go tools to your environment:


Install the AWS CLI, which usually works best with the bundled installer:

curl "" -o ""
sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws

Install Docker and make sure the daemon is running in the background.

Install Mage:

go get

Finally, install the remaining development libraries:

mage setup:all


Panther uses mage, a Go tool similar to make , to manage the development lifecycle.

Run mage from the repo root to see the list of available commands:

build:api Generate Go client/models from Swagger specs in api/
build:lambda Compile Go Lambda function source
clean Remove auto-generated build artifacts
deploy Deploy application infrastructure
doc:cfn Cfn will generate user documentation from deployment CloudFormation
fmt Format source files
glue:sync Sync glue table partitions after schema change
setup:all Install all development dependencies
setup:go Install goimports, go-swagger, and golangci-lint
setup:python Install the Python virtual env
setup:web Npm install
teardown Destroy all Panther infrastructure
test:cfn Lint CloudFormation templates
test:ci Run all required checks
test:cover Run Go unit tests and view test coverage in HTML
test:go Test Go source
test:integration Run integration tests (integration_test.go,
test:python Test Python source
test:web Test web source

You can easily chain mage commands together, for example: mage fmt test:ci deploy


  1. Run our test suite: mage test:ci

  2. Run integration tests against a live deployment: mage test:integration

    • WARNING: integration tests will erase all Panther data stores

    • To run tests for only one package: PKG=./internal/compliance/compliance-api/main mage test:integration

Deploying and Updating

To update your deployment of Panther, follow the steps below:

  1. Checkout the latest release:

    1. git fetch origin master

    2. git checkout tags/v1.0.0

  2. Clean the existing build artifacts: mage clean

  3. Deploy the latest application changes: mage deploy

Repo Layout

Since the majority of Panther is written in Go, the repo follows the standard Go project layout:




Input/output models for communicating with Panther's backend APIs


CloudFormation templates for deploying Panther itself or integrating the accounts you want to scan


Documentation, license headers, README, images, code of conduct, etc


Source code for all of Panther's Lambda functions


Standalone Go libraries that could be directly imported by other projects. This folder is licensed under Apache v2


Magefile source and other build infrastructure


Source for the Panther web application