Determining Cloud Region Data Centers

When coding entries in the blueprint template AccountRegionSelector section you need to specify entries for each cloud that want to allow the blueprint to launch stacks in. The cloud entries must contain entries for each data center in a cloud region you want to allow the blueprint to launch stacks in.

What region data center property value(s) that you need to specify in the AccountRegionSelector section for a cloud region can be determined by running the mixcoatl dcm-list-datacenters command.

Note

You must use a DCM User API key that was created for the cloud account you wish to display the regions for.

Amazon Cloud

Example of displaying the Amazon cloud regions using the mixcoatl dcm-list-regions command with a DCM API key created for use with the Amazon cloud account.

dcm-list-regions
+-----------+----------------+-------+----------------+----------------+--------+
| Region ID | Provider ID    | Cloud | Region Name    | Description    | Status |
+-----------+----------------+-------+----------------+----------------+--------+
| 14        | ap-northeast-1 | 1     | ap-northeast-1 | ap-northeast-1 | ACTIVE |
| 11        | ap-southeast-1 | 1     | ap-southeast-1 | ap-southeast-1 | ACTIVE |
| 12        | ap-southeast-2 | 1     | ap-southeast-2 | ap-southeast-2 | ACTIVE |
| 13        | eu-central-1   | 1     | eu-central-1   | eu-central-1   | ACTIVE |
| 10        | eu-west-1      | 1     | eu-west-1      | eu-west-1      | ACTIVE |
| 16        | sa-east-1      | 1     | sa-east-1      | sa-east-1      | ACTIVE |
| 15        | us-east-1      | 1     | us-east-1      | us-east-1      | ACTIVE |
| 17        | us-west-1      | 1     | us-west-1      | us-west-1      | ACTIVE |
| 18        | us-west-2      | 1     | us-west-2      | us-west-2      | ACTIVE |
+-----------+----------------+-------+----------------+----------------+--------+

Example of displaying the Amazon Cloud data centers for the Region us-east-1 (Region ID 15).

dcm-list-datacenters --regionid 15
+---------------+-------------+-------------+--------+
| Datacenter ID | Provider ID | Description | Status |
+---------------+-------------+-------------+--------+
| 22            | us-east-1a  | us-east-1a  | ACTIVE |
| 23            | us-east-1b  | us-east-1b  | ACTIVE |
| 24            | us-east-1c  | us-east-1c  | ACTIVE |
| 25            | us-east-1e  | us-east-1e  | ACTIVE |
+---------------+-------------+-------------+--------+

The region data center value(s) to use in the regions: section of the AccountRegionSelector are the Provider ID column values. In this example this blueprint will be allowed to be launched in the Amazon cloud us-east-1 region.

  ################################################################################################################################################
  # This defines the AccountRegionSelector which allows the user to select the Cloud, Region and Datacenter
  ################################################################################################################################################
  account_region_zone_selector:                                     # Define the section for the Cloud, Region and Datacenter selection boxes
    type: dcm.inputs.AccountRegionSelector                          # Input type is dcm.inputs.accountRegionSelector 
    properties:
      regions:                                                      # Define the Cloud and Regions
        "Amazon":                                                   # Amazon
          "us-east-1": [ ]                                          # All data centers for the us-east-1 region
          "us-west-1": ["us-west-1a", "us-west-1c"]
          "us-west-2": ["us-west-2a", "us-west-2b", "us-west-2c"]
          "eu-west-1": ["eu-west-1a", "eu-west-1c"]
        "Azure":                                                    # Azure
          "East US": ["East US"]
        "DigitalOcean":                                             # Digital Ocean 
          "nyc1": ["nyc1"]
        "Google":                                                   # Google
          "us-east1": ["us-east1-b"]
          "us-central1": ["us-central1-a"]
        "Joyent":                                                   # Joyent 
          "us-east-1": ["us-east-1a"]