I have a standard Elastic Beanstalk app set up and running great over HTTP. Following the AWS Documentation I requested an SSL Certificate and configured it with CloudFront.
Instead of a load-balancer I am adding an ingress rule to the AWSEBSecurityGroup security group that opens port 443 to all traffic for a single instance environment. Detailed here.
Using this snippet;
Resources:
sslSecurityGroupIngress:
Type: AWS::EC2::SecurityGroupIngress
Properties:
GroupId: {"Fn::GetAtt" : ["AWSEBSecurityGroup", "GroupId"]}
IpProtocol: tcp
ToPort: 443
FromPort: 443
CidrIp: 0.0.0.0/0
and uploading it to .ebextensions/https-instance-securitygroup.config on the server. However the SSL certificate is still not working. I am unsure why, have I missed something?
Thanks.