Persisting stateful services with REX-Ray

We'll start by setting up REX-Ray manually. If it turns out to be a good solution for our stateful services, we'll move it to Packer and Terraform configurations. Another reason for starting with a manual setup is to give you a better understanding how it works.

Let's get going.

Besides the AWS access keys and the region that we already used quite a few times, we'll also need the ID of the security group we created previously with Terraform:

terraform output security_group_id

The output should be similar to the one that follows (yours will be different):

sg-d9d4d1a4

Please copy the value. We'll need it soon.

We'll enter one of the nodes where we'll install and configure REX-Ray:

ssh -i devops21.pem ...

Get The DevOps 2.1 Toolkit: Docker Swarm now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.