resource_facade

The resource_facade function is used by the resource template.

In the resource template, properties values can be retrieved. Use this function to retrieve other values.

resource_facade: <data type>
Element Required Description
<data type> Yes

Specifies the data type for retrieving values.

  • metadata
  • deletion_policy

Example definition of the parent template:

resources:
  my_server:
    type: my_actual_server.yaml
    metadata:
      key: value
      some: more stuff

Example definition of the resource template "my_actual_server.yaml":

resources:
  _actual_server_:
    type: OS::Nova::Server
    metadata: { resource_facade : metadata }