You can bind two constraints as inputs in your cloud template.

To demonstrate a simple version of this scenario, you can bind two constraints as inputs in the cloud template yaml, platform, and environment. These constraints enable your cloud account and compute placement.

formatVersion: 1
inputs:
  platform:
    type: string
    title: cloud platform
  environment:
    type: string
    title: environment
resources:
  Cloud_vSphere_Machine_1:
    type: Cloud.Machine
    properties:
      image: centos
      flavor: small
      customizationSpec: Linux
      constraints:
        - tag: '${input.platform}'
        - tag: '${input.environment}'
      networks:
        - network: '${resource.Cloud_vSphere_Network_1.id}'
  Cloud_vSphere_Network_1:
    type: Cloud.Network
    properties:
      networkType: existing