Sparta v1.15.0 Release Notes
Release Date: 2020-05-03 // about 2 years ago-
- ๐ฅ :warning: BREAKING
- :checkered_flag: CHANGES
- Added sparta.AWSLambdaProvider to encapsulate an AWS Lambda compatible instance.
- Existing
*sparta.LambdaAWSInfo
objects can be constructed from aAWSLambdaProvider
via sparta.NewAWSLambdaFromProvider. - Added
--inputExtensions
command line argument to the Explore command to support filtering eligible assets for interactive testing. - Updated
describe
output format and layout - See the SpartaCast example
- Added
sparta.Describable
interface to allow for user-supplied decorators to provide nodes and edges to the layout. - ServiceDecoratorHookHandler instances that implement Describable are eligible to be included in the layout.
- Added a
Complete
log statement to the end of log output. - Example:
INFO[0044] Complete Time (Local)="02 May 20 05:38 PDT" Time (UTC)="2020-05-02T12:38:54Z"
- Add
step.NewDynamicWaitDurationState
to allow for input-dependent wait functions.
- ๐ :bug: FIXED
- Avoid creating default state machine role when an external role is set
- Moved to PNG AWS Architecture icons for
describe
output to elimniate data-uri SVG rendering issues.
Previous changes from v1.14.0
-
- ๐ฅ :warning: BREAKING
:checkered_flag: CHANGES
- Added step.NewExpressStateMachine to support creating AWS Step Functions Express Workflows functions that support the new step function type
- Added archetype.NewEventBridgeScheduledReactor and archetype.NewEventBridgeEventReactor
- These convenience functions provide convenience constructors for EventBridge Lambda Subscribers.
- Sample usage:
func echoEventBridgeEvent(ctx context.Context, msg json.RawMessage) (interface{}, error) { logger, _ := ctx.Value(sparta.ContextKeyLogger).(*logrus.Logger) var eventData map[string]interface{} err := json.Unmarshal(msg, &eventData) logger.WithFields(logrus.Fields{ "error": err, "message": eventData, }).Info("EventBridge event") return nil, err } func main() { //... eventBridgeReactorFunc := spartaArchetype.EventBridgeReactorFunc(echoEventBridgeEvent) lambdaFn, _ := spartaArchetype.NewEventBridgeScheduledReactor(eventBridgeReactorFunc, "rate(1 minute)", nil) // Register lambdaFn }
- Updated
describe
output to use latest AWS Architecture Icons.
๐ :bug: FIXED