From 520341fd464070c37f213fa137220083c7d1c391 Mon Sep 17 00:00:00 2001 From: Charbel Yakoub Date: Fri, 6 Sep 2019 13:39:04 +0200 Subject: [PATCH] Removed environment variables (#12) Environment variables that are manually set in AWS console resets for every deploy if the aws-lambda-tools-defaults.json file contains environment variables. --- .../content/EmptyEventFunction/aws-lambda-tools-defaults.json | 3 +-- .../aws-lambda-tools-defaults.json | 3 +-- .../content/RichEventFunction/aws-lambda-tools-defaults.json | 3 +-- .../RichRequestResponseFunction/aws-lambda-tools-defaults.json | 3 +-- .../content/SnsEventFunction/aws-lambda-tools-defaults.json | 3 +-- .../content/SqsEventFunction/aws-lambda-tools-defaults.json | 3 +-- 6 files changed, 6 insertions(+), 12 deletions(-) diff --git a/templates/content/EmptyEventFunction/aws-lambda-tools-defaults.json b/templates/content/EmptyEventFunction/aws-lambda-tools-defaults.json index 3b6dab8..0705eaf 100644 --- a/templates/content/EmptyEventFunction/aws-lambda-tools-defaults.json +++ b/templates/content/EmptyEventFunction/aws-lambda-tools-defaults.json @@ -17,6 +17,5 @@ "function-runtime": "dotnetcore2.0", "function-memory-size": 128, "function-timeout": 30, - "function-handler": "EmptyEventFunction::EmptyEventFunction.Function::FunctionHandlerAsync", - "environment-variables": "Environment=;" + "function-handler": "EmptyEventFunction::EmptyEventFunction.Function::FunctionHandlerAsync" } diff --git a/templates/content/EmptyRequestResponseFunction/aws-lambda-tools-defaults.json b/templates/content/EmptyRequestResponseFunction/aws-lambda-tools-defaults.json index 5c9cbd7..70706c5 100644 --- a/templates/content/EmptyRequestResponseFunction/aws-lambda-tools-defaults.json +++ b/templates/content/EmptyRequestResponseFunction/aws-lambda-tools-defaults.json @@ -17,6 +17,5 @@ "function-runtime": "dotnetcore2.1", "function-memory-size": 128, "function-timeout": 30, - "function-handler": "EmptyRequestResponseFunction::EmptyRequestResponseFunction.Function::FunctionHandlerAsync", - "environment-variables": "Environment=;" + "function-handler": "EmptyRequestResponseFunction::EmptyRequestResponseFunction.Function::FunctionHandlerAsync" } diff --git a/templates/content/RichEventFunction/aws-lambda-tools-defaults.json b/templates/content/RichEventFunction/aws-lambda-tools-defaults.json index 4f66cff..3aef9d4 100644 --- a/templates/content/RichEventFunction/aws-lambda-tools-defaults.json +++ b/templates/content/RichEventFunction/aws-lambda-tools-defaults.json @@ -17,6 +17,5 @@ "function-runtime": "dotnetcore2.1", "function-memory-size": 128, "function-timeout": 30, - "function-handler": "RichEventFunction::RichEventFunction.Function::FunctionHandlerAsync", - "environment-variables": "Environment=;" + "function-handler": "RichEventFunction::RichEventFunction.Function::FunctionHandlerAsync" } diff --git a/templates/content/RichRequestResponseFunction/aws-lambda-tools-defaults.json b/templates/content/RichRequestResponseFunction/aws-lambda-tools-defaults.json index d867df3..a5ce50b 100644 --- a/templates/content/RichRequestResponseFunction/aws-lambda-tools-defaults.json +++ b/templates/content/RichRequestResponseFunction/aws-lambda-tools-defaults.json @@ -17,6 +17,5 @@ "function-runtime": "dotnetcore2.1", "function-memory-size": 128, "function-timeout": 30, - "function-handler": "RichRequestResponseFunction::RichRequestResponseFunction.Function::FunctionHandlerAsync", - "environment-variables": "Environment=;" + "function-handler": "RichRequestResponseFunction::RichRequestResponseFunction.Function::FunctionHandlerAsync" } diff --git a/templates/content/SnsEventFunction/aws-lambda-tools-defaults.json b/templates/content/SnsEventFunction/aws-lambda-tools-defaults.json index 78ac148..8a9250d 100644 --- a/templates/content/SnsEventFunction/aws-lambda-tools-defaults.json +++ b/templates/content/SnsEventFunction/aws-lambda-tools-defaults.json @@ -17,6 +17,5 @@ "function-runtime": "dotnetcore2.1", "function-memory-size": 128, "function-timeout": 30, - "function-handler": "SnsEventFunction::SnsEventFunction.Function::FunctionHandlerAsync", - "environment-variables": "Environment=;" + "function-handler": "SnsEventFunction::SnsEventFunction.Function::FunctionHandlerAsync" } diff --git a/templates/content/SqsEventFunction/aws-lambda-tools-defaults.json b/templates/content/SqsEventFunction/aws-lambda-tools-defaults.json index 32c0b23..bbb1437 100644 --- a/templates/content/SqsEventFunction/aws-lambda-tools-defaults.json +++ b/templates/content/SqsEventFunction/aws-lambda-tools-defaults.json @@ -17,6 +17,5 @@ "function-runtime": "dotnetcore2.1", "function-memory-size": 128, "function-timeout": 30, - "function-handler": "SqsEventFunction::SqsEventFunction.Function::FunctionHandlerAsync", - "environment-variables": "Environment=;" + "function-handler": "SqsEventFunction::SqsEventFunction.Function::FunctionHandlerAsync" }