Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config struct { // These fields come from config.json APIName string `json:"api_name"` // AWS API Gateway Name APIStage string `json:"api_stage"` // AWS API Gateway Stage Bucket string // AWS S3 Bucket Name Region string // AWS Region Role string // AWS IAM Role for Lambda functions Table string // aWS DynamoDB Table Name AWS *session.Session DDB *dynamodb.DynamoDB }
Functions ¶
func ArchiveHook ¶
func ArchiveHook(context map[string]interface{}, serviceName string, zipWriter *zip.Writer, awsSession *session.Session, noop bool, logger *logrus.Logger) error
ArchiveHook adds config.json to the Lambda zip archive.
func ShortLambdaName ¶
func ShortLambdaName(handlerSymbol interface{}) string
ShortLambdaName strips off host/user from the sparta.LambdaName. This helps to avoid exceeding the 64-char limit on Lambda names.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.