From 5a9d711d8d1627cee4b539e51da0a364395d2c91 Mon Sep 17 00:00:00 2001 From: Gary Sassano <10464497+garysassano@users.noreply.github.com> Date: Thu, 30 May 2024 20:31:21 +0200 Subject: [PATCH 1/5] switch log format from text to JSON --- libs/awscdk/src/function.ts | 2 ++ libs/wingsdk/.projenrc.ts | 2 +- libs/wingsdk/cdktf.json | 2 +- libs/wingsdk/src/target-tf-aws/function.ts | 3 +++ 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/libs/awscdk/src/function.ts b/libs/awscdk/src/function.ts index 14d71f3af0b..7a9d38b5f29 100644 --- a/libs/awscdk/src/function.ts +++ b/libs/awscdk/src/function.ts @@ -5,6 +5,7 @@ import { Function as CdkFunction, Code, Runtime, + LogFormat, } from "aws-cdk-lib/aws-lambda"; import { LogGroup, RetentionDays } from "aws-cdk-lib/aws-logs"; import { Asset } from "aws-cdk-lib/aws-s3-assets"; @@ -181,6 +182,7 @@ export class Function memorySize: props.memory ?? 1024, architecture: Architecture.ARM_64, logGroup: logs, + logFormat: LogFormat.JSON, }); } diff --git a/libs/wingsdk/.projenrc.ts b/libs/wingsdk/.projenrc.ts index 3ebe2dcbaf8..76c96d43d2f 100644 --- a/libs/wingsdk/.projenrc.ts +++ b/libs/wingsdk/.projenrc.ts @@ -5,7 +5,7 @@ const CDKTF_VERSION = "0.20.3"; const AWS_SDK_VERSION = "3.577.0"; const CDKTF_PROVIDERS = [ - "aws@~>5.31.0", + "aws@~>5.51.0", "random@~>3.5.1", "azurerm@~>3.96.0", "google@~>5.10.0", diff --git a/libs/wingsdk/cdktf.json b/libs/wingsdk/cdktf.json index 9c028d3b83e..e37190ed018 100644 --- a/libs/wingsdk/cdktf.json +++ b/libs/wingsdk/cdktf.json @@ -2,7 +2,7 @@ "language": "typescript", "app": "echo noop", "terraformProviders": [ - "aws@~>5.31.0", + "aws@~>5.51.0", "random@~>3.5.1", "azurerm@~>3.96.0", "google@~>5.10.0" diff --git a/libs/wingsdk/src/target-tf-aws/function.ts b/libs/wingsdk/src/target-tf-aws/function.ts index 5a68c137b9a..86c8c7101e5 100644 --- a/libs/wingsdk/src/target-tf-aws/function.ts +++ b/libs/wingsdk/src/target-tf-aws/function.ts @@ -230,6 +230,9 @@ export class Function extends cloud.Function implements IAwsFunction { : Duration.fromMinutes(1).seconds, memorySize: props.memory ?? DEFAULT_MEMORY_SIZE, architectures: ["arm64"], + loggingConfig: { + logFormat: "JSON", + }, }); if (app.parameters.value("tf-aws/vpc_lambda") === true) { From 69a196017d049f178a6130f47380d5b2d6d285cc Mon Sep 17 00:00:00 2001 From: Gary Sassano <10464497+garysassano@users.noreply.github.com> Date: Thu, 4 Jul 2024 02:26:54 +0200 Subject: [PATCH 2/5] update aws tf provider --- apps/wing/src/commands/test/fixtures/main.w.tf-aws.snap.md | 2 +- libs/wingsdk/.projenrc.ts | 2 +- libs/wingsdk/cdktf.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/wing/src/commands/test/fixtures/main.w.tf-aws.snap.md b/apps/wing/src/commands/test/fixtures/main.w.tf-aws.snap.md index 2e5ede67ab4..905b7e2dfd8 100644 --- a/apps/wing/src/commands/test/fixtures/main.w.tf-aws.snap.md +++ b/apps/wing/src/commands/test/fixtures/main.w.tf-aws.snap.md @@ -42,7 +42,7 @@ "required_providers": { "aws": { "source": "aws", - "version": "5.31.0" + "version": "5.56.1" } } } diff --git a/libs/wingsdk/.projenrc.ts b/libs/wingsdk/.projenrc.ts index 76c96d43d2f..3c2df8c7e4b 100644 --- a/libs/wingsdk/.projenrc.ts +++ b/libs/wingsdk/.projenrc.ts @@ -5,7 +5,7 @@ const CDKTF_VERSION = "0.20.3"; const AWS_SDK_VERSION = "3.577.0"; const CDKTF_PROVIDERS = [ - "aws@~>5.51.0", + "aws@~>5.56.1", "random@~>3.5.1", "azurerm@~>3.96.0", "google@~>5.10.0", diff --git a/libs/wingsdk/cdktf.json b/libs/wingsdk/cdktf.json index e37190ed018..8d5b66f9d8c 100644 --- a/libs/wingsdk/cdktf.json +++ b/libs/wingsdk/cdktf.json @@ -2,7 +2,7 @@ "language": "typescript", "app": "echo noop", "terraformProviders": [ - "aws@~>5.51.0", + "aws@~>5.56.1", "random@~>3.5.1", "azurerm@~>3.96.0", "google@~>5.10.0" From cab4a95cc090bd9bf422dd72ff96c00fed47e743 Mon Sep 17 00:00:00 2001 From: "monada-bot[bot]" Date: Thu, 4 Jul 2024 00:41:44 +0000 Subject: [PATCH 3/5] chore: self mutation (build.diff) Signed-off-by: monada-bot[bot] --- .../test/__snapshots__/api.test.ts.snap | 22 +++++++++++++++ .../test/__snapshots__/bucket.test.ts.snap | 6 +++++ .../test/__snapshots__/counter.test.ts.snap | 5 ++++ .../test/__snapshots__/function.test.ts.snap | 8 ++++++ .../test/__snapshots__/on-deploy.test.ts.snap | 3 +++ .../test/__snapshots__/queue.test.ts.snap | 1 + .../test/__snapshots__/schedule.test.ts.snap | 6 +++++ .../test/__snapshots__/topic.test.ts.snap | 3 +++ .../__snapshots__/bucket.test.ts.snap | 18 +++++++++++++ .../__snapshots__/captures.test.ts.snap | 21 +++++++++++++++ .../__snapshots__/counter.test.ts.snap | 15 +++++++++++ .../__snapshots__/function.test.ts.snap | 27 +++++++++++++++++++ .../__snapshots__/logger.test.ts.snap | 3 +++ .../__snapshots__/on-deploy.test.ts.snap | 9 +++++++ .../__snapshots__/queue.test.ts.snap | 15 +++++++++++ .../__snapshots__/schedule.test.ts.snap | 18 +++++++++++++ .../__snapshots__/table.test.ts.snap | 3 +++ .../__snapshots__/tokens.test.ts.snap | 6 +++++ .../__snapshots__/topic.test.ts.snap | 3 +++ 19 files changed, 192 insertions(+) diff --git a/libs/awscdk/test/__snapshots__/api.test.ts.snap b/libs/awscdk/test/__snapshots__/api.test.ts.snap index e9f77291c68..5be32eb05e1 100644 --- a/libs/awscdk/test/__snapshots__/api.test.ts.snap +++ b/libs/awscdk/test/__snapshots__/api.test.ts.snap @@ -321,6 +321,7 @@ exports[`api configured for cors 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "Apiget0LogGroupB0A43FFB", }, @@ -621,6 +622,7 @@ exports[`api url can be used as environment variable 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "FnLogGroup27CC2AC8", }, @@ -990,6 +992,7 @@ exports[`api with 'name' & 'age' parameter 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "Apigetnameage0LogGroup06FA8F29", }, @@ -1351,6 +1354,7 @@ exports[`api with 'name' parameter 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "Apigetname0LogGroup8430423E", }, @@ -1703,6 +1707,7 @@ exports[`api with CONNECT route 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "Apiconnect0LogGroup1650F1E1", }, @@ -2055,6 +2060,7 @@ exports[`api with DELETE route 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "Apidelete0LogGroupD287E557", }, @@ -2407,6 +2413,7 @@ exports[`api with GET route at root 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "Apiget0LogGroupB0A43FFB", }, @@ -2835,6 +2842,7 @@ exports[`api with GET routes with common prefix 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "Apigethellobat0LogGroup462CC819", }, @@ -2911,6 +2919,7 @@ exports[`api with GET routes with common prefix 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "Apigethellofoo0LogGroup02F88FE3", }, @@ -3339,6 +3348,7 @@ exports[`api with GET routes with different prefix 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "Apigetfoobar0LogGroup83F006C8", }, @@ -3415,6 +3425,7 @@ exports[`api with GET routes with different prefix 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "Apigethellofoo0LogGroup02F88FE3", }, @@ -3767,6 +3778,7 @@ exports[`api with HEAD route 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "Apihead0LogGroup1D4A092E", }, @@ -4119,6 +4131,7 @@ exports[`api with OPTIONS route 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "Apioptions0LogGroup9252C37D", }, @@ -4471,6 +4484,7 @@ exports[`api with PATCH route 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "Apipatch0LogGroupB991FA81", }, @@ -4823,6 +4837,7 @@ exports[`api with POST route 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "Apipost0LogGroup0EB50BDA", }, @@ -5175,6 +5190,7 @@ exports[`api with PUT route 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "Apiput0LogGroupD231D4EA", }, @@ -5603,6 +5619,7 @@ exports[`api with multiple GET route and one lambda 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "Apigethellofoo0LogGroup02F88FE3", }, @@ -6031,6 +6048,7 @@ exports[`api with multiple methods and multiple lambda 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "Apigethellofoo0LogGroup02F88FE3", }, @@ -6107,6 +6125,7 @@ exports[`api with multiple methods and multiple lambda 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "Apiposthellobat0LogGroup4E1A6722", }, @@ -6535,6 +6554,7 @@ exports[`api with multiple methods and one lambda 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "Apigethellofoo0LogGroup02F88FE3", }, @@ -6961,6 +6981,7 @@ exports[`api with multiple methods on same route 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "Apiget0LogGroupB0A43FFB", }, @@ -7322,6 +7343,7 @@ exports[`api with path parameter 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "Apigethelloworld0LogGroupDD091C4B", }, diff --git a/libs/awscdk/test/__snapshots__/bucket.test.ts.snap b/libs/awscdk/test/__snapshots__/bucket.test.ts.snap index fe3ad839e4a..ebb720ed616 100644 --- a/libs/awscdk/test/__snapshots__/bucket.test.ts.snap +++ b/libs/awscdk/test/__snapshots__/bucket.test.ts.snap @@ -370,6 +370,7 @@ def submit_response(event: dict, context, response_status: str, error_message: s }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "mybucketOnCreate0LogGroup8E3C4A72", }, @@ -729,6 +730,7 @@ def submit_response(event: dict, context, response_status: str, error_message: s }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "mybucketOnDelete0LogGroup44992347", }, @@ -1156,6 +1158,7 @@ def submit_response(event: dict, context, response_status: str, error_message: s }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "mybucketOnCreate0LogGroup8E3C4A72", }, @@ -1232,6 +1235,7 @@ def submit_response(event: dict, context, response_status: str, error_message: s }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "mybucketOnDelete0LogGroup44992347", }, @@ -1308,6 +1312,7 @@ def submit_response(event: dict, context, response_status: str, error_message: s }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "mybucketOnUpdate0LogGroupFDC75EA3", }, @@ -1667,6 +1672,7 @@ def submit_response(event: dict, context, response_status: str, error_message: s }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "mybucketOnUpdate0LogGroupFDC75EA3", }, diff --git a/libs/awscdk/test/__snapshots__/counter.test.ts.snap b/libs/awscdk/test/__snapshots__/counter.test.ts.snap index 918a5922442..6ce041817fd 100644 --- a/libs/awscdk/test/__snapshots__/counter.test.ts.snap +++ b/libs/awscdk/test/__snapshots__/counter.test.ts.snap @@ -134,6 +134,7 @@ exports[`dec() policy statement 2`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "FunctionLogGroup55B80E27", }, @@ -380,6 +381,7 @@ exports[`function with a counter binding 2`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "FunctionLogGroup55B80E27", }, @@ -565,6 +567,7 @@ exports[`inc() policy statement 2`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "FunctionLogGroup55B80E27", }, @@ -750,6 +753,7 @@ exports[`peek() policy statement 2`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "FunctionLogGroup55B80E27", }, @@ -935,6 +939,7 @@ exports[`set() policy statement 2`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "FunctionLogGroup55B80E27", }, diff --git a/libs/awscdk/test/__snapshots__/function.test.ts.snap b/libs/awscdk/test/__snapshots__/function.test.ts.snap index 37770b5b07b..f5498805610 100644 --- a/libs/awscdk/test/__snapshots__/function.test.ts.snap +++ b/libs/awscdk/test/__snapshots__/function.test.ts.snap @@ -31,6 +31,7 @@ exports[`basic function 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "FunctionLogGroup55B80E27", }, @@ -148,6 +149,7 @@ exports[`basic function with custom log retention 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "FunctionLogGroup55B80E27", }, @@ -267,6 +269,7 @@ exports[`basic function with environment variables 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "FunctionLogGroup55B80E27", }, @@ -384,6 +387,7 @@ exports[`basic function with infinite log retention 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "FunctionLogGroup55B80E27", }, @@ -498,6 +502,7 @@ exports[`basic function with memory size specified 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "FunctionLogGroup55B80E27", }, @@ -615,6 +620,7 @@ exports[`basic function with standard log retention 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "FunctionLogGroup55B80E27", }, @@ -732,6 +738,7 @@ exports[`basic function with timeout explicitly set 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "FunctionLogGroup55B80E27", }, @@ -849,6 +856,7 @@ exports[`source map setting 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "FunctionLogGroup55B80E27", }, diff --git a/libs/awscdk/test/__snapshots__/on-deploy.test.ts.snap b/libs/awscdk/test/__snapshots__/on-deploy.test.ts.snap index 5e42c70b0e0..dc56331a012 100644 --- a/libs/awscdk/test/__snapshots__/on-deploy.test.ts.snap +++ b/libs/awscdk/test/__snapshots__/on-deploy.test.ts.snap @@ -226,6 +226,7 @@ exports[`create an OnDeploy 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "myondeployFunctionLogGroup6E16B2CD", }, @@ -587,6 +588,7 @@ exports[`execute OnDeploy after other resources 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "myondeployFunctionLogGroup6E16B2CD", }, @@ -954,6 +956,7 @@ exports[`execute OnDeploy before other resources 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "myondeployFunctionLogGroup6E16B2CD", }, diff --git a/libs/awscdk/test/__snapshots__/queue.test.ts.snap b/libs/awscdk/test/__snapshots__/queue.test.ts.snap index 8d8b0eb5892..acbc91006e6 100644 --- a/libs/awscdk/test/__snapshots__/queue.test.ts.snap +++ b/libs/awscdk/test/__snapshots__/queue.test.ts.snap @@ -93,6 +93,7 @@ exports[`queue with a consumer function 2`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "QueueSetConsumer0LogGroupC0386522", }, diff --git a/libs/awscdk/test/__snapshots__/schedule.test.ts.snap b/libs/awscdk/test/__snapshots__/schedule.test.ts.snap index 63bb0e132ba..1ebc7b47fbd 100644 --- a/libs/awscdk/test/__snapshots__/schedule.test.ts.snap +++ b/libs/awscdk/test/__snapshots__/schedule.test.ts.snap @@ -68,6 +68,7 @@ exports[`convert single dayOfWeek from Unix to AWS 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "ScheduleOnTick0LogGroup389684B1", }, @@ -222,6 +223,7 @@ exports[`convert the list of dayOfWeek from Unix to AWS 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "ScheduleOnTick0LogGroup389684B1", }, @@ -376,6 +378,7 @@ exports[`convert the range of dayOfWeek from Unix to AWS 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "ScheduleOnTick0LogGroup389684B1", }, @@ -530,6 +533,7 @@ exports[`schedule behavior with cron 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "ScheduleOnTick0LogGroup389684B1", }, @@ -684,6 +688,7 @@ exports[`schedule behavior with rate 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "ScheduleOnTick0LogGroup389684B1", }, @@ -838,6 +843,7 @@ exports[`schedule with two functions 1`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "ScheduleOnTick0LogGroup389684B1", }, diff --git a/libs/awscdk/test/__snapshots__/topic.test.ts.snap b/libs/awscdk/test/__snapshots__/topic.test.ts.snap index b6c343f77ef..4192fa46144 100644 --- a/libs/awscdk/test/__snapshots__/topic.test.ts.snap +++ b/libs/awscdk/test/__snapshots__/topic.test.ts.snap @@ -124,6 +124,7 @@ exports[`topic with multiple subscribers 3`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "TopicOnMessage0LogGroup83A2C34E", }, @@ -231,6 +232,7 @@ exports[`topic with multiple subscribers 3`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "TopicOnMessage1LogGroup54716DB9", }, @@ -397,6 +399,7 @@ exports[`topic with subscriber function 2`] = ` }, "Handler": "index.handler", "LoggingConfig": { + "LogFormat": "JSON", "LogGroup": { "Ref": "TopicOnMessage0LogGroup83A2C34E", }, diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/bucket.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/bucket.test.ts.snap index 9e6b998fd45..9c8e388b04b 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/bucket.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/bucket.test.ts.snap @@ -354,6 +354,9 @@ exports[`bucket with onCreate method 1`] = ` }, "function_name": "OnCreate-OnMessage0-c8b6ea23", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.my_bucket_OnCreate-OnMessage0_IamRole_A815D0BA.arn}", @@ -741,6 +744,9 @@ exports[`bucket with onDelete method 1`] = ` }, "function_name": "OnDelete-OnMessage0-c804d7e9", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.my_bucket_OnDelete-OnMessage0_IamRole_F99741C4.arn}", @@ -1158,6 +1164,9 @@ exports[`bucket with onEvent method 1`] = ` }, "function_name": "OnCreate-OnMessage0-c8b6ea23", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.my_bucket_OnCreate-OnMessage0_IamRole_A815D0BA.arn}", @@ -1182,6 +1191,9 @@ exports[`bucket with onEvent method 1`] = ` }, "function_name": "OnDelete-OnMessage0-c804d7e9", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.my_bucket_OnDelete-OnMessage0_IamRole_F99741C4.arn}", @@ -1206,6 +1218,9 @@ exports[`bucket with onEvent method 1`] = ` }, "function_name": "OnUpdate-OnMessage0-c81076cf", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.my_bucket_OnUpdate-OnMessage0_IamRole_846F92CF.arn}", @@ -1909,6 +1924,9 @@ exports[`bucket with onUpdate method 1`] = ` }, "function_name": "OnUpdate-OnMessage0-c81076cf", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.my_bucket_OnUpdate-OnMessage0_IamRole_846F92CF.arn}", diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/captures.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/captures.test.ts.snap index 8db78160736..e1bc00db84f 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/captures.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/captures.test.ts.snap @@ -89,6 +89,9 @@ exports[`function with a function binding 3`] = ` }, "function_name": "Function1-c87c16f1", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Function1_IamRole_8B9BC80D.arn}", @@ -114,6 +117,9 @@ exports[`function with a function binding 3`] = ` }, "function_name": "Function2-c827e998", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Function2_IamRole_62EBED55.arn}", @@ -247,6 +253,9 @@ exports[`function with a queue binding 3`] = ` }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Function_IamRole_678BE84C.arn}", @@ -271,6 +280,9 @@ exports[`function with a queue binding 3`] = ` }, "function_name": "Queue-SetConsumer0-c83c303c", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Queue-SetConsumer0_IamRole_7F9ED9ED.arn}", @@ -352,6 +364,9 @@ exports[`function with bucket binding > put operation 1`] = ` }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Function_IamRole_678BE84C.arn}", @@ -439,6 +454,9 @@ exports[`two functions reusing the same IFunctionHandler 1`] = ` }, "function_name": "Function1-c87c16f1", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Function1_IamRole_8B9BC80D.arn}", @@ -463,6 +481,9 @@ exports[`two functions reusing the same IFunctionHandler 1`] = ` }, "function_name": "Function2-c827e998", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Function2_IamRole_62EBED55.arn}", diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/counter.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/counter.test.ts.snap index 5cf76d44c65..b813f9c6ab7 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/counter.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/counter.test.ts.snap @@ -253,6 +253,9 @@ exports[`dec() policy statement 1`] = ` }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Function_IamRole_678BE84C.arn}", @@ -550,6 +553,9 @@ exports[`function with a counter binding 2`] = ` }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Function_IamRole_678BE84C.arn}", @@ -809,6 +815,9 @@ exports[`inc() policy statement 1`] = ` }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Function_IamRole_678BE84C.arn}", @@ -1068,6 +1077,9 @@ exports[`peek() policy statement 1`] = ` }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Function_IamRole_678BE84C.arn}", @@ -1427,6 +1439,9 @@ exports[`set() policy statement 1`] = ` }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Function_IamRole_678BE84C.arn}", diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/function.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/function.test.ts.snap index 3627a2df749..355d9a9a2ff 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/function.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/function.test.ts.snap @@ -39,6 +39,9 @@ exports[`basic function 1`] = ` }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Function_IamRole_678BE84C.arn}", @@ -261,6 +264,9 @@ exports[`basic function with custom log retention 1`] = ` }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Function_IamRole_678BE84C.arn}", @@ -485,6 +491,9 @@ exports[`basic function with environment variables 1`] = ` }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Function_IamRole_678BE84C.arn}", @@ -701,6 +710,9 @@ exports[`basic function with infinite log retention 1`] = ` }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Function_IamRole_678BE84C.arn}", @@ -914,6 +926,9 @@ exports[`basic function with memory size specified 1`] = ` }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 512, "publish": true, "role": "\${aws_iam_role.Function_IamRole_678BE84C.arn}", @@ -1136,6 +1151,9 @@ exports[`basic function with timeout explicitly set 1`] = ` }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Function_IamRole_678BE84C.arn}", @@ -1358,6 +1376,9 @@ exports[`function name valid 1`] = ` }, "function_name": "The-Mighty_Function-01-c86057f3", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.The-Mighty_Function-01_IamRole_590EA29B.arn}", @@ -1596,6 +1617,9 @@ exports[`function will be behind a vpc when vpc_lambda is set to true 1`] = ` }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Function_IamRole_678BE84C.arn}", @@ -1819,6 +1843,9 @@ exports[`replace invalid character from function name 1`] = ` }, "function_name": "The-Mighty-Function-c86ccf73", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.TheMightyFunction_IamRole_5421E649.arn}", diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/logger.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/logger.test.ts.snap index 1b8d6fa9ccc..ac3927eaeec 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/logger.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/logger.test.ts.snap @@ -54,6 +54,9 @@ exports[`inflight function uses a logger 2`] = ` }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Function_IamRole_678BE84C.arn}", diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/on-deploy.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/on-deploy.test.ts.snap index dce4cbba056..471a83c0958 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/on-deploy.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/on-deploy.test.ts.snap @@ -48,6 +48,9 @@ exports[`create an OnDeploy 1`] = ` }, "function_name": "Function-c88c90bc", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.my_on_deploy_Function_IamRole_76DF13CA.arn}", @@ -304,6 +307,9 @@ exports[`execute OnDeploy after other resources 1`] = ` }, "function_name": "Function-c88c90bc", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.my_on_deploy_Function_IamRole_76DF13CA.arn}", @@ -585,6 +591,9 @@ exports[`execute OnDeploy before other resources 1`] = ` }, "function_name": "Function-c88c90bc", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.my_on_deploy_Function_IamRole_76DF13CA.arn}", diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/queue.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/queue.test.ts.snap index e7fbac38e3d..767b8f6a826 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/queue.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/queue.test.ts.snap @@ -85,6 +85,9 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 1`] }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Function_IamRole_678BE84C.arn}", @@ -110,6 +113,9 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 1`] }, "function_name": "Handler-c85cfbef", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.QueueRef_AwsConsoleField_Handler_IamRole_0DD0004C.arn}", @@ -134,6 +140,9 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 1`] }, "function_name": "Handler-c8c3c90a", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.QueueRef_QueueArnField_Handler_IamRole_C121BD5E.arn}", @@ -159,6 +168,9 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 1`] }, "function_name": "Handler-c8ec121e", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.QueueRef_QueueUrlField_Handler_IamRole_709A15CB.arn}", @@ -898,6 +910,9 @@ exports[`queue with a consumer function 2`] = ` }, "function_name": "Queue-SetConsumer0-c83c303c", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Queue-SetConsumer0_IamRole_7F9ED9ED.arn}", diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/schedule.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/schedule.test.ts.snap index d6108f1c004..1ad2cfbd41b 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/schedule.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/schedule.test.ts.snap @@ -50,6 +50,9 @@ exports[`convert single dayOfWeek from Unix to AWS 1`] = ` }, "function_name": "OnTick0-c8e1d4a8", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Schedule_OnTick0_IamRole_478B0576.arn}", @@ -333,6 +336,9 @@ exports[`convert the list of dayOfWeek from Unix to AWS 1`] = ` }, "function_name": "OnTick0-c8e1d4a8", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Schedule_OnTick0_IamRole_478B0576.arn}", @@ -616,6 +622,9 @@ exports[`convert the range of dayOfWeek from Unix to AWS 1`] = ` }, "function_name": "OnTick0-c8e1d4a8", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Schedule_OnTick0_IamRole_478B0576.arn}", @@ -899,6 +908,9 @@ exports[`schedule behavior with cron 1`] = ` }, "function_name": "OnTick0-c8e1d4a8", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Schedule_OnTick0_IamRole_478B0576.arn}", @@ -1182,6 +1194,9 @@ exports[`schedule behavior with rate 1`] = ` }, "function_name": "OnTick0-c8e1d4a8", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Schedule_OnTick0_IamRole_478B0576.arn}", @@ -1465,6 +1480,9 @@ exports[`schedule with two functions 1`] = ` }, "function_name": "OnTick0-c8e1d4a8", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Schedule_OnTick0_IamRole_478B0576.arn}", diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/table.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/table.test.ts.snap index 62954e1a399..317fc88be98 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/table.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/table.test.ts.snap @@ -98,6 +98,9 @@ exports[`function with a table binding 2`] = ` }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Function_IamRole_678BE84C.arn}", diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/tokens.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/tokens.test.ts.snap index bb53a931bb4..3d42b916d9e 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/tokens.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/tokens.test.ts.snap @@ -102,6 +102,9 @@ exports[`captures tokens 2`] = ` }, "function_name": "get_0-c86d29bb", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Api_get_0_IamRole_2FAC475D.arn}", @@ -252,6 +255,9 @@ exports[`captures tokens inside plain objects 2`] = ` }, "function_name": "get_0-c86d29bb", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Api_get_0_IamRole_2FAC475D.arn}", diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/topic.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/topic.test.ts.snap index 2993dcb76ec..6987b409c6b 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/topic.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/topic.test.ts.snap @@ -332,6 +332,9 @@ exports[`topic with subscriber function 2`] = ` }, "function_name": "Topic-OnMessage0-c85d7820", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Topic-OnMessage0_IamRole_64DD36FA.arn}", From 2d29afaedc008abe6d93f7989dc17c401a2cb398 Mon Sep 17 00:00:00 2001 From: "monada-bot[bot]" Date: Thu, 4 Jul 2024 00:41:45 +0000 Subject: [PATCH 4/5] chore: self mutation (e2e-1of2.diff) Signed-off-by: monada-bot[bot] --- tools/hangar/__snapshots__/platform.ts.snap | 18 ++++++++++++++++++ .../api/cors.test.w_compile_tf-aws.md | 3 +++ .../sdk_tests/api/env.test.w_compile_tf-aws.md | 3 +++ .../sdk_tests/api/get.test.w_compile_tf-aws.md | 9 +++++++++ .../api/path_vars.test.w_compile_tf-aws.md | 6 ++++++ .../api/post.test.w_compile_tf-aws.md | 3 +++ .../endpoint/url.test.w_compile_tf-aws.md | 3 +++ .../function-ref.test.w_compile_tf-aws.md | 9 +++++++++ .../function/logging.test.w_compile_tf-aws.md | 6 ++++++ .../http/fetch.test.w_compile_tf-aws.md | 9 +++++++++ .../execute_after.test.w_compile_tf-aws.md | 6 ++++++ .../dead-letter-queue.test.w_compile_tf-aws.md | 6 ++++++ .../queue/queue-ref.test.w_compile_tf-aws.md | 15 +++++++++++++++ .../schedule/on_tick.test.w_compile_tf-aws.md | 6 ++++++ .../topic/no_blocking.test.w_compile_tf-aws.md | 3 +++ .../topic/on_message.test.w_compile_tf-aws.md | 6 ++++++ .../subscribe-queue.test.w_compile_tf-aws.md | 9 +++++++++ .../api_valid_path.test.w_compile_tf-aws.md | 6 ++++++ ...await_in_functions.test.w_compile_tf-aws.md | 6 ++++++ ...capture_primitives.test.w_compile_tf-aws.md | 3 +++ .../valid/doubler.test.w_compile_tf-aws.md | 3 +++ ...ern_implementation.test.w_compile_tf-aws.md | 3 +++ .../file_counter.test.w_compile_tf-aws.md | 3 +++ .../valid/hello.test.w_compile_tf-aws.md | 3 +++ ...flight-subscribers.test.w_compile_tf-aws.md | 6 ++++++ ...herit_stdlib_class.test.w_compile_tf-aws.md | 3 +++ .../valid/intrinsics.test.w_compile_tf-aws.md | 3 +++ .../valid/issue_2889.test.w_compile_tf-aws.md | 3 +++ ...ft_shared_resource.test.w_compile_tf-aws.md | 3 +++ ...n_after_class_init.test.w_compile_tf-aws.md | 3 +++ .../valid/redis.test.w_compile_tf-aws.md | 3 +++ .../valid/resource.test.w_compile_tf-aws.md | 9 +++++++++ ...s_inflight_literal.test.w_compile_tf-aws.md | 3 +++ ...nside_init_closure.test.w_compile_tf-aws.md | 3 +++ .../while_loop_await.test.w_compile_tf-aws.md | 3 +++ 35 files changed, 189 insertions(+) diff --git a/tools/hangar/__snapshots__/platform.ts.snap b/tools/hangar/__snapshots__/platform.ts.snap index e84f71a2ae4..56ba2bbc1b7 100644 --- a/tools/hangar/__snapshots__/platform.ts.snap +++ b/tools/hangar/__snapshots__/platform.ts.snap @@ -99,6 +99,9 @@ exports[`Multiple platforms > only first platform app is used 1`] = ` }, "function_name": "Queue-SetConsumer0-c83c303c", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Queue-SetConsumer0_IamRole_7F9ED9ED.arn}", @@ -263,6 +266,9 @@ exports[`Platform examples > AWS target platform > permission-boundary.js 1`] = }, "function_name": "Queue-SetConsumer0-c83c303c", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Queue-SetConsumer0_IamRole_7F9ED9ED.arn}", @@ -496,6 +502,9 @@ exports[`Platform examples > AWS target platform > replicate-s3.js 1`] = ` }, "function_name": "Queue-SetConsumer0-c83c303c", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Queue-SetConsumer0_IamRole_7F9ED9ED.arn}", @@ -777,6 +786,9 @@ exports[`Platform examples > AWS target platform > tf-backend.js > azurerm backe }, "function_name": "Queue-SetConsumer0-c83c303c", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Queue-SetConsumer0_IamRole_7F9ED9ED.arn}", @@ -940,6 +952,9 @@ exports[`Platform examples > AWS target platform > tf-backend.js > gcp backend 1 }, "function_name": "Queue-SetConsumer0-c83c303c", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Queue-SetConsumer0_IamRole_7F9ED9ED.arn}", @@ -1103,6 +1118,9 @@ exports[`Platform examples > AWS target platform > tf-backend.js > s3 backend 1` }, "function_name": "Queue-SetConsumer0-c83c303c", "handler": "index.handler", + "logging_config": { + "log_format": "JSON", + }, "memory_size": 1024, "publish": true, "role": "\${aws_iam_role.Queue-SetConsumer0_IamRole_7F9ED9ED.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/cors.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/cors.test.w_compile_tf-aws.md index a327540a22d..9e6a69b2ccf 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/cors.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/cors.test.w_compile_tf-aws.md @@ -167,6 +167,9 @@ }, "function_name": "get_path0-c8789d12", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_get_path0_IamRole_66BB88D8.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/env.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/env.test.w_compile_tf-aws.md index 4471901e59d..7e9e38ba583 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/env.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/env.test.w_compile_tf-aws.md @@ -168,6 +168,9 @@ }, "function_name": "get_path0-c8789d12", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_get_path0_IamRole_66BB88D8.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/get.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/get.test.w_compile_tf-aws.md index 0c0cb69fc2b..2c4609b2c76 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/get.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/get.test.w_compile_tf-aws.md @@ -245,6 +245,9 @@ }, "function_name": "get_default-response0-c8ce77c1", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_get_default-response0_IamRole_A864CAEB.arn}", @@ -276,6 +279,9 @@ }, "function_name": "get_default-status0-c8c4d89b", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_get_default-status0_IamRole_39C8F206.arn}", @@ -307,6 +313,9 @@ }, "function_name": "get_path0-c8789d12", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_get_path0_IamRole_66BB88D8.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/path_vars.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/path_vars.test.w_compile_tf-aws.md index 66be21d4186..f8badb9ba15 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/path_vars.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/path_vars.test.w_compile_tf-aws.md @@ -206,6 +206,9 @@ }, "function_name": "get_path_-name_-age0-c8e1843f", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_get_path_name_age0_IamRole_02E21B80.arn}", @@ -237,6 +240,9 @@ }, "function_name": "get_users_-name0-c8831d94", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_get_users_name0_IamRole_B9DD1767.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/post.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/post.test.w_compile_tf-aws.md index 2b0f508898d..80014dccc25 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/post.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/post.test.w_compile_tf-aws.md @@ -167,6 +167,9 @@ }, "function_name": "post_0-c8d25f85", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_post_0_IamRole_5AF65E98.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/endpoint/url.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/endpoint/url.test.w_compile_tf-aws.md index 2caf1d6975c..521b5d58367 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/endpoint/url.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/endpoint/url.test.w_compile_tf-aws.md @@ -173,6 +173,9 @@ }, "function_name": "get_0-c86d29bb", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_get_0_IamRole_2FAC475D.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/function-ref.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/function-ref.test.w_compile_tf-aws.md index d5a8c1d3394..c69fd794a9e 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/function-ref.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/function-ref.test.w_compile_tf-aws.md @@ -181,6 +181,9 @@ }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Function_IamRole_678BE84C.arn}", @@ -213,6 +216,9 @@ }, "function_name": "Handler-c89bc30b", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.FunctionRef_AwsConsoleField_Handler_IamRole_8EE0F0F7.arn}", @@ -245,6 +251,9 @@ }, "function_name": "Handler-c8f37d21", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.FunctionRef_FunctionArnField_Handler_IamRole_87E7076C.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/logging.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/logging.test.w_compile_tf-aws.md index e485e963ef2..d2a6a482175 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/logging.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/logging.test.w_compile_tf-aws.md @@ -122,6 +122,9 @@ }, "function_name": "f1-c8545025", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.f1_IamRole_FD68C58F.arn}", @@ -154,6 +157,9 @@ }, "function_name": "f2-c812cd39", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.f2_IamRole_B66911B2.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/http/fetch.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/http/fetch.test.w_compile_tf-aws.md index 83699751550..d172e677045 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/http/fetch.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/http/fetch.test.w_compile_tf-aws.md @@ -245,6 +245,9 @@ }, "function_name": "get_delayed0-c890c00c", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_get_delayed0_IamRole_BF4D162F.arn}", @@ -277,6 +280,9 @@ }, "function_name": "get_redirect0-c8014f2b", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_get_redirect0_IamRole_C9E5BF5A.arn}", @@ -308,6 +314,9 @@ }, "function_name": "get_target0-c8691704", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_get_target0_IamRole_865D04CC.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/on_deploy/execute_after.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/on_deploy/execute_after.test.w_compile_tf-aws.md index 544f2a7c294..3ab376f353f 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/on_deploy/execute_after.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/on_deploy/execute_after.test.w_compile_tf-aws.md @@ -176,6 +176,9 @@ }, "function_name": "Function-c899c2a8", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.init1_Function_IamRole_3B884CB0.arn}", @@ -208,6 +211,9 @@ }, "function_name": "Function-c86c3d88", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.init2_Function_IamRole_A05B341B.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/dead-letter-queue.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/dead-letter-queue.test.w_compile_tf-aws.md index c94468cd892..c862a99b4f2 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/dead-letter-queue.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/dead-letter-queue.test.w_compile_tf-aws.md @@ -172,6 +172,9 @@ }, "function_name": "queue-without-retries-SetConsumer0-c8ba2958", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.queuewithoutretries-SetConsumer0_IamRole_F76F585E.arn}", @@ -204,6 +207,9 @@ }, "function_name": "queue-with-retries-SetConsumer0-c82b1a26", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.queuewithretries-SetConsumer0_IamRole_B95C0A26.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/queue-ref.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/queue-ref.test.w_compile_tf-aws.md index 90989a1fe90..24abfb25d52 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/queue-ref.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/queue-ref.test.w_compile_tf-aws.md @@ -275,6 +275,9 @@ }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Function_IamRole_678BE84C.arn}", @@ -307,6 +310,9 @@ }, "function_name": "Queue-SetConsumer0-c83c303c", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Queue-SetConsumer0_IamRole_7F9ED9ED.arn}", @@ -339,6 +345,9 @@ }, "function_name": "Handler-c85cfbef", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.QueueRef_AwsConsoleField_Handler_IamRole_0DD0004C.arn}", @@ -371,6 +380,9 @@ }, "function_name": "Handler-c8c3c90a", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.QueueRef_QueueArnField_Handler_IamRole_C121BD5E.arn}", @@ -403,6 +415,9 @@ }, "function_name": "Handler-c8ec121e", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.QueueRef_QueueUrlField_Handler_IamRole_709A15CB.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/schedule/on_tick.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/schedule/on_tick.test.w_compile_tf-aws.md index 9a916a2b6cd..7a80a8eafdb 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/schedule/on_tick.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/schedule/on_tick.test.w_compile_tf-aws.md @@ -201,6 +201,9 @@ }, "function_name": "OnTick0-c82d2f1d", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.from_cron_OnTick0_IamRole_70AA37F2.arn}", @@ -233,6 +236,9 @@ }, "function_name": "OnTick0-c82ff92a", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.from_rate_OnTick0_IamRole_A7066F91.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/topic/no_blocking.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/topic/no_blocking.test.w_compile_tf-aws.md index bc2fe0d289a..dd3dac2f1de 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/topic/no_blocking.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/topic/no_blocking.test.w_compile_tf-aws.md @@ -103,6 +103,9 @@ }, "function_name": "Topic-OnMessage0-c85d7820", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Topic-OnMessage0_IamRole_64DD36FA.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/topic/on_message.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/topic/on_message.test.w_compile_tf-aws.md index 85566241f56..c8a898d57a9 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/topic/on_message.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/topic/on_message.test.w_compile_tf-aws.md @@ -142,6 +142,9 @@ }, "function_name": "Topic-OnMessage0-c85d7820", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Topic-OnMessage0_IamRole_64DD36FA.arn}", @@ -174,6 +177,9 @@ }, "function_name": "Topic-OnMessage1-c8763765", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Topic-OnMessage1_IamRole_6EE8D90C.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/topic/subscribe-queue.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/topic/subscribe-queue.test.w_compile_tf-aws.md index d03f215ea79..8f88641d990 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/topic/subscribe-queue.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/topic/subscribe-queue.test.w_compile_tf-aws.md @@ -211,6 +211,9 @@ }, "function_name": "Topic-OnMessage0-c85d7820", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Topic-OnMessage0_IamRole_64DD36FA.arn}", @@ -243,6 +246,9 @@ }, "function_name": "q1-SetConsumer0-c8600a39", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.q1-SetConsumer0_IamRole_8299B0EC.arn}", @@ -275,6 +281,9 @@ }, "function_name": "q2-SetConsumer0-c8ba098b", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.q2-SetConsumer0_IamRole_910A96B5.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/api_valid_path.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/api_valid_path.test.w_compile_tf-aws.md index 1ff40e38af2..91737d079d0 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/api_valid_path.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/api_valid_path.test.w_compile_tf-aws.md @@ -273,6 +273,9 @@ module.exports = function({ }) { }, "function_name": "get_0-c856f001", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.apiforrootpath_get_0_IamRole_D4539E0B.arn}", @@ -304,6 +307,9 @@ module.exports = function({ }) { }, "function_name": "get_test_path0-c8261424", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.defaultapi_get_test_path0_IamRole_6EABF872.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/asynchronous_model_implicit_await_in_functions.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/asynchronous_model_implicit_await_in_functions.test.w_compile_tf-aws.md index 64402b8eac2..63ca23562e4 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/asynchronous_model_implicit_await_in_functions.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/asynchronous_model_implicit_await_in_functions.test.w_compile_tf-aws.md @@ -163,6 +163,9 @@ module.exports = function({ $strToStr }) { }, "function_name": "func-c8cf78f6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.func_IamRole_EED2D17C.arn}", @@ -194,6 +197,9 @@ module.exports = function({ $strToStr }) { }, "function_name": "strToStr-c8d5081f", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.strToStr_IamRole_3B9A4F9A.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/capture_primitives.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/capture_primitives.test.w_compile_tf-aws.md index 0725bb48d7e..7b8ba65f5fc 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/capture_primitives.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/capture_primitives.test.w_compile_tf-aws.md @@ -117,6 +117,9 @@ module.exports = function({ $myBool, $myDur, $myNum, $mySecondBool, $myStr }) { }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Function_IamRole_678BE84C.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/doubler.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/doubler.test.w_compile_tf-aws.md index 1f81a187a68..50057efda4e 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/doubler.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/doubler.test.w_compile_tf-aws.md @@ -201,6 +201,9 @@ module.exports = function({ }) { }, "function_name": "Function-c892ab6d", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Doubler2_Function_IamRole_66AECEFB.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/extern_implementation.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/extern_implementation.test.w_compile_tf-aws.md index a8effb04aa1..9af4518ee72 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/extern_implementation.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/extern_implementation.test.w_compile_tf-aws.md @@ -175,6 +175,9 @@ module.exports = function({ }) { }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Function_IamRole_678BE84C.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/file_counter.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/file_counter.test.w_compile_tf-aws.md index aceec6e2d13..341a07838dd 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/file_counter.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/file_counter.test.w_compile_tf-aws.md @@ -142,6 +142,9 @@ module.exports = function({ $bucket, $counter }) { }, "function_name": "Queue-SetConsumer0-c83c303c", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Queue-SetConsumer0_IamRole_7F9ED9ED.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/hello.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/hello.test.w_compile_tf-aws.md index 88bcc5a917b..21dd9747631 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/hello.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/hello.test.w_compile_tf-aws.md @@ -120,6 +120,9 @@ module.exports = function({ $bucket }) { }, "function_name": "Queue-SetConsumer0-c83c303c", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Queue-SetConsumer0_IamRole_7F9ED9ED.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inflight-subscribers.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/inflight-subscribers.test.w_compile_tf-aws.md index ff2bdeff84e..1bdd0fa7e21 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inflight-subscribers.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inflight-subscribers.test.w_compile_tf-aws.md @@ -178,6 +178,9 @@ module.exports = function({ }) { }, "function_name": "Queue-SetConsumer0-c83c303c", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Queue-SetConsumer0_IamRole_7F9ED9ED.arn}", @@ -209,6 +212,9 @@ module.exports = function({ }) { }, "function_name": "Topic-OnMessage0-c85d7820", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Topic-OnMessage0_IamRole_64DD36FA.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inherit_stdlib_class.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/inherit_stdlib_class.test.w_compile_tf-aws.md index f23be52247e..acf6eb9d05a 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inherit_stdlib_class.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inherit_stdlib_class.test.w_compile_tf-aws.md @@ -223,6 +223,9 @@ module.exports = function({ $cloud_Api }) { }, "function_name": "get_0-c86e4717", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.AnApi_get_0_IamRole_B03773D7.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/intrinsics.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/intrinsics.test.w_compile_tf-aws.md index 38278f5cf41..50890f3f5eb 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/intrinsics.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/intrinsics.test.w_compile_tf-aws.md @@ -190,6 +190,9 @@ module.exports = function({ }) { }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Function_IamRole_678BE84C.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/issue_2889.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/issue_2889.test.w_compile_tf-aws.md index f59607ffdf5..58c1c167a5f 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/issue_2889.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/issue_2889.test.w_compile_tf-aws.md @@ -211,6 +211,9 @@ module.exports = function({ $api_url, $http_Util, $std_Json }) { }, "function_name": "get_foo0-c8fedbc0", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_get_foo0_IamRole_B1AE8E5D.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/lift_shared_resource.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/lift_shared_resource.test.w_compile_tf-aws.md index 3ebdba3c8b7..bead48da04c 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/lift_shared_resource.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/lift_shared_resource.test.w_compile_tf-aws.md @@ -229,6 +229,9 @@ module.exports = function({ }) { }, "function_name": "get_0-c86d29bb", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_get_0_IamRole_2FAC475D.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/mutation_after_class_init.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/mutation_after_class_init.test.w_compile_tf-aws.md index 36326b84129..3345bb6fc4c 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/mutation_after_class_init.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/mutation_after_class_init.test.w_compile_tf-aws.md @@ -205,6 +205,9 @@ module.exports = function({ }) { }, "function_name": "OnCreate-OnMessage0-c8cf52b9", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Queue_Bucket_OnCreate-OnMessage0_IamRole_210FCAAB.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/redis.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/redis.test.w_compile_tf-aws.md index d398c6056c9..611f6d9ec96 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/redis.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/redis.test.w_compile_tf-aws.md @@ -253,6 +253,9 @@ module.exports = function({ $queue, $r, $r2, $util_Util }) { }, "function_name": "Queue-SetConsumer0-c83c303c", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Queue-SetConsumer0_IamRole_7F9ED9ED.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/resource.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/resource.test.w_compile_tf-aws.md index 3117975832c..c3455e9b99e 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/resource.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/resource.test.w_compile_tf-aws.md @@ -423,6 +423,9 @@ module.exports = function({ }) { }, "function_name": "Queue-SetConsumer0-c8931d51", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.BigPublisher_Queue-SetConsumer0_IamRole_D38B87EE.arn}", @@ -455,6 +458,9 @@ module.exports = function({ }) { }, "function_name": "Topic-OnMessage0-c8bea057", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.BigPublisher_Topic-OnMessage0_IamRole_FEF4CFBB.arn}", @@ -487,6 +493,9 @@ module.exports = function({ }) { }, "function_name": "OnCreate-OnMessage0-c8ab841c", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.BigPublisher_b2_OnCreate-OnMessage0_IamRole_2B7C8C04.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/resource_as_inflight_literal.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/resource_as_inflight_literal.test.w_compile_tf-aws.md index 36da9581699..64dc691e70a 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/resource_as_inflight_literal.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/resource_as_inflight_literal.test.w_compile_tf-aws.md @@ -123,6 +123,9 @@ module.exports = function({ }) { }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Function_IamRole_678BE84C.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/use_inflight_method_inside_init_closure.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/use_inflight_method_inside_init_closure.test.w_compile_tf-aws.md index 136422bbe26..308d0308ec8 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/use_inflight_method_inside_init_closure.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/use_inflight_method_inside_init_closure.test.w_compile_tf-aws.md @@ -119,6 +119,9 @@ module.exports = function({ }) { }, "function_name": "Function-c8e9a190", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Foo_Function_IamRole_F86A3AD2.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/while_loop_await.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/while_loop_await.test.w_compile_tf-aws.md index b86de064c41..b88e5e76a7f 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/while_loop_await.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/while_loop_await.test.w_compile_tf-aws.md @@ -125,6 +125,9 @@ module.exports = function({ }) { }, "function_name": "Queue-SetConsumer0-c83c303c", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Queue-SetConsumer0_IamRole_7F9ED9ED.arn}", From 066984dfd2ca51c37ad7d1dd5a79d2b023500cb5 Mon Sep 17 00:00:00 2001 From: "monada-bot[bot]" Date: Thu, 4 Jul 2024 00:41:45 +0000 Subject: [PATCH 5/5] chore: self mutation (e2e-2of2.diff) Signed-off-by: monada-bot[bot] --- .../api/404.test.w_compile_tf-aws.md | 3 +++ .../api/aws-api.test.w_compile_tf-aws.md | 3 +++ .../api/cycle.test.w_compile_tf-aws.md | 3 +++ .../api/delete.test.w_compile_tf-aws.md | 3 +++ .../api/options.test.w_compile_tf-aws.md | 9 ++++++++ .../api/patch.test.w_compile_tf-aws.md | 3 +++ .../api/put.test.w_compile_tf-aws.md | 3 +++ .../root_path_vars.test.w_compile_tf-aws.md | 3 +++ .../bucket-ref.test.w_compile_tf-aws.md | 21 +++++++++++++++++++ .../bucket/events.test.w_compile_tf-aws.md | 18 ++++++++++++++++ .../aws-function.test.w_compile_tf-aws.md | 6 ++++++ .../aws-layer.test.w_compile_tf-aws.md | 3 +++ .../function/env.test.w_compile_tf-aws.md | 3 +++ .../function/invoke.test.w_compile_tf-aws.md | 9 ++++++++ .../invoke_async.test.w_compile_tf-aws.md | 3 +++ .../memory_and_env.test.w_compile_tf-aws.md | 6 ++++++ .../function/timeout.test.w_compile_tf-aws.md | 6 ++++++ .../empty-actions.test.w_compile_tf-aws.md | 6 ++++++ .../set_consumer.test.w_compile_tf-aws.md | 9 ++++++++ ...ariadic-parameter.test.w_compile_tf-aws.md | 3 +++ .../ui/section.test.w_compile_tf-aws.md | 6 ++++++ .../valid/api.test.w_compile_tf-aws.md | 6 ++++++ .../api_cors_custom.test.w_compile_tf-aws.md | 3 +++ .../api_cors_default.test.w_compile_tf-aws.md | 3 +++ .../bring_local.test.w_compile_tf-aws.md | 3 +++ .../valid/captures.test.w_compile_tf-aws.md | 12 +++++++++++ .../valid/for_loop.test.w_compile_tf-aws.md | 3 +++ .../valid/inference.test.w_compile_tf-aws.md | 3 +++ ..._inflight_closure.test.w_compile_tf-aws.md | 3 +++ ...handler_singleton.test.w_compile_tf-aws.md | 9 ++++++++ ...calling_inflights.test.w_compile_tf-aws.md | 3 +++ .../json_bucket.test.w_compile_tf-aws.md | 3 +++ ...losure_collection.test.w_compile_tf-aws.md | 12 +++++++++++ ..._captures_globals.test.w_compile_tf-aws.md | 3 +++ .../website_with_api.test.w_compile_tf-aws.md | 6 ++++++ 35 files changed, 201 insertions(+) diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/404.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/404.test.w_compile_tf-aws.md index ff2802406af..207c86e63b9 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/404.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/404.test.w_compile_tf-aws.md @@ -167,6 +167,9 @@ }, "function_name": "get_hello0-c8557c1a", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_get_hello0_IamRole_1E6956F6.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/aws-api.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/aws-api.test.w_compile_tf-aws.md index 820744d4420..790ab30ca16 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/aws-api.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/aws-api.test.w_compile_tf-aws.md @@ -167,6 +167,9 @@ }, "function_name": "get_api0-c8c47de3", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.api_get_api0_IamRole_1D6098F5.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/cycle.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/cycle.test.w_compile_tf-aws.md index 1b15ff5215f..296d0ac26dc 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/cycle.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/cycle.test.w_compile_tf-aws.md @@ -168,6 +168,9 @@ }, "function_name": "get_my_url0-c8ebe364", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_get_my_url0_IamRole_2A08E79F.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/delete.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/delete.test.w_compile_tf-aws.md index 59df67e2f5b..efbcb25c416 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/delete.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/delete.test.w_compile_tf-aws.md @@ -167,6 +167,9 @@ }, "function_name": "delete_path0-c8bf96b7", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_delete_path0_IamRole_00A5C11E.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/options.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/options.test.w_compile_tf-aws.md index 2939d696b38..e88aba998dc 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/options.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/options.test.w_compile_tf-aws.md @@ -245,6 +245,9 @@ }, "function_name": "connect_path0-c88ada6c", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_connect_path0_IamRole_879E3AD0.arn}", @@ -276,6 +279,9 @@ }, "function_name": "head_path0-c8127a73", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_head_path0_IamRole_8A76125C.arn}", @@ -307,6 +313,9 @@ }, "function_name": "options_path0-c858e550", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_options_path0_IamRole_993D1A6D.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/patch.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/patch.test.w_compile_tf-aws.md index a4813fe4271..3aa91339930 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/patch.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/patch.test.w_compile_tf-aws.md @@ -167,6 +167,9 @@ }, "function_name": "patch_path_-id0-c8d36c2c", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_patch_path_id0_IamRole_E174D2FC.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/put.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/put.test.w_compile_tf-aws.md index 3126fb63256..b67286a2085 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/put.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/put.test.w_compile_tf-aws.md @@ -167,6 +167,9 @@ }, "function_name": "put_path_-id_nn_-user0-c8982eb3", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_put_path_id_nn_user0_IamRole_1C9DE02F.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/root_path_vars.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/root_path_vars.test.w_compile_tf-aws.md index 3c7cfd311c2..0d2fe7fa7eb 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/root_path_vars.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/root_path_vars.test.w_compile_tf-aws.md @@ -167,6 +167,9 @@ }, "function_name": "get_-id0-c8c761b0", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_get_id0_IamRole_74C8077C.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/bucket-ref.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/bucket-ref.test.w_compile_tf-aws.md index cbebcf65c2c..b492c8586dd 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/bucket-ref.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/bucket-ref.test.w_compile_tf-aws.md @@ -319,6 +319,9 @@ }, "function_name": "Handler-c85d8af5", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.BucketRef_AwsConsoleField_Handler_IamRole_BF718408.arn}", @@ -351,6 +354,9 @@ }, "function_name": "Handler-c85e098f", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.BucketRef_BucketArnField_Handler_IamRole_DF52E4B1.arn}", @@ -383,6 +389,9 @@ }, "function_name": "Handler-c885f795", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.BucketRef_BucketNameField_Handler_IamRole_4C746299.arn}", @@ -415,6 +424,9 @@ }, "function_name": "delete-c8d8aa8e", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.BucketRef_FileBrowser_delete_IamRole_A66062FE.arn}", @@ -447,6 +459,9 @@ }, "function_name": "get-c8ba1e5f", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.BucketRef_FileBrowser_get_IamRole_8E0DB684.arn}", @@ -479,6 +494,9 @@ }, "function_name": "list-c88fd67a", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.BucketRef_FileBrowser_list_IamRole_DC0C9222.arn}", @@ -511,6 +529,9 @@ }, "function_name": "put-c8cdb51a", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.BucketRef_FileBrowser_put_IamRole_9C4230CD.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/events.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/events.test.w_compile_tf-aws.md index 7133526bbf1..6880da99e11 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/events.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/events.test.w_compile_tf-aws.md @@ -321,6 +321,9 @@ }, "function_name": "OnCreate-OnMessage0-c8740b4b", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Bucket_OnCreate-OnMessage0_IamRole_D3BF2935.arn}", @@ -356,6 +359,9 @@ }, "function_name": "OnCreate-OnMessage1-c8347a52", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Bucket_OnCreate-OnMessage1_IamRole_0E855131.arn}", @@ -391,6 +397,9 @@ }, "function_name": "OnDelete-OnMessage0-c8e711ef", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Bucket_OnDelete-OnMessage0_IamRole_A52E721B.arn}", @@ -426,6 +435,9 @@ }, "function_name": "OnDelete-OnMessage1-c8905f5b", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Bucket_OnDelete-OnMessage1_IamRole_AA3A5721.arn}", @@ -461,6 +473,9 @@ }, "function_name": "OnUpdate-OnMessage0-c81b9fec", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Bucket_OnUpdate-OnMessage0_IamRole_96499EB9.arn}", @@ -496,6 +511,9 @@ }, "function_name": "OnUpdate-OnMessage1-c8513427", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Bucket_OnUpdate-OnMessage1_IamRole_7B19D23F.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/aws-function.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/aws-function.test.w_compile_tf-aws.md index 54a771ddfe7..204440eb3c4 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/aws-function.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/aws-function.test.w_compile_tf-aws.md @@ -122,6 +122,9 @@ }, "function_name": "FunctionAccessingContext-c84d6117", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.FunctionAccessingContext_IamRole_6926384F.arn}", @@ -153,6 +156,9 @@ }, "function_name": "aws-wing-function-c8f4cdef", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.aws-wing-function_IamRole_705FDD7E.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/aws-layer.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/aws-layer.test.w_compile_tf-aws.md index 5ffdb4a2fd7..50905a6a817 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/aws-layer.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/aws-layer.test.w_compile_tf-aws.md @@ -86,6 +86,9 @@ "layers": [ "arn:aws:lambda:us-east-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:7" ], + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Function_IamRole_678BE84C.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/env.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/env.test.w_compile_tf-aws.md index 9cd0df9d38c..65642124abc 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/env.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/env.test.w_compile_tf-aws.md @@ -85,6 +85,9 @@ }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Function_IamRole_678BE84C.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/invoke.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/invoke.test.w_compile_tf-aws.md index e79a4f6170e..c76f26f65b0 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/invoke.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/invoke.test.w_compile_tf-aws.md @@ -161,6 +161,9 @@ }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Function_IamRole_678BE84C.arn}", @@ -192,6 +195,9 @@ }, "function_name": "f2-c812cd39", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.f2_IamRole_B66911B2.arn}", @@ -223,6 +229,9 @@ }, "function_name": "f3-c8555a7c", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.f3_IamRole_72675FA1.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/invoke_async.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/invoke_async.test.w_compile_tf-aws.md index 2496e855a72..8e94efdd7ed 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/invoke_async.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/invoke_async.test.w_compile_tf-aws.md @@ -103,6 +103,9 @@ }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Function_IamRole_678BE84C.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/memory_and_env.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/memory_and_env.test.w_compile_tf-aws.md index 3a8ddd2d176..d87c6bb843c 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/memory_and_env.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/memory_and_env.test.w_compile_tf-aws.md @@ -144,6 +144,9 @@ }, "function_name": "env-fn-c8a226dd", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.envfn_IamRole_88E952E6.arn}", @@ -176,6 +179,9 @@ }, "function_name": "memory-fn-c844bdf7", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 128, "publish": true, "role": "${aws_iam_role.memoryfn_IamRole_87751238.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/timeout.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/timeout.test.w_compile_tf-aws.md index fc16e252d4c..69a7d212d14 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/timeout.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/timeout.test.w_compile_tf-aws.md @@ -142,6 +142,9 @@ }, "function_name": "function-with-1s-timeout-c8d47946", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.functionwith1stimeout_IamRole_C2456C80.arn}", @@ -174,6 +177,9 @@ }, "function_name": "function-with-default-timeout-c8c15878", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.functionwithdefaulttimeout_IamRole_E358F68D.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/misc/empty-actions.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/misc/empty-actions.test.w_compile_tf-aws.md index b65178d87c6..3fac07c191a 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/misc/empty-actions.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/misc/empty-actions.test.w_compile_tf-aws.md @@ -207,6 +207,9 @@ }, "function_name": "get_bar0-c8c593ee", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_get_bar0_IamRole_0AE7D598.arn}", @@ -239,6 +242,9 @@ }, "function_name": "get_foo0-c8fedbc0", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_get_foo0_IamRole_B1AE8E5D.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/set_consumer.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/set_consumer.test.w_compile_tf-aws.md index 996708c7f6e..fe14d178107 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/set_consumer.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/set_consumer.test.w_compile_tf-aws.md @@ -259,6 +259,9 @@ }, "function_name": "Queue-SetConsumer0-c83c303c", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Queue-SetConsumer0_IamRole_7F9ED9ED.arn}", @@ -292,6 +295,9 @@ }, "function_name": "q2-SetConsumer0-c8ba098b", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.q2-SetConsumer0_IamRole_910A96B5.arn}", @@ -324,6 +330,9 @@ }, "function_name": "q3-SetConsumer0-c8cd013e", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.q3-SetConsumer0_IamRole_2934E47C.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/topic/variadic-parameter.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/topic/variadic-parameter.test.w_compile_tf-aws.md index db19b75aeb7..68cd127583a 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/topic/variadic-parameter.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/topic/variadic-parameter.test.w_compile_tf-aws.md @@ -103,6 +103,9 @@ }, "function_name": "Topic-OnMessage0-c85d7820", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Topic-OnMessage0_IamRole_64DD36FA.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/ui/section.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/ui/section.test.w_compile_tf-aws.md index 02dfaafd1e5..0d8254cab15 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/ui/section.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/ui/section.test.w_compile_tf-aws.md @@ -143,6 +143,9 @@ }, "function_name": "Handler-c8ba9e97", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.WidgetService_Button_Handler_IamRole_B297B278.arn}", @@ -176,6 +179,9 @@ }, "function_name": "Handler-c8fa6fbe", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.WidgetService_Field_Handler_IamRole_A196F9F2.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/api.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/api.test.w_compile_tf-aws.md index 8693e2fefec..419fb1d103d 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/api.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/api.test.w_compile_tf-aws.md @@ -354,6 +354,9 @@ module.exports = function({ }) { }, "function_name": "get_endpoint10-c8e91512", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.A_Api_get_endpoint10_IamRole_656A5EFF.arn}", @@ -386,6 +389,9 @@ module.exports = function({ }) { }, "function_name": "get_hello_world0-c8808650", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_get_hello_world0_IamRole_BE6EA0B6.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/api_cors_custom.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/api_cors_custom.test.w_compile_tf-aws.md index bc5e0bfed85..bd7f28edec5 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/api_cors_custom.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/api_cors_custom.test.w_compile_tf-aws.md @@ -266,6 +266,9 @@ module.exports = function({ $api_url, $expect_Util, $http_HttpMethod, $http_Util }, "function_name": "get_users0-c82bfbcd", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_get_users0_IamRole_950ACE40.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/api_cors_default.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/api_cors_default.test.w_compile_tf-aws.md index 3c077f31ee8..56c4283f1bf 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/api_cors_default.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/api_cors_default.test.w_compile_tf-aws.md @@ -241,6 +241,9 @@ module.exports = function({ $apiDefaultCors_url, $expect_Util, $http_HttpMethod, }, "function_name": "get_users0-c82bfbcd", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_get_users0_IamRole_950ACE40.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/bring_local.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/bring_local.test.w_compile_tf-aws.md index 731e6cfad7f..bc5898a08e7 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/bring_local.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/bring_local.test.w_compile_tf-aws.md @@ -236,6 +236,9 @@ module.exports = function({ }) { }, "function_name": "Function-c81a83fe", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Store_OnDeploy_Function_IamRole_CD090388.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/captures.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/captures.test.w_compile_tf-aws.md index e01268f629c..3569c962c6f 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/captures.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/captures.test.w_compile_tf-aws.md @@ -377,6 +377,9 @@ module.exports = function({ $headers }) { }, "function_name": "AnotherFunction-c88d2a81", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.AnotherFunction_IamRole_74447271.arn}", @@ -408,6 +411,9 @@ module.exports = function({ $headers }) { }, "function_name": "get_hello0-c8557c1a", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_get_hello0_IamRole_1E6956F6.arn}", @@ -442,6 +448,9 @@ module.exports = function({ $headers }) { }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Function_IamRole_678BE84C.arn}", @@ -476,6 +485,9 @@ module.exports = function({ $headers }) { }, "function_name": "Queue-SetConsumer0-c83c303c", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Queue-SetConsumer0_IamRole_7F9ED9ED.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/for_loop.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/for_loop.test.w_compile_tf-aws.md index be92a25fbfe..1f7bf4184e4 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/for_loop.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/for_loop.test.w_compile_tf-aws.md @@ -126,6 +126,9 @@ module.exports = function({ }) { }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Function_IamRole_678BE84C.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inference.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/inference.test.w_compile_tf-aws.md index 5cbb1cd8f3d..63b17ea6479 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inference.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inference.test.w_compile_tf-aws.md @@ -187,6 +187,9 @@ module.exports = function({ }) { }, "function_name": "get_hello_world0-c8808650", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_get_hello_world0_IamRole_BE6EA0B6.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_inside_inflight_closure.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_inside_inflight_closure.test.w_compile_tf-aws.md index 1901d050321..161d16187d7 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_inside_inflight_closure.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_inside_inflight_closure.test.w_compile_tf-aws.md @@ -178,6 +178,9 @@ module.exports = function({ }) { }, "function_name": "Function-c8565504", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.PreflightClass_Function_IamRole_A6FFCAE6.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inflight_handler_singleton.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/inflight_handler_singleton.test.w_compile_tf-aws.md index b49cf2c35f0..a3747518fc7 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inflight_handler_singleton.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inflight_handler_singleton.test.w_compile_tf-aws.md @@ -299,6 +299,9 @@ module.exports = function({ }) { }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Function_IamRole_678BE84C.arn}", @@ -330,6 +333,9 @@ module.exports = function({ }) { }, "function_name": "fn2-c892a4c6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.fn2_IamRole_DE8D96D2.arn}", @@ -361,6 +367,9 @@ module.exports = function({ }) { }, "function_name": "fn3-c856234e", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.fn3_IamRole_B0C65815.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inflights_calling_inflights.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/inflights_calling_inflights.test.w_compile_tf-aws.md index 4141cadd9c9..ca4e10d0bda 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inflights_calling_inflights.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inflights_calling_inflights.test.w_compile_tf-aws.md @@ -211,6 +211,9 @@ module.exports = function({ }) { }, "function_name": "func1-c899062d", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.func1_IamRole_31EC29DC.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/json_bucket.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/json_bucket.test.w_compile_tf-aws.md index 22f947fe294..3f12b359611 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/json_bucket.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/json_bucket.test.w_compile_tf-aws.md @@ -126,6 +126,9 @@ module.exports = function({ $b, $fileName, $getJson, $j }) { }, "function_name": "Function-c852aba6", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Function_IamRole_678BE84C.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/lift_inflight_closure_collection.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/lift_inflight_closure_collection.test.w_compile_tf-aws.md index 53eeb3794f7..601c566cd06 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/lift_inflight_closure_collection.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/lift_inflight_closure_collection.test.w_compile_tf-aws.md @@ -412,6 +412,9 @@ module.exports = function({ $complex }) { }, "function_name": "f1-c8545025", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.f1_IamRole_FD68C58F.arn}", @@ -445,6 +448,9 @@ module.exports = function({ $complex }) { }, "function_name": "f2-c812cd39", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.f2_IamRole_B66911B2.arn}", @@ -478,6 +484,9 @@ module.exports = function({ $complex }) { }, "function_name": "f3-c8555a7c", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.f3_IamRole_72675FA1.arn}", @@ -511,6 +520,9 @@ module.exports = function({ $complex }) { }, "function_name": "f4-c8745b6f", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.f4_IamRole_E4904831.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/resource_captures_globals.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/resource_captures_globals.test.w_compile_tf-aws.md index c3d106d17c4..d401bf03885 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/resource_captures_globals.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/resource_captures_globals.test.w_compile_tf-aws.md @@ -253,6 +253,9 @@ module.exports = function({ $_parentThis_localCounter, $globalCounter }) { }, "function_name": "Topic-OnMessage0-c8bb74dc", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.MyResource_Topic-OnMessage0_IamRole_CFB3A523.arn}", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/website_with_api.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/website_with_api.test.w_compile_tf-aws.md index fabea5493dc..8f5701ae943 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/website_with_api.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/website_with_api.test.w_compile_tf-aws.md @@ -437,6 +437,9 @@ module.exports = function({ $api_url, $expect_Util, $http_HttpMethod, $http_Util }, "function_name": "get_users0-c82bfbcd", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_get_users0_IamRole_950ACE40.arn}", @@ -471,6 +474,9 @@ module.exports = function({ $api_url, $expect_Util, $http_HttpMethod, $http_Util }, "function_name": "post_users0-c8ae30d9", "handler": "index.handler", + "logging_config": { + "log_format": "JSON" + }, "memory_size": 1024, "publish": true, "role": "${aws_iam_role.Api_post_users0_IamRole_B6E18B7C.arn}",