diff --git a/_storage/amazon-s3-deploy.md b/_storage/amazon-s3-deploy.md index 3abcd35e..91b48ed3 100644 --- a/_storage/amazon-s3-deploy.md +++ b/_storage/amazon-s3-deploy.md @@ -6,7 +6,7 @@ permalink: /:collection/:path.html # Configure a hub on Amazon EC2 {:.no_toc} -This teaches you how to run a Gaia hub on Amazon EC2. Amazon EC2 is an affordable and convenient cloud computing provider. This example uses Amazon EC2 together with an EB3 instance for file storage. +This teaches you how to run a Gaia hub on Amazon EC2. Amazon EC2 is an affordable and convenient cloud computing provider. This example uses Amazon EC2 instance together with an [EBS](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AmazonEBS.html) disk for file storage. * TOC {:toc} @@ -55,7 +55,7 @@ If `watch` is not located, install it on your workstation. The system opens the EC2 dashboard. -4. Enter `Blockstack Gaia` in the search bar. +4. Enter `blockstack-gaia_hub` in the search bar. The system finds AMIs in the Marketplace and the Community. @@ -67,15 +67,17 @@ If `watch` is not located, install it on your workstation. 6. Select the most recent version of the image. + * Current Release: `2.5.3` + Each image name has this format: `blockstack-gaia_hub-STORAGETYPE-VERSION-hvm - ami-BUILDTAG` - So, the `blockstack-gaia_hub-ephemeral-0001.0.1-hvm - ami-0425cf8c91bb2d331` image uses ephemeral storage, is at version `0001.0.1` and has the `0425cf8c91bb2d331` tag. + So, the `blockstack-gaia_hub-ephemeral-2.5.3-hvm - ami-0c8fc48c10a42737e` image uses ephemeral storage, is at version `2.5.3` and has the `0c8fc48c10a42737e` tag. You can choose an image that uses ephemeral or EBS storage. The ephemeral storage is very small but free. Only choose this if you plan to test or use - a personal hub. Otherwise, choose the AMI for elastic block storage (EBS). + a personal hub. Otherwise, choose the AMI for elastic block storage (EBS) which provides a persistent data store on a separate disk backed by [EBS](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AmazonEBS.html). After you select an image, the system displays **Step 2: Choose an Instance Type** page. @@ -96,7 +98,7 @@ If `watch` is not located, install it on your workstation. should attach an elastic IP (EIP) to the VM. This EIP allows you to reboot the instance without worrying whether the address will reset. To attach an IP, press allocate new address and follow the - instructions to attach the EIP to your new EC2 instance." %} + instructions to [attach the EIP](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html#using-instance-addressing-eips-associating) to your new EC2 instance." %} 2. Set **Protect against accidental termination**. @@ -176,7 +178,11 @@ If `watch` is not located, install it on your workstation. The storage is set according to the AMI you selected. 9. Choose **Next: Add tags**. -10. Add a **Key** of `purpose` with the **Value** `gaia`. +10. Add the following tags: + + * **Key** of `Purpose` with the **Value** `gaia` + * **Key** of `Name` with the **Value** `gaia-hub` + * **Key** of `Version` with the **Value** `2.5.3` ![](/storage/images/tag-add.png) @@ -341,13 +347,12 @@ Your EC2 instance is running several `docker` services that support the Gaia hub {% raw %} ```bash -$ docker ps --format "table {{.ID}}\t{{.Command}}\t{{.Names}}" -CONTAINER ID COMMAND NAMES -b371234dc741 "/bin/sh -c 'trap ex…" docker_certbot_1 -597866815f42 "/bin/sh -c 'envsubs…" docker_nginx_1 -1d559bc51699 "npm run start" docker_admin_1 -46d410a1dce5 "npm run start" docker_reader_1 -f83fb8d044f5 "npm run start" docker_hub_1 +$ docker ps --format "table {{.ID}}\t{{.Image}}\t{{.Command}}\t{{.Names}}" +CONTAINER ID IMAGE COMMAND NAMES +6b170ce9b0d6 nginx:alpine "nginx -g 'daemon of…" nginx +91c5ff651586 quay.io/blockstack/gaia-hub:v2.5.3 "docker-entrypoint.s…" gaia-hub +16b229a20320 quay.io/blockstack/gaia-reader:v2.5.3 "node lib/index.js" gaia-reader +89739e338573 quay.io/blockstack/gaia-admin:v2.5.3 "docker-entrypoint.s…" gaia-admin ``` {% endraw %} @@ -363,19 +368,18 @@ Each service plays a particular role in running your Gaia hub.
certbot
nginx
reader
side-car. This service does things like rate-limiting and SSL termination. Your
- that nginx service relies on your hub's readURL
to make requests. Changes to a hub's readURL
must be reflected in the nginx
service configuration.readURL
to make requests. Changes to a hub's readURL
must be reflected in the nginx
service configuration in /gaia/nginx/conf.d/default.confadmin
gaia-admin
reader
gaia-reader
readURL
. You can determine your Gaia hub's read URL by either
looking for the readURL
key in your Gaia hub's config file. This value is or by looking for
@@ -383,7 +387,7 @@ Each service plays a particular role in running your Gaia hub.
Gaia hub.hub
gaia-hub
/etc/systemd/system
/etc/environment
DOMAIN
and STAGING
variables you entered when creating your EC2 instance.
/gaia/gaia.env
reset-ssl-certs.service
/gaia/hub-config
/gaia/admin-config
/gaia/reader-config
/gaia/nginx/conf.d
/gaia/nginx/certbot/conf
/gaia/docker/admin-config
/gaia/scripts