Skip to content

Commit

Permalink
✨ add runtime field to AWS lambda function resources (#1754)
Browse files Browse the repository at this point in the history
Backport the contribution from Mark Bainter in
#1730

These are some of the final v8 backports before we continue to move
forward with v9 only.

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
  • Loading branch information
arlimus authored Sep 17, 2023
1 parent f9dc75e commit fcc2c19
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 5 deletions.
2 changes: 2 additions & 0 deletions resources/packs/aws/aws.lr
Original file line number Diff line number Diff line change
Expand Up @@ -1395,6 +1395,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
30 changes: 30 additions & 0 deletions resources/packs/aws/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 resources/packs/aws/aws_lambda.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func (l *mqlAwsLambda) getFunctions(provider *aws_provider.Provider) []*jobpool.
mqlFunc, err := l.MotorRuntime.CreateResource("aws.lambda.function",
"arn", core.ToString(function.FunctionArn),
"name", core.ToString(function.FunctionName),
"runtime", string(function.Runtime),
"dlqTargetArn", dlqTarget,
"vpcConfig", vpcConfigJson,
"region", regionVal,
Expand Down
2 changes: 1 addition & 1 deletion resources/packs/aws/info/aws.lr.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions resources/resources.pb.go

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

4 changes: 2 additions & 2 deletions resources/service/service.pb.go

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

0 comments on commit fcc2c19

Please sign in to comment.