Skip to Content
Docker for Rails Developers
book

Docker for Rails Developers

by Rob Isenberg
February 2019
Intermediate to advanced
240 pages
5h 25m
English
Pragmatic Bookshelf
Content preview from Docker for Rails Developers

Deploying to AWS Instead of DigitalOcean

In this chapter, we’ve created a three-node Swarm cluster running on DigitalOcean. However, you may be thinking, “That’s all very well, but what about deploying to (insert your cloud provider of choice)?” Good question.

Before we close out the chapter, we’re going to see what it would take to deploy our app to a second cloud provider: AWS. The process is very similar to that for DigitalOcean; there are just two or three key differences.

Here are the steps:

  1. Sign up for an AWS account if you don’t already have one, and set the AWS environment variables:

     export AWS_ACCESS_KEY_ID=<your access key id>
     export AWS_SECRET_ACCESS_KEY=<your secret access key>
     export AWS_DEFAULT_REGION=<your default region> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn Rails 6: Accelerated Web Development with Ruby on Rails

Learn Rails 6: Accelerated Web Development with Ruby on Rails

Adam Notodikromo
Mastering Ruby Closures

Mastering Ruby Closures

Benjamin Tan Wei Hao

Publisher Resources

ISBN: 9781680506730Errata Page