Created
February 23, 2021 03:11
-
-
Save apoorvmote/aa4c3a711bdaf84bf6d48d20551b4a4b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"lambdaARN": "arn:aws:lambda:us-east-1:123567890:function:lambda-cost-6cvNuq95XpKYZbM6-getTodoFn01C9D3BC-gEAFh9acFv8PunBf", | |
"powerValues": [ | |
128,256,512,1024,2048 | |
], | |
"num": 10, | |
"payload": { | |
"body": "{\"id\": \"58dcfe41-cc3f-4f5b-afbf-d69ef4908bae\"}" | |
}, | |
"parallelInvocation": true, | |
"strategy": "balanced", | |
"balancedWeight": 0.5, | |
"autoOptimize": false | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const powerValues = '128,256,512,1024,2048' | |
new CfnApplication(this, 'powerTuner', { | |
location: { | |
applicationId: 'arn:aws:serverlessrepo:us-east-1:451282441545:applications/aws-lambda-power-tuning', | |
semanticVersion: '3.4.2' | |
}, | |
parameters: { | |
"lambdaResource": "*", | |
"PowerValues": powerValues | |
}, | |
timeoutInMinutes: 15 | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment