Create ec2 + LB + SSL?

Disclaimer - TF n00b here, minimal experience

I’m trying to have an AWS TF script where it spins up an ec2 with an associated ALB and assigns a SSL (termination) cert on it. Is this even possible? We are not using our domains (so no route53 needed) but just want to use the AWS assigned DNS (like https://whatever.us-east-1.elb.amazonaws.com). Google provided 0 results on this request

Is this possible?

This sounds more like a AWS question rather than a Terraform one. For ALBs we can only attach ACM certs. You won’t be able to create a ACM cert for ALB’s Amazon provided DNS name, because it’s not possible to create the validation record for the cert. Instead what you can do is create a self signed cert, import it to ACM and when creating the ALB listener use that imported cert.