From 18e6f81b25647fd87305fb3afc0186f6ca0a92e7 Mon Sep 17 00:00:00 2001 From: christosarvanitis Date: Mon, 23 Oct 2023 17:23:55 +0300 Subject: [PATCH 1/2] Fix: Exporting availableRuntimes from the Stage definition for the Functions infra tab --- .../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..e9da843b62f 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; From 04d2244c3c7f96a869e243f67f9b78577c6a1957 Mon Sep 17 00:00:00 2001 From: christosarvanitis Date: Tue, 24 Oct 2023 09:24:37 +0300 Subject: [PATCH 2/2] Fixing formatting - prettier --- .../amazon/src/function/configure/FunctionBasicInformation.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/amazon/src/function/configure/FunctionBasicInformation.tsx b/packages/amazon/src/function/configure/FunctionBasicInformation.tsx index e9da843b62f..fe965b026b8 100644 --- a/packages/amazon/src/function/configure/FunctionBasicInformation.tsx +++ b/packages/amazon/src/function/configure/FunctionBasicInformation.tsx @@ -19,7 +19,7 @@ import { s3BucketNameValidator } from '../../aws.validators'; import type { IAmazonFunction } from '../../domain'; import type { IAmazonFunctionUpsertCommand } from '../../index'; -import {availableRuntimes} from "../../pipeline/stages/deployLambda/components/function.constants"; +import { availableRuntimes } from '../../pipeline/stages/deployLambda/components/function.constants'; export interface IFunctionProps { app: Application;