You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, would be good to have a Coobook to handle AWS Lambda calls, and use its results to make something.
For example: Here in my company we have a Lambda function with gathers the ENI's Private IP of ENIs with a specific tag, and return them in a output JSON. The idea is take this result inside JSON and use something during the converging process.
In CLI, the invoke function in CLI is more or less like this:
I know Lambda is bigger than just a parser which returns something and maybe my request couldn't be feasible, but it would be cool for these situations. If it's impossible, np... I'll try to find a way using Seahorse or AWS CLI here =).
Steps to Reproduce:
Run cookbook
Get any results
Parse it
The text was updated successfully, but these errors were encountered:
Cookbook version
N/A
Chef-client version
Any
Platform Details
Any
Scenario:
So, would be good to have a Coobook to handle AWS Lambda calls, and use its results to make something.
For example: Here in my company we have a Lambda function with gathers the ENI's Private IP of ENIs with a specific tag, and return them in a output JSON. The idea is take this result inside JSON and use something during the converging process.
In CLI, the invoke function in CLI is more or less like this:
aws lambda invoke --invocation-type RequestResponse --function-name arn:aws:lambda:us-east-1:xxxxxxxxxxxxxxxxxxx:function:eniip-parser --region us-east-1 --log-type None --payload '{"Purpose": "pdns", "Region" :"us-east-1", "KOD": "test", "VpcId": "vpc-xxxxxxx", "account_id": "xxxxxxxxxxxxxxxx"}' outputfile.out
And the output file contains a return payload like:
{"PdnsEniIps": ["10.147.8.244", "10.147.0.92", "10.147.18.42"]}
I know Lambda is bigger than just a parser which returns something and maybe my request couldn't be feasible, but it would be cool for these situations. If it's impossible, np... I'll try to find a way using Seahorse or AWS CLI here =).
Steps to Reproduce:
Run cookbook
Get any results
Parse it
The text was updated successfully, but these errors were encountered: