Sparta v0.0.3 Release Notes

    • 💥 :warning: BREAKING
      • Changed LambdaEvent type to json.RawMessage
      • Changed AddPermissionInput type to sparta types:
      • LambdaPermission
      • S3Permission
      • SNSPermission
    • :checkered_flag: CHANGES
      • sparta.NewLambda(...) supports either string or sparta.IAMRoleDefinition types for the IAM role execution value
      • sparta.IAMRoleDefinition types implicitly create an IAM::Role resource as part of the stack
      • string values refer to pre-existing IAM rolenames
      • S3Permission type
      • S3Permission types denotes an S3 event source that should be automatically configured as part of the service definition.
      • S3's LambdaConfiguration is managed by a Lambda custom resource dynamically generated as part of in the CloudFormation template.
      • The subscription management resource is inline NodeJS code and leverages the cfn-response module.
      • SNSPermission type
      • SNSPermission types denote an SNS topic that should should send events to the target Lambda function
      • An SNS Topic's subscriber list is managed by a Lambda custom resource dynamically generated as part of in the CloudFormation template.
      • The subscription management resource is inline NodeJS code and leverages the cfn-response module.
      • LambdaPermission type
      • These denote Lambda Permissions whose event source subscriptions should NOT be managed by the service definition.
      • Improved describe output CSS and layout
      • Describe now includes push/pull Lambda event sources
      • Fixed latent bug where Lambda functions didn't have CloudFormation::Log privileges