February 2019
Intermediate to advanced
240 pages
5h 25m
English
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:
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> ... |