Skip to main content

Marley Tech AWS CDK Construct Library

Project description

Marley Tech AWS CDK Construct Library

A collection of useful AWS CDK Constructs.

Constructs

EventFunction

A Construct which provides the resource for triggering a Lambda Function via a EventBridge Rule. It includes the Dead Letter Queues for the delivery and the processing of the event.

Event Function Architecture Diagram

The Event Function Lambda is given the following Environment Variables:

  • PROCESSING_DLQ_ARN - the SQS Queue ARN of the Processing DLQ (to assist the Lambda Code to publish failed messages to this queue)
  • PROCESSING_DLQ_NAME - the SQS Queue Name of the Processing DLQ (to assist the Lambda Code to publish failed messages to this queue)

Resources

This Construct deploy the following resources:

  • Rule (EventBridge Rule) - The trigger or event rule which will be passed to the Event Function
  • Event Function (Lambda Function) - The code which will be executed
  • Delivery DLQ (SQS Queue) - A DLQ which undeliverable Events are pushed to (e.g. if the Event Function is unreachable)
  • Processing DLQ (SQS Queue) - A DLQ which the Event Fucntion may push Events to if it considers the Event to be unprocessable (e.g. if the Event is in an unexpected structure)
Alarms

The SQS Queues which act as DLQs have Alarms configured which are triggered when messages are posted to them. To subscribe to these Alarms, provide an SNS Topic for each DLQ.

Contributing

See CONTRIBUTING.md

Contributor Code Of Conduct

Contributor Covenant

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mt-awscdk-constructs-0.0.13.tar.gz (38.5 kB view hashes)

Uploaded Source

Built Distribution

mt_awscdk_constructs-0.0.13-py3-none-any.whl (37.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page