Skip to content

Repository files navigation

CAP-XML Services

Build statusQuality Gate StatusCoverage

Synopsis

This project provides CAP XML services through the use of AWS Lambda.

Environment Variables

namedescriptionrequireddefaultnotes
stageAWS stageyes
CPX_REGIONAWS regionyes
CPX_DB_USERNAMEDatabase usernameyes
CPX_DB_PASSWORDDatabase passwordyes
CPX_DB_NAMEDatabase nameyes
CPX_DB_HOSTDatabase hostyes
CPX_AGW_URLAPI Gateway URLyes
CPX_REDIS_HOSTRedis/Elasticache hostyes
CPX_REDIS_PORTRedis/Elasticache portyes
CPX_REDIS_TLSRedis/Elasticache tlsyes
CPX_METEOALARM_API_URLMeteoalarm urlyes
CPX_METEOALARM_API_USERNAMEMeteoalarm usernameyes
CPX_METEOALARM_API_PASSWORDMeteoalarm passwordyes
CPX_METEOALARM_DISABLEMeteoalarm toggleno

Prerequisites

  • Node.js 24.x

Installing

npm ci --ignore-scripts

Running Unit Tests

npm test

Local Development

Local Development Prerequisites

  • Docker 28.02 or above
  • Docker Compose 2.34 or above

Containerisation is used to provide developers with the ability to develop, run and debug AWS Lambda functions without reliance on deployment to AWS infrastructure. This replaces Serverless local function invocation following Serverless V.3 reaching end of support and a decision not to upgrade to Serverless V.4.

Local Development Options

Contributing to this project

If you have an idea you'd like to contribute please log an issue.

All contributions should be submitted via a pull request.

License

Copyright, Environment Agency. Licensed under Creative Commons BY 4.0

About

CAP XML services

Resources

Security policy

Stars

2 stars

Watchers

13 watching

Forks

Releases

Packages

Used by

Contributors

Languages