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 |
User provided props for the sfn.StateMachine. This or existingStateMachine is required. If you provide a value for logs.destination, it must be an ILogGroup even though the prop type is ILogGroupRef. The CDK change to ILogGroupRef in v2.235.0 is incompatible with our interface without introducing breaking changes, so we still require an ILogGroup (as this implements ILogGroupRef, you can just assign it to logs.destination) |
|
|
existingEventBusInterface? |
Optional - user provided custom EventBus for this 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