We've got a rails app deployed on aws elasticbeanstalk (nginx/puma)
Users are free to set up their own custom domain name for which we ask them to add a cname record to point to our elasticbeanstalk domain.
But we also need to generate a ssl certificate for the custom domain using aws ACM. (how to do this via aws api?) Once we do this we can just show the user the cname record to add to their dns provider for the domain name verification.
Then which aws api do i have to call to see if the ssl certificate is ready to be used And how to attach the ssl certificate to the elasticbeanstalk environment (load balancer?)