Determining Cloud Regions

When coding entries in the blueprint template product_selector 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 region in the cloud you want to allow the blueprint to launch stacks in.

What region property value that you need to specify in the productMappings section for a cloud can be determined by running the mixcoatl dcm-list-regions 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 |
+-----------+----------------+-------+----------------+----------------+--------+

The region values to use in the productMappings: section of the product_selector 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 Product selector which allows the user to select the server product size
    ################################################################################################################################################        
    product_selector:                                                 # Define the product selector so the user can select the cloud and region
      type: dcm.inputs.Product                                        # Input type is dcm.inputs.Product
      properties:
        accountRegionSelector: account_region_zone_selector           # This connects the AccountRegionSelector to the Product selector
        platform: UNIX                                                # Virtual machine images are Linux
        architecture: I64                                             # 64 bit images
        productMappings:
          "Amazon":                                                   # Amazon cloud
            "us-east-1":                                              # us-east-1 Region
              image: "ami-c4edc0d3"                                   # Machine image identifier for an Ubuntu image in this region
              products: ['t1.micro', 'm1.small', 'm1.medium']         # The virtual machine product sizes for this region
            "us-west-1":                                              # us-west-1 Region
              image: "ami-e7035687"                                   # Machine image identifier for an Ubuntu image in this region
              products: ['t1.micro', 'm1.small', 'm1.medium']         # The virtual machine product sizes for this region
            "us-west-2":                                              # us-west-2 Region
              image: "ami-578c2f37"                                   # Machine image identifier for an Ubuntu image in this region
              products: ['t1.micro', 'm1.small', 'm1.medium']         # The virtual machine product sizes for this region
            "eu-west-1":                                              # eu-west-1 Region
              image: "ami-e6a1f795"                                   # Machine image identifier for an Ubuntu image in this region
              products: ['t1.micro', 'm1.small', 'm1.medium']         # The virtual machine product sizes for this region

Private VMWare Cloud

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

dcm-list-regions
+-----------+-------------+-------+-------------+-------------+--------+
| Region ID | Provider ID | Cloud | Region Name | Description | Status |
+-----------+-------------+-------+-------------+-------------+--------+
| 62        | WTC         | 10201 | WTC         | WTC         | ACTIVE |
+-----------+-------------+-------+-------------+-------------+--------+

The region values to use in the productMappings: section of the product_selector are the Provider ID column values. In this example this blueprint will be allowed to be launched in the private VMWare cloud WTC region.

  ####################################################################################################################################################
  # This defines the Product selector which allows the user to select the server product size
  ####################################################################################################################################################        
  product_selector:                                                       # Define the product selector so the user can select the server product size
    type: dcm.inputs.Product                                              # Input type is dcm.inputs.Product
    properties:
      accountRegionSelector: account_region_zone_selector                 # This connects the AccountRegionSelector to the Product selector
      platform: UNIX                                                      # Virtual machine images are Linux
      architecture: I64                                                   # 64 bit images
      productMappings:
        "ACME VMWare":                                                    # Private VMWare Cloud
          "WTC":                                                          # WTC Region
            image: "422e59e8-f46e-634a-6a99-c71fd25523dd"                 # Machine Image to use in this region 
            products: ['1:1024', '1:4096', '2:2048', '2:4096', '4:10240'] # Server Products to allow

Private OpenStack Cloud

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

dcm-list-regions
+-----------+-------------+-------+-------------+-------------+--------+
| Region ID | Provider ID | Cloud | Region Name | Description | Status |
+-----------+-------------+-------+-------------+-------------+--------+
| 61        | RegionOne   | 10200 | RegionOne   | RegionOne   | ACTIVE |
+-----------+-------------+-------+-------------+-------------+--------+

The region values to use in the productMappings: section of the product_selector are the Provider ID column values. In this example this blueprint will be allowed to be launched in the private OpenStack cloud RegionOne region.

  ################################################################################################################################################
  # This defines the Product selector which allows the user to select the server product size
  ################################################################################################################################################        
  product_selector:                                                 # Define the product selector so the user can select the server product size
    type: dcm.inputs.Product                                        # Input type is dcm.inputs.Product
    properties:
      accountRegionSelector: account_region_zone_selector           # This connects the AccountRegionSelector to the Product selector
      platform: UNIX                                                # Virtual machine images are Linux
      architecture: I64                                             # 64 bit images
      productMappings:
        "ACME OpenStack":                                           # Private OpenStack Cloud
          "RegionOne":                                              # RegionOne region
            image: "bba418d0-21b4-45db-a646-12a8ddc265f1"           # Machine Image to use in this region 
            products: ['1', '2', '3', '4', '5']                     # Server Products to allow