Building with Make

Substation includes a makefile for local development and assisting with deployment.

make check

Checks required dependencies and prints environment variable settings to stdout.

make build-go

Builds all Go binaries in the Substation repository.

make build-config

Compiles all configuration files in the Substation repository.

make build-aws-appconfig

Downloads the latest version of the AppConfig Lambda extension, which is included in all Substation AWS Lambda as a layer for retrieving configuration files from the AppConfig service.

make build-aws-substation

Builds the Substation container image using Docker.

make build-aws-autoscale

Builds the Autoscale container image using Docker.

make build-aws-validate

Builds the Validate container image using Docker.

make deploy-aws-images

Deploys all built container images to AWS ECR if the repository exists in the target AWS account.