Skip to content

Commit

Permalink
✨ add runtime field to AWS lambda function resources (#1730)
Browse files Browse the repository at this point in the history
This adds the runtime of a lambda to the information returned when
querying functions.

resolves #1727

Signed-off-by: Mark Bainter <[email protected]>
  • Loading branch information
mbainter authored Sep 14, 2023
1 parent 909b8d3 commit c228290
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions providers/aws/resources/aws.lr
Original file line number Diff line number Diff line change
Expand Up @@ -1438,6 +1438,8 @@ private aws.lambda.function @defaults("arn") {
arn string
// Name of the function
name string
// Runtime environment for the function
runtime string
// Concurrency limit for the function
concurrency() int
// Target ARN of the DeadLetterQueue config
Expand Down
12 changes: 12 additions & 0 deletions providers/aws/resources/aws.lr.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions providers/aws/resources/aws.lr.manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1109,6 +1109,7 @@ resources:
name: {}
policy: {}
region: {}
runtime: {}
tags: {}
vpcConfig: {}
is_private: true
Expand Down
1 change: 1 addition & 0 deletions providers/aws/resources/aws_lambda.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ func (a *mqlAwsLambda) getFunctions(conn *connection.AwsConnection) []*jobpool.J
map[string]*llx.RawData{
"arn": llx.StringData(convert.ToString(function.FunctionArn)),
"name": llx.StringData(convert.ToString(function.FunctionName)),
"runtime": llx.StringData(string(function.Runtime)),
"dlqTargetArn": llx.StringData(dlqTarget),
"vpcConfig": llx.MapData(vpcConfigJson, types.Any),
"region": llx.StringData(regionVal),
Expand Down

0 comments on commit c228290

Please sign in to comment.