Check cert status if does not exist create it

I can give some tips. Are you using a single instance or a load balancer beanstalk environ? The answer affects the overall architecture of your solution but the key factor is you need to store and retrieve the cert from persistent storage. There are various methods for that ... you could just use S3. For larger EC2 instances there is the Nitro Enclave but I am not sure those are supported by beanstalk. There are other AWS options for persistent storage.

You might find this topic helpful if scaling in load balancer:
How to use Let's Encrypt with multiple servers

5 Likes