templates/qs-cloudq-main-advanced.template.yaml [520:538]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  SpecifiedAMIRule:
    RuleCondition: !Equals [!Ref QMarketPlaceType, "Specified-AMI-ID"]
    Assertions:
      - Assert: !Not [!Equals [!Ref QNodeCount, "Select for Custom Offering OR Expanding Cluster"]]
        AssertDescription: "A Specified AMI-ID Offering requires the EC2 Instance Count to be selected. "
      - Assert: !Not [!Equals [!Ref QDiskConfig, "Select for Custom Offering"]]
        AssertDescription: "A Specified AMI-ID Offering requires the EBS volume configuration to be selected."
      - Assert: !Not [!Equals [!Ref QAmiID, "Only for Specified AMI-ID Offering"]]
        AssertDescription: "A Specified AMI-ID Offering requires an AMI-ID"

  LocalZoneEC2Rule:
    RuleCondition: !Equals [!Ref QClusterLocalZone, "YES"]
    Assertions:
      - Assert: !Not 
        - !Contains 
          - - c5n.4xlarge
            - c5n.9xlarge
            - c5n.18xlarge
          - !Ref QInstanceType
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



templates/qs-cloudq-main-new-vpc.template.yaml [560:578]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  SpecifiedAMIRule:
    RuleCondition: !Equals [!Ref QMarketPlaceType, "Specified-AMI-ID"]
    Assertions:
      - Assert: !Not [!Equals [!Ref QNodeCount, "Select for Custom Offering OR Expanding Cluster"]]
        AssertDescription: "A Specified AMI-ID Offering requires the EC2 Instance Count to be selected. "
      - Assert: !Not [!Equals [!Ref QDiskConfig, "Select for Custom Offering"]]
        AssertDescription: "A Specified AMI-ID Offering requires the EBS volume configuration to be selected."
      - Assert: !Not [!Equals [!Ref QAmiID, "Only for Specified AMI-ID Offering"]]
        AssertDescription: "A Specified AMI-ID Offering requires an AMI-ID"

  LocalZoneEC2Rule:
    RuleCondition: !Equals [!Ref QClusterLocalZone, "YES"]
    Assertions:
      - Assert: !Not 
        - !Contains 
          - - c5n.4xlarge
            - c5n.9xlarge
            - c5n.18xlarge
          - !Ref QInstanceType
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



