This step maps outputs and capabilities, of an environment created by Cloudify, into inputs of another deployment.
This step takes two inputs:
The format of the mapping JSON is as follows:
{
"outputs": {
"<output_name>": "<input_name>",
"<output_name>": "<input_name>",
...
},
"capabilities": {
"<capability_name>": "<input_name>",
"<capability_name>": "<input_name>",
...
}
}
At the end, a file will be generated, containing a JSON compatible with Cloudify's standard "Deployment Inputs" structure, namely:
{
"<input_name>": "<intput_value>",
"<input_name>": "<intput_value>",
...
For example, if the "outputs file" is as follows:
{
"outputs": {
"endpoint": "10.0.0.130",
"username": "centos"
},
"capabilities": {
"public_key": "/tmp/public_key"
}
}
And the mapping is as follows:
{
"outputs": {
"username": "app_username"
},
"capabilities": {
"public_key": "app_data"
}
}
Then the resultant inputs file will be as follows:
{
"app_username": "centos",
"app_data": "/tmp/public_key"
}