name: "{{ project_name }}"
description: "{{ manifest_description }}"
schema_version: 1
version: "{{ "{{" }} version {{ "}}" }}"
api_version: "v1"

requirements:
  core:
    from_version: "0.0.0"

resources:
  $core.compute.sets:
    {{ project_name | replace('-', '_') }}_set:
      name: "{{ project_name | replace('_', '-') }}"
      project_id: "12345678-c625-4fee-81d5-f691897b8142"
      cores: ${{ project_name | replace('-', '_') }}.imports.$var_default_cores:value
      ram: ${{ project_name | replace('-', '_') }}.imports.$var_default_ram:value
      replicas: ${{ project_name | replace('-', '_') }}.imports.$var_default_replicas:value
      disk_spec:
        kind: "root_disk"
        size: 10
        image: "{{ "{{" }} repository | default('{{ repository }}') {{ "}}" }}/{{ project_name }}/{{ "{{" }} version {{ "}}" }}/images/{{ project_name | replace('_', '-') }}.raw.gz"

imports:
  var_default_replicas:
    element: "$core"
    kind: "resource"
    link: "$core.vs.variables.$default_replicas"
  var_default_cores:
    element: "$core"
    kind: "resource"
    link: "$core.vs.variables.$default_cores"
  var_default_ram:
    element: "$core"
    kind: "resource"
    link: "$core.vs.variables.$default_ram"
