From 7e6e06448ddf81d28ab2523dc80f07c766c29174 Mon Sep 17 00:00:00 2001 From: Genghis Yang Date: Thu, 20 May 2021 21:31:29 +0800 Subject: [PATCH] Add all missing AWS Lambda runtimes & Update README.md --- README.md | 6 +++--- lib/dpl/providers/lambda.rb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 697ad3fce..3b674d0d4 100644 --- a/README.md +++ b/README.md @@ -441,9 +441,9 @@ Options: be given multiple times), alias: environment_variables, format: /[\w\-]+=.+/, note: Can be encrypted for added security) --runtime NAME Lambda runtime to use (type: string, default: nodejs10.x, known values: - nodejs12.x, nodejs10.x, python3.8, python3.7, python3.6, python2.7, ruby2.7, - ruby2.5, java11, java8, go1.x, dotnetcore2.1, note: required when creating a new - function) + nodejs14.x, nodejs12.x, nodejs10.x, python3.8, python3.7, python3.6, python2.7, + ruby2.7, ruby2.5, java11, java8.al2, java8, go1.x, dotnetcore3.1, dotnetcore2.1, + provided.al2, provided, note: required when creating a new function) --dead_letter_arn ARN ARN to an SNS or SQS resource used for the dead letter queue. (type: string) --kms_key_arn ARN KMS key ARN to use to encrypt environment_variables. (type: string) --tracing_mode MODE Tracing mode (type: string, default: PassThrough, known values: Active, diff --git a/lib/dpl/providers/lambda.rb b/lib/dpl/providers/lambda.rb index beaba7749..e82b15e55 100644 --- a/lib/dpl/providers/lambda.rb +++ b/lib/dpl/providers/lambda.rb @@ -32,7 +32,7 @@ class Lambda < Provider opt '--subnet_ids IDS', 'List of subnet IDs to be added to the function', type: :array, note: 'Needs the ec2:DescribeSubnets and ec2:DescribeVpcs permission for the user of the access/secret key to work' opt '--security_group_ids IDS', 'List of security group IDs to be added to the function', type: :array, note: 'Needs the ec2:DescribeSecurityGroups and ec2:DescribeVpcs permission for the user of the access/secret key to work' opt '--environment VARS', 'List of Environment Variables to add to the function', type: :array, format: /[\w\-]+=.+/, note: 'Can be encrypted for added security', alias: :environment_variables - opt '--runtime NAME', 'Lambda runtime to use', note: 'required when creating a new function', default: 'nodejs10.x', enum: %w(nodejs12.x nodejs10.x python3.8 python3.7 python3.6 python2.7 ruby2.7 ruby2.5 java11 java8 go1.x dotnetcore2.1) + opt '--runtime NAME', 'Lambda runtime to use', note: 'required when creating a new function', default: 'nodejs10.x', enum: %w(nodejs14.x nodejs12.x nodejs10.x python3.8 python3.7 python3.6 python2.7 ruby2.7 ruby2.5 java11 java8.al2 java8 go1.x dotnetcore3.1 dotnetcore2.1 provided.al2 provided) opt '--dead_letter_arn ARN', 'ARN to an SNS or SQS resource used for the dead letter queue.' opt '--kms_key_arn ARN', 'KMS key ARN to use to encrypt environment_variables.' opt '--tracing_mode MODE', 'Tracing mode', default: 'PassThrough', enum: %w(Active PassThrough), note: 'Needs xray:PutTraceSegments xray:PutTelemetryRecords on the role'