From 1462dc10a884119c0294ca0fda6f6cb4867708e4 Mon Sep 17 00:00:00 2001 From: Christos Arvanitis Date: Tue, 24 Oct 2023 16:21:43 +0300 Subject: [PATCH] fix(lambda): available Runtimes shared between Deploy stage and Functions tab (#10050) * Fix: Exporting availableRuntimes from the Stage definition for the Functions infra tab * Fixing formatting - prettier (cherry picked from commit 889d769c600e298917ec2471cd88a4bdd808ed91) --- .../configure/FunctionBasicInformation.tsx | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/packages/amazon/src/function/configure/FunctionBasicInformation.tsx b/packages/amazon/src/function/configure/FunctionBasicInformation.tsx index 545eee601e1..fe965b026b8 100644 --- a/packages/amazon/src/function/configure/FunctionBasicInformation.tsx +++ b/packages/amazon/src/function/configure/FunctionBasicInformation.tsx @@ -19,22 +19,7 @@ import { s3BucketNameValidator } from '../../aws.validators'; import type { IAmazonFunction } from '../../domain'; import type { IAmazonFunctionUpsertCommand } from '../../index'; -const availableRuntimes = [ - 'nodejs10.x', - 'nodejs12.x', - 'java8', - 'java11', - 'python2.7', - 'python3.6', - 'python3.7', - 'python3.8', - 'dotnetcore2.1', - 'dotnetcore3.1', - 'go1.x', - 'ruby2.5', - 'ruby2.7', - 'provided', -]; +import { availableRuntimes } from '../../pipeline/stages/deployLambda/components/function.constants'; export interface IFunctionProps { app: Application;