1.4.4. ECL::Compute::Server

heat_template_version: 2016-04-08

description: Template sample for ECL::Compute::Server

resources:
  compute_keypair1:
    type: ECL::Compute::KeyPair
    properties:
      name: compute_keypair1

  compute_server1:
    type: ECL::Compute::Server
    properties:
      name: compute_server1
      image: ad936ae4-2983-4f23-9187-e47e82cb2725
      flavor: 1CPU-4GB
      key_name: { get_resource: compute_keypair1 }
      availability_zone: zone1_groupa
      networks:
        - uuid: 1575db62-2c8a-4aac-be9d-59025e329073
      scheduler_hints:
        same_host: 48e6a9f6-30af-47e0-bc04-acaed113bb4e
      metadata:
        k1: v1
      user_data_format: RAW
      user_data: |
        #!/bin/bash
        echo "Running Script" > /tmp/test_log.txt
      config_drive: True
      diskConfig: AUTO
      block_device_mapping_v2:
        - volume_id: 919a9ca5-da60-4755-809b-86a665d6999c
          device_type: disk
          disk_bus: virtio
          boot_index: 0
          volume_size: 15
          delete_on_termination: False