Sparta v0.13.0 Release Notes
-
- 💥 :warning: BREAKING
- Removed
sparta.NewNamedLambda
. Stable, user-defined function names can be supplied via the SpartaOptions.Name field.
- Removed
:checkered_flag: CHANGES
- CloudWatch Dashboard Support!
- You can provision a CloudWatch dashboard that provides a single overview and link portal for your Lambda-based service. Use the new
sparta.DashboardDecorator
function to automatically create a dashboard. This leverages the existing WorkflowHooks functionality. - Example:
// Setup the DashboardDecorator lambda hook workflowHooks := &sparta.WorkflowHooks{ ServiceDecorator: sparta.DashboardDecorator(lambdaFunctions, 60), }
- Where the
60
value is the CloudWatch time series period. - The CloudWatch Dashboard URL will be included in your stack's Outputs as in:
INFO[0064] Stack output Description="CloudWatch Dashboard URL" Key=CloudWatchDashboardURL Value="https://us-west-2.console.aws.amazon.com/cloudwatch/home?region=us-west-2#dashboards:name=SpartaXRay-mweagle"
- Example:
- For more info, see the AWS Blog Post
- The SpartaXRay sample application has additional code samples.
- XRay support added
- added
LambdaFunctionOptions.TracingConfig
field to LambdaFunctionOptions - added XRay IAM privileges to default IAM role settings:
- xray:PutTraceSegments
- xray:PutTelemetryRecords
- See AWS blog for more information
- added LambdaFunctionOptions.Tags to support tagging AWS Lambda functions
- added SpartaGitHash output to both CLI and CloudWatch Dashboard output. This is in addition to the SpartaVersion value (which I occasionally have failed to update).
🛠 :bug: FIXED
- Fixed latent issue where
SpartaOptions.Name
field wasn't consistently used for function names.
- Fixed latent issue where
- 💥 :warning: BREAKING