config

package
v0.0.0-...-671933c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2021 License: MIT Imports: 11 Imported by: 0

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 Init

func Init() error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL