Pseudo parameters
There are parameters provided by Heat separately to the input parameters. These parameters can be referenced using the embedded function get_param, in the same manner as for the parameters defined using the template.
Parameter name | Description |
---|---|
OS::stack_name | The name of the stack. |
OS::stack_id | The ID used to identify stacks. |
The following is an example of a template that makes the name of the virtual server name the same as the name of the stack.
resources:
server:
type: OS::Nova::Server
properties:
name: { get_param: "OS::stack_name" }
...
Note: If the stack name is "sample_stack" then the name of the created server will also be "sample_stack".