faas

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const COMPOSE_TEMPLATE string = `services:
  lambda:
    build: .
    ports:
      - 9000:8080
    env_file:
      - .env`
View Source
const FAAS_CONFIG_FILE string = "faas.yaml"

Variables

View Source
var BASIC_LAMBDA_POLICY_ARN = "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
View Source
var CREATE_LAMBDA_REPOSITORY string = "create-lambda-repository"
View Source
var CheckAWSLogin func() (bool, error)
View Source
var ConfigPath = "."
View Source
var FaasRootCmd = &cobra.Command{
	Use:   "faas",
	Short: "Execute FaaS commands",
	Long:  "Configure, Create, and Execute Functions as a Service (AWS Lambdas)",
}
View Source
var LAMBDA_BASIC_EXECUTION_ROLE string = "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"

Basic execution policy for Lambda Functions.

View Source
var S3_BUCKET_NAME string = "example-lambda-apps"

Name of the S3 bucket which holds all example lambda zips

View Source
var TEMPLATE_REPO_OWNER string = "obscurelyme"

Owner of the template repos

View Source
var TRUST_POLICY_DOC string = `` /* 192-byte string literal not displayed */

Functions

func CreateFaasResource added in v0.0.8

func CreateFaasResource(input types.CreateFaaSResourceInput) error

Creates the Lambda Function, this function can take some time due to having to wait for the AWS Policies and Role to take effect so that the lambda may assume the role.

func CreateLambdaRole added in v0.0.8

func CreateLambdaRole(input *types.CreateFaaSResourceInput) (string, string, error)

func DeleteFaaSRepo added in v0.0.9

func DeleteFaaSRepo(cfg aws.Config, name string) error

func DeleteFaaSResource added in v0.0.8

func DeleteFaaSResource(cfg aws.Config) error

func DeleteFaaSResourceRole added in v0.0.8

func DeleteFaaSResourceRole(cfg aws.Config) error

func DetachFaaSPolicies added in v0.0.8

func DetachFaaSPolicies(cfg aws.Config) error

func ListLambdas added in v0.0.8

func ListLambdas() error

func ProvisionFaasRepo added in v0.0.8

func ProvisionFaasRepo(input types.CreateFaaSResourceInput) error

func ReadLambdaConfig added in v0.0.9

func ReadLambdaConfig() (*viper.Viper, error)

func TryMakeFaaSResource added in v0.0.8

func TryMakeFaaSResource(client *lambda.Client, functionCode lambdaTypes.FunctionCode, defaultTimeout int32, roleArn string, input *types.CreateFaaSResourceInput) (bool, error)

func ValidateFunctionName added in v0.0.8

func ValidateFunctionName(input string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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