Shamoon
Shamoon

Reputation: 43501

How do I setup HTTPS with a Single Instance Elastic Load Balancer for node.js?

I have a .ebextensions/https-instance-securitygroup.config:

Resources:
  sslSecurityGroupIngress: 
    Type: AWS::EC2::SecurityGroupIngress
    Properties:
      GroupId: {"Fn::GetAtt" : ["AWSEBSecurityGroup", "GroupId"]}
      IpProtocol: tcp
      ToPort: 443
      FromPort: 443
      CidrIp: 0.0.0.0/0

However, my URL isn't https. How can I configure it to be https?

Upvotes: 0

Views: 202

Answers (1)

Tony
Tony

Reputation: 88

you will need to create a file called "securelistener-alb.config" with the follwoing and add it to your extentions folder:

option_settings:
  aws:elb:listener:443:
    SSLCertificateId: arn:aws:acm:us-east-2:1234567890123:certificate/####################################
    ListenerProtocol: HTTPS
    InstancePort: 80

Upvotes: 1

Related Questions