=============================
This module is used to provision AWS Lambda within VPC to run on a scheduled. This will create:
- One CloudWatchEvent
- Lambda function
- IAM Role assigned to the lambda with the following policies attached: AWSLambdaBasicExecutionRole and AWSLambdaENIManagementAccess. You could add other policy that the lambda needs.
region
- Region where the lambda is deployed. The default is ap-southeast-1lambda_code_bucket
- The name of the s3 bucket where the deployment resideslambda_code_path
- Name of the S3 deployment objectlambda_name
- Unique name for Lambda functionlambda_runtime
- A valid Lambda runtime environmentlambda_handler
- The entrypoint into your Lambda functionlambda_memory_size
- The memory size allocated to your lambda functiontags
- Tags associated with the lambda functionenvironment_variables
- Environment variables for your lambda functioniam_policy_document
- Additional IAM policy document to be attached to your lambda if the lambda needs to access another AWS resource.schedule_expression
- a valid rate or cron expressionsubnet_ids
- A list of subnet ids associated with the lambdasecurity_group_ids
- A list of security group ids associated with the lambdais_vpc_lambda
- True if the lambda resides within VPC. False otherwise.
Please look at the complete example.
lambda_arn
- ARN for the created Lambda function.role_arn
- ARN of the IAM role assigned to the lambda.