Documentation ¶
Index ¶
- Constants
- Variables
- func CreateFaasResource(input types.CreateFaaSResourceInput) error
- func CreateLambdaRole(input *types.CreateFaaSResourceInput) (string, string, error)
- func DeleteFaaSRepo(cfg aws.Config, name string) error
- func DeleteFaaSResource(cfg aws.Config) error
- func DeleteFaaSResourceRole(cfg aws.Config) error
- func DetachFaaSPolicies(cfg aws.Config) error
- func ListLambdas() error
- func ProvisionFaasRepo(input types.CreateFaaSResourceInput) error
- func ReadLambdaConfig() (*viper.Viper, error)
- func TryMakeFaaSResource(client *lambda.Client, functionCode lambdaTypes.FunctionCode, ...) (bool, error)
- func ValidateFunctionName(input string) error
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 DeleteFaaSResource ¶ added in v0.0.8
func DeleteFaaSResourceRole ¶ added in v0.0.8
func DetachFaaSPolicies ¶ added in v0.0.8
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 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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.