https://pulumi.com logo
Title
r

rough-jordan-15935

03/09/2023, 2:55 AM
hi, im trying to create a Lambda function with 5gb memory. i get a validation error on the memory configuration. but the lambda creates with 2gb memory. is 5gb memory not supported in pulumi ? configuration : ValidationException: status code: 400
b

brave-planet-10645

03/09/2023, 11:54 AM
Can you share the code for your lambda function resource? For reference, this works and creates a function with 5000MB of memory:
const fn = new aws.lambda.Function("fn", {
    code: new pulumi.asset.AssetArchive({
        ".": new pulumi.asset.FileArchive("./app")
    }),
    role: role.arn,
    handler: "index.handler",
    memorySize: 5000,
    runtime: aws.lambda.Runtime.NodeJS18dX
})
r

rough-jordan-15935

03/10/2023, 8:18 AM
hm i did the exact same thing as you did
b

brave-planet-10645

03/10/2023, 10:26 AM
Can you copy/paste the entire error message?
r

rough-jordan-15935

03/14/2023, 1:06 PM
this is the error nessage i got - configuration : ValidationException: status code: 400