Runs a set of checks that catch the common setup mistakes before you deploy:
a release with the
Mayfly.Releasesteps and amayfly: [handler: ...]option exists;the configured handler resolves (module implements
Mayfly.Handler, or a legacyModule.functionexists) and itsinit/1succeeds;for
layer: truereleases, the local OTP version matches the layer you intend to use:--layer ARNqueries Lambda for that layer's OTP version; without it the public layer catalog at elixir-aws-lambda.dev is consulted for your OTP,--arch(default arm64) and--region(defaultAWS_REGION/AWS_DEFAULT_REGIONor eu-central-1) and the matching ARN is printed;the Elixir/OTP versions are supported.
mix lambda.doctor mix lambda.doctor --arch x86_64 --region us-east-1 mix lambda.doctor --release lambda --layer arn:aws:lambda:eu-central-1:123:layer:mayfly-erlang-27-arm64:1
Exit status is 1 when any check fails.