Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1.13 KB

faastjs.costanalyzer.awsconfigurations.md

File metadata and controls

41 lines (32 loc) · 1.13 KB
id title hide_title
faastjs.costanalyzer.awsconfigurations
CostAnalyzer.awsConfigurations variable
true

faastjs > CostAnalyzer > awsConfigurations

CostAnalyzer.awsConfigurations variable

Default AWS cost analyzer configurations include all memory sizes for AWS Lambda.

Signature:

awsConfigurations: Configuration[]

Remarks

The default AWS cost analyzer configurations include every memory size from 128MB to 3008MB in 64MB increments. Each configuration has the following settings:

{
    provider: "aws",
    options: {
        mode: "https",
        memorySize,
        timeout: 300,
        gc: "off",
        childProcess: true
    }
}

Use Array.map to change or Array.filter to remove some of these configurations. For example:

const configsWithAtLeast1GB = awsConfigurations.filter(c => c.memorySize > 1024)
const shorterTimeout = awsConfigurations.map(c => ({...c, timeout: 60 }));