Managing Inputs, Outputs and Capabilities
Cloudify Composer enables you to add inputs and outputs to the Blueprint under the Inputs & Outputs node.
Inputs are parameters that are injected into a blueprint when a deployment is created. They enable you to add data that might not have been available when a blueprint was created. They also enable you to create different “flavors” of a blueprint.
Outputs provide a method to expose global aspects of a blueprint’s deployment. For example, the endpoint of a server, or runtime or static information about a specific resource.
Inputs and outputs can be referenced from other parts of the topology, using the get-input
intrinsic function.
Adding an Input
- On the Inputs node, enter a name and description for your input.
- (Optional) Specify input display name and default value.
Further optional input properties are available after expanding the input section.
After clicking the dropdown icon on the left side of the section it is possible to provide input description as well as enable
hidden
andrequired
flags. - (Optional) Change the default
string
data type of the input. - Click the Plus (+) icon to add the input to the list.
For more information about inputs, click here.
Adding an Output
You must specify an output value in order for the deployment to pass validation.
- On the Outputs node, enter a name and description for your output.
- Specify the output value in the Default field.
You can drag the base of the field to see multiple lines, or click the edit icon next to it to display its contents in a separate window. - Click the Plus (+) icon to add the output to the list.
Adding an Capabilities
You must specify an capability value in order for the deployment to pass validation.
- On the Cpabilities node, enter a name and description for your output.
- Specify the output value in the Default field.
You can drag the base of the field to see multiple lines, or click the edit icon next to it to display its contents in a separate window. - Click the Plus (+) icon to add the output to the list.