|
| 1 | +# HTTPS settings for doccano in AWS |
| 2 | + |
| 3 | + |
| 4 | +1. Create hosted zone in Route 53 |
| 5 | +2. Create certificate in ACM |
| 6 | +3. Create EC2 instance |
| 7 | +4. Create ELB |
| 8 | +5. Create A record in Route 53 |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | +# Create hosted zone in Route 53 |
| 13 | + |
| 14 | +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. |
| 15 | + |
| 16 | +After you get a domain name, you can create Hosted Zone by Route 53. |
| 17 | + |
| 18 | +If you register domain from Route 53, you can find it in the `Hosted Zone`. |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | +# Create certificate in ACM |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | +You should replace the domain name by yours. |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | +Don't forget to Create record in Route 53 in step 4. |
| 45 | + |
| 46 | +After you request a certificate, wait for a while, You should see the status become 'Issued'. |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | +# Create EC2 instance |
| 53 | + |
| 54 | +In this part, you can just click the launch button to create a EC2 instance. |
| 55 | + |
| 56 | +[](https://us-east-1.console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/create/review?templateURL=https://s3-external-1.amazonaws.com/cf-templates-10vry9l3mp71r-us-east-1/20190732wl-new.templatexloywxxyimi&stackName=doccano) |
| 57 | + |
| 58 | +# Create ELB |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | +Click the `Create Load Balancer` button and select `Application Load Balancer`. |
| 63 | + |
| 64 | +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. |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | +Select the certificate we created early. |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | +You can select the same security groups created when you create the EC2 instance. |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | +Or you can create a new one |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | +Fill the target group name and leave others defualt. |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | +Add the instance to registered. |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | +Then review and create. |
| 91 | + |
| 92 | +# Create A record in Route 53 |
| 93 | + |
| 94 | +Back to route 53, and click `Create Record Set`. Fill the subname and the ELB name in the `Alias Target`. |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | +Finally, you can access the doccano by HTTPS. |
| 99 | + |
| 100 | + |
0 commit comments