Search code examples
amazon-web-servicessslaws-opsworksaws-certificate-manager

How to use on AWS Opsworks App a certificate bought on AWS Certificate Manager?


I have a Rails application deployed on AWS Opsworks. I recently associated a domain bought AWS SES and I got a certificate in AWS Certificate Manager for that domain.

According to the documentation, the supported services are:

  • Elastic Load Balancing
  • Amazon CloudFront
  • AWS Elastic Beanstalk
  • Amazon API Gateway

The first solution that I came up with, is to add an Elastic Load Balancing to my Layer and associate both the domain and the certificate to its Elastic IP.

Did anyone experience the same challenge? Could you suggest any better solution?

E.g. There is a way to obtain the SSL certificate and the SSL certificate key from ACM in order to add it to my App settings in Opsworks?


Solution

  • Actually after some tries, I managed to achieve it following these steps:

    • add a Load Balance in EC2
    • point the LB to the Opsworks instances
    • add the certificate to LB
    • set properly the listeners configuration in the Security Groups
    • create a new RecordSet in Route53's Hosted Zones
    • add the RecordSet the LB as Alias Target

    I wrote an article on LinkedIn Pulse where I put some screenshots and a detailed explanation.