Timeout And memory

To configure the timeout in seconds (max is 900) and the memory in megabytes of your Lambda function (max is 10240 and min is 128), set the ServerMemory and ServerTimeout fields under Deploy.Providers.AWS in your gothic.config.go as shown below:

On the GCP target the same two fields live under Deploy.Providers.GCP, with Cloud Run's own limits: the platform minimum (512 MiB, 60 s) is written explicitly when you leave them at zero.

Deploy: &gothic.DeployConfig{
	Providers: gothic.Providers{
		AWS: gothic.AWSProvider{
			ServerMemory:  512, // MB - min 128, max 10240
			ServerTimeout: 30,  // seconds - max 900
		},
	},
},