version: "0.1" title: Create An AWS Lambda Function description: This wizard will create a new AWS Lambda function for you plan: basics: values: function_name: type: prompt description: Enter the function name runtime: type: prompt description: Select the Lambda runtime choices: - actual_value: python2.7 display: Python 2.7 - actual_value: python3.6 display: Python 3.6 - actual_value: python3.7 display: Python 3.7 - actual_value: nodejs4.3 display: Node.js 4.3 - actual_value: nodejs6.10 display: Node.js 6.10 - actual_value: nodejs8.10 display: Node.js 8.10 - actual_value: java8 display: Java 8 - actual_value: dotnetcore1.0 display: .NET Core 1.0 (C#) - actual_value: dotnetcore2.0 display: .NET Core 2.0 (C#) - actual_value: dotnetcore2.1 display: .NET Core 2.1 (C#) - actual_value: go1. display: Go 1.x existing_roles: type: apicall operation: iam.ListRoles params: {} query: "sort_by(Roles[].{display: RoleName, actual_value: Arn}, &display)" role_arn: type: prompt description: Select the role to use choices: existing_roles handler: type: prompt description: Enter the handler for your function zip_filename: type: fileprompt description: Enter the new location of your code zip file execute: default: - type: apicall operation: lambda.CreateFunction params: FunctionName: "{function_name}" Role: "{role_arn}" Runtime: "{runtime}" Handler: "{handler}" Code: ZipFile: __wizard__:File: path: "{zip_filename}"