Skip to content

Commit 98a5158

Browse files
authored
Added missing columns to the table aws_lambda_version Closes turbot#2228 (turbot#2229)
1 parent a47903e commit 98a5158

File tree

4 files changed

+85
-3
lines changed

4 files changed

+85
-3
lines changed

aws-test/tests/aws_lambda_version/test-get-call-expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"akas": ["{{ output.resource_aka.value }}:$LATEST"],
44
"arn": "{{ output.resource_aka.value}}:$LATEST",
55
"function_name": "{{resourceName}}",
6-
"runtime": "python3.7",
6+
"runtime": "python3.12",
77
"title": "$LATEST",
88
"version": "$LATEST"
99
}

aws-test/tests/aws_lambda_version/test-list-call-expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"akas": ["{{ output.resource_aka.value }}:$LATEST"],
44
"arn": "{{ output.resource_aka.value}}:$LATEST",
55
"function_name": "{{resourceName}}",
6-
"runtime": "python3.7",
6+
"runtime": "python3.12",
77
"title": "$LATEST",
88
"version": "$LATEST"
99
}

aws-test/tests/aws_lambda_version/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ resource "aws_lambda_function" "named_test_resource" {
8181
function_name = var.resource_name
8282
role = aws_iam_role.aws_lambda_function.arn
8383
handler = "test.test"
84-
runtime = "python3.7"
84+
runtime = "python3.12"
8585
filename = "${path.cwd}/../../test.zip"
8686
tags = {
8787
name = var.resource_name

aws/table_aws_lambda_version.go

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,43 @@ func tableAwsLambdaVersion(_ context.Context) *plugin.Table {
138138
Type: proto.ColumnType_STRING,
139139
Transform: transform.FromField("VpcConfig.VpcId"),
140140
},
141+
{
142+
Name: "kms_key_arn",
143+
Description: "The KMS key that's used to encrypt the function's environment variables.",
144+
Type: proto.ColumnType_STRING,
145+
Transform: transform.FromField("KMSKeyArn"),
146+
},
147+
{
148+
Name: "role",
149+
Description: "The function's execution role.",
150+
Type: proto.ColumnType_STRING,
151+
},
152+
{
153+
Name: "signing_job_arn",
154+
Description: "The ARN of the signing job.",
155+
Type: proto.ColumnType_STRING,
156+
},
157+
{
158+
Name: "signing_profile_version_arn",
159+
Description: "The ARN of the signing profile version.",
160+
Type: proto.ColumnType_STRING,
161+
},
162+
{
163+
Name: "state_reason",
164+
Description: "The reason for the function's current state.",
165+
Type: proto.ColumnType_STRING,
166+
},
167+
{
168+
Name: "state_reason_code",
169+
Description: "The reason code for the function's current state.",
170+
Type: proto.ColumnType_STRING,
171+
},
172+
{
173+
Name: "ephemeral_storage_size",
174+
Description: "The size of the function's /tmp directory in MB.",
175+
Type: proto.ColumnType_INT,
176+
Transform: transform.FromField("EphemeralStorage.Size"),
177+
},
141178
{
142179
Name: "environment_variables",
143180
Description: "The environment variables that are accessible from function code during execution.",
@@ -169,6 +206,51 @@ func tableAwsLambdaVersion(_ context.Context) *plugin.Table {
169206
Type: proto.ColumnType_JSON,
170207
Transform: transform.FromField("VpcConfig.SubnetIds"),
171208
},
209+
{
210+
Name: "architectures",
211+
Description: "The instruction set architecture that the function supports.",
212+
Type: proto.ColumnType_JSON,
213+
},
214+
{
215+
Name: "dead_letter_config",
216+
Description: "The function's dead letter queue configuration.",
217+
Type: proto.ColumnType_JSON,
218+
},
219+
{
220+
Name: "file_system_configs",
221+
Description: "Connection settings for an Amazon EFS file system.",
222+
Type: proto.ColumnType_JSON,
223+
},
224+
{
225+
Name: "image_config_response",
226+
Description: "The function's image configuration values.",
227+
Type: proto.ColumnType_JSON,
228+
},
229+
{
230+
Name: "layers",
231+
Description: "The function's layers.",
232+
Type: proto.ColumnType_JSON,
233+
},
234+
{
235+
Name: "logging_config",
236+
Description: "The function's Amazon CloudWatch Logs configuration settings.",
237+
Type: proto.ColumnType_JSON,
238+
},
239+
{
240+
Name: "runtime_version_config",
241+
Description: "The ARN of the runtime and any errors that occurred.",
242+
Type: proto.ColumnType_JSON,
243+
},
244+
{
245+
Name: "snap_start",
246+
Description: "Configuration for creating a snapshot of the initialized execution environment.",
247+
Type: proto.ColumnType_JSON,
248+
},
249+
{
250+
Name: "tracing_config",
251+
Description: "The function's X-Ray tracing configuration.",
252+
Type: proto.ColumnType_JSON,
253+
},
172254

173255
// Standard columns for all tables
174256
{

0 commit comments

Comments
 (0)