Wilson Mar bio photo

Wilson Mar

Hello. Hire me!

Email me Calendar Skype call 310 320-7878

LinkedIn Twitter Gitter Google+ Instagram Youtube

Github Stackoverflow Pinterest

https://wilsonmar.github.io/cloud-regions

Who is where


Overview

Unlike other tutorials which focus on specific vendors, here’s a multi-vendor comparison of regions.

TODO: Provide an interactive comparison.

I want you to feel confident that you’ve mastered this skill. That’s why this takes a hands-on approach where you type in commands and we explain the responses and possible troubleshooting. This is a “deep dive” because all details are presented.

Like a good music DJ, I’ve carefully arranged the presentation of concepts into a sequence for easy learning, so you don’t have to spend as much time as me making sense of the flood of material around this subject.

Sentences that begin with PROTIP are a high point of this website to point out wisdom and advice from experience. NOTE point out observations that many miss. Search for them if you only want “TL;DR” (Too Long Didn’t Read) highlights.

Stuck? Contact me and I or one of my friends will help you.

Definitions

Each region is a separate geographic area.


Amazon regions

  1. Open the Amazon EC2 console at
    https://console.aws.amazon.com/ec2

    Sign-in if you haven’t done so.

  2. Select your default region: from the navigation bar, view the options in the region selector.

    Code Name
    us-east-1 US East (N. Virginia)
    us-west-1 US West (N. California)
    us-west-2 US West (Oregon)
    eu-west-1 EU (Ireland)
    eu-central-1 EU (Frankfurt)
    ap-northeast-1 Asia Pacific (Tokyo)
    ap-northeast-2 Asia Pacific (Seoul)
    ap-southeast-1 Asia Pacific (Singapore)  
    ap-southeast-2 Asia Pacific (Sydney)
    sa-east-1 South America (São Paulo)

    Names in parentheses is what is displayed at the upper-right on various AWS consoles.

    NOTE: In addition to the above, Amazon’s has a AWS GovCloud (US) and China (Beijing) which cannot be specified this way.

  3. Availability Zones under each region are listed on the Status by service under each continent at status.aws.amazon.com

    Each region within Amazon contains multiple, isolated Availability Zones.

    Additional end-point locations via AWS CloudFormation CDN service.

    CAUTION: The number and mapping of Availability Zones per region may vary between AWS accounts.

    NOTE: Amazon charges for network traffic between availability zones.

    Set Default Region and URL for CLI

  4. Open your MacOS profile using a text editor (substitute atom with subl, vim, etc.):

    PROTIP: Set an environment variable to your default regional endpoint (for example, https://ec2.us-west-1.amazonaws.com):

    
    atom ~/.bash_profile
    
  5. Add to the bottom of the file based on your selection in the step above:

    export AWS_DEFAULT_REGION=us-west-2
    export EC2_URL=https://us-west-2.console.aws.amazon.com/ec2/v2/home?region=us-west-2

    Notice the region is specified twice in EC2_URL.

    WARNING: Do not include in EC2_URL the # and what follows, such as “#Instances:sort=instanceId”.

  6. Save the file and run the file to load it into memory:

    
    source ~/.bash_profile
    

    List regions using CLI

  7. In a Terminal window, view the very latest list of AWS regions:

    
     aws ec2 describe-regions
     aws ec2 describe-availability-zones --region us-west-2
     

    For examples of AWS CLI commands such as the above, see:
    Amazon’s User Guide on Regions and availability zones.

  8. If you get an error message like this:

    -bash: aws: command not found
    

    then install Python 2.7, pip, and the AWS CLI.

  9. If you get an error message such as this:

    An error occurred (UnauthorizedOperation) when calling the DescribeRegions operation: You are not authorized to perform this operation.
    

    then use the AWS configure command to obtain:

    • AWS Access Key ID
    • AWS Secret Access Key
    • Default region name (such as “us-west-2”)

    PROTIP: Create Named Profiles in file ~/.aws/credentials and ~/.aws/config (containing region) because you will likely use multiple AWS accounts.

    Then, go to IAM to define permissions for each user to access EC2.


Microsoft Azure cloud regions

Not all services are available in all regions.

Regions with locations, rearranged by continent:

Region Location API
Canada Central Toronto -
Canada East Quebec City -
West US California Y
Central US Iowa Y
East US Virginia Y
East US 2 Virginia Y
North Central US Illinois Y
South Central US Texas Y
Brazil South Sao Paolo Y
North Europe Ireland Y
West Europe Netherlands Y
Germany Central Frankfurt -
Germany Northeast Magdeburg -
Japan East Tokyo, Saitama Y
Japan West Osaka Y
Southeast Asia Singapore Y
East Asia Hong Kong Y
Australia East New South Wales -
Australia Southeast Victoria -
Central India Pune -
South India Chennai -
West India Mumbai -
China North Beijing -
China East Shanghai -

Two regions for the US Government are in Virginia. http://bit.ly/msgovt

See https://www.microsoft.com/en-us/server-cloud/cloud-os/global-datacenters.aspx

Rackspace

Rackspace began operations soon after the announcement of AWS. The company provides value-added on AWS as well as on its own servers East of its Austin, Texas headquarters.

AppScale (@appscalecloud) gives you the freedom to run App Engine applications on any public, private, or hybrid cloud.

More on DevOps

This is one of a series on DevOps:

  1. DevOps_2.0
  2. ci-cd (Continuous Integration and Continuous Delivery)
  3. User Stories for DevOps

  4. Git and GitHub vs File Archival
  5. Git Commands and Statuses
  6. Git Commit, Tag, Push
  7. Git Utilities
  8. Data Security GitHub
  9. GitHub API
  10. TFS vs. GitHub

  11. Choices for DevOps Technologies
  12. Java DevOps Workflow
  13. AWS DevOps (CodeCommit, CodePipeline, CodeDeploy)
  14. AWS server deployment options

  15. Cloud regions
  16. AWS Virtual Private Cloud
  17. Azure Cloud Onramp
  18. Azure Cloud
  19. Azure Cloud Powershell
  20. Bash Windows using Microsoft’s WSL (Windows Subystem for Linux)

  21. Digital Ocean
  22. Cloud Foundry

  23. Packer automation to build Vagrant images
  24. Terraform multi-cloud provisioning automation

  25. Powershell Ecosystem
  26. Powershell on MacOS
  27. Powershell Desired System Configuration

  28. Jenkins Server Setup
  29. Jenkins Plug-ins
  30. Jenkins Freestyle jobs
  31. Jenkins2 Pipeline jobs using Groovy code in Jenkinsfile

  32. Dockerize apps
  33. Docker Setup
  34. Docker Build

  35. Maven on MacOSX

  36. Ansible

  37. MySQL Setup

  38. SonarQube static code scan

  39. API Management Microsoft
  40. API Management Amazon

  41. Scenarios for load