Skip to content

Instantly share code, notes, and snippets.

@apoorvmote
Created February 23, 2021 03:11
Show Gist options
  • Save apoorvmote/aa4c3a711bdaf84bf6d48d20551b4a4b to your computer and use it in GitHub Desktop.
Save apoorvmote/aa4c3a711bdaf84bf6d48d20551b4a4b to your computer and use it in GitHub Desktop.
{
"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
}
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