aws-eventbridge-stepfunctions
| Reference Documentation: | https://docs.aws.amazon.com/solutions/latest/constructs/ |
| Language | Package |
|---|---|
|
|
|
|
|
|
|
|
|
Overview
This AWS Solutions Construct implements an AWS Events rule and an AWS Step Functions State Machine
Here is a minimal deployable pattern definition:
Pattern Construct Props
| Name | Type | Description |
|---|---|---|
|
stateMachineProps |
Optional user provided props to override the default props for sfn.StateMachine |
|
|
existingEventBusInterface? |
Optional user-provided custom EventBus for construct to use. Providing
both this and |
|
|
eventBusProps? |
Optional user-provided properties to override the default properties
when creating a custom EventBus. Setting this value to |
|
|
eventRuleProps |
User provided eventRuleProps to override the defaults |
|
|
createCloudWatchAlarms |
|
Whether to create recommended CloudWatch alarms |
|
logGroupProps? |
User provided props to override the default props for for the CloudWatchLogs LogGroup. |
Pattern Properties
| Name | Type | Description |
|---|---|---|
|
eventBus? |
Returns the instance of events.IEventBus used by the construct |
|
|
eventsRule |
Returns an instance of events.Rule created by the construct |
|
|
stateMachine |
Returns an instance of sfn.StateMachine created by the construct |
|
|
stateMachineLogGroup |
Returns an instance of the ILogGroup created by the construct for StateMachine |
|
|
cloudwatchAlarms? |
Returns a list of cloudwatch.Alarm created by the construct |
Default settings
Out of the box implementation of the Construct without any override will set the following defaults:
Amazon CloudWatch Events Rule
-
Grant least privilege permissions to CloudWatch Events to trigger the Lambda Function
AWS Step Function
-
Enable CloudWatch logging for API Gateway
-
Deploy best practices CloudWatch Alarms for the Step Function
Architecture
Github
Go to the Github repo