Skip to content

HTTPS settings for doccano in AWS

  1. Create hosted zone in Route 53
  2. Create certificate in ACM
  3. Create EC2 instance
  4. Create ELB
  5. Create A record in Route 53

Create hosted zone in Route 53

HTTPS need a domain name. If you don't have one, you can register it by the AWS Route 53 service, or you can get one from other domain seller.

After you get a domain name, you can create Hosted Zone by Route 53.

If you register domain from Route 53, you can find it in the Hosted Zone.

2B0FF02C-42DA-41D1-BFA1-31018BE006ED

Create certificate in ACM

22F3520E-909A-4215-B73A-DBB452E3D4E2

You should replace the domain name by yours.

image-20190314145326046

image-20190314145344449

4FC120A2-6DB5-4F03-A209-12C22EDD6097

Don't forget to Create record in Route 53 in step 4.

After you request a certificate, wait for a while, You should see the status become 'Issued'.

3AAE20BC-FC34-4738-AED0-D7D67929F6FF

Create EC2 instance

In this part, you can just click the launch button to create a EC2 instance.

AWS CloudFormation Launch Stack SVG Button

Create ELB

image-20190314150439785

Click the Create Load Balancer button and select Application Load Balancer.

Fill the name, change protocol to HTTPS, and do not forget add at least two availability zones. Make sure the zone that EC2 instance created is included.

02BE83A7-4C43-48BE-BCF0-95D2DF7C603D

Select the certificate we created early.

image-20190314151004337

You can select the same security groups created when you create the EC2 instance.

image-20190314151110756

Or you can create a new one

image-20190314151253917

Fill the target group name and leave others defualt.

image-20190314151314109

Add the instance to registered.

image-20190314151358736

Then review and create.

Create A record in Route 53

Back to route 53, and click Create Record Set. Fill the subname and the ELB name in the Alias Target.

image-20190314151601030

Finally, you can access the doccano by HTTPS.

image-20190314151841872