AWS Lambda is billed per 100ms chunks, but due to propagation time on Route53, it can take up to 60 seconds before the DNS challenge finishes. Then, if the domain private key does not exist, then it is created but this may take some time to complete too.
It would be very beneficial to generate the domain private key while the DNS challenge is being performed which will save some second. Even if the DNS challenge, the private key should be saved regardless for the next execution.
AWS Lambda is billed per 100ms chunks, but due to propagation time on Route53, it can take up to 60 seconds before the DNS challenge finishes. Then, if the domain private key does not exist, then it is created but this may take some time to complete too.
It would be very beneficial to generate the domain private key while the DNS challenge is being performed which will save some second. Even if the DNS challenge, the private key should be saved regardless for the next execution.