资源编排服务 RFS-NAT.Instance:blueprint样例

时间:2024-04-18 10:02:52

blueprint样例

tosca_definitions_version: huaweicloud_tosca_version_1_0
node_templates:
  nat:
    type: HuaweiCloud.NAT.Instance
    properties:
      subnetId:
        get_input: nat_subnetId
      flavor: small
      vpcId:
        get_input: nat_vpcId
      name:
        get_input: nat_name
  snatrule:
    type: HuaweiCloud.NAT.SNatRule
    properties:
      subnetId:
        get_input: snatrule_subnetId
      floatingIpId:
        get_input: snatrule_floatingIpId
      natGatewayId:
        get_reference: nat
    requirements:
      - natGatewayId:
          node: nat
inputs:
  nat_subnetId:
    description: Nat网关所属子网的ID。
    label: ''
  nat_vpcId:
    description: Nat网关所属VPC的ID
    label: ''
  nat_name:
    description: nat的名称
    label: ''
  snatrule_subnetId:
    description: SNat规则所属子网的ID。
    label: ''
  snatrule_floatingIpId:
    description: 用户EIP的ID
    label: ''
support.huaweicloud.com/tr-aos/nat-instance.html