rally-tools
Version:
The rally tools cli interface
75 lines (63 loc) • 2.35 kB
JavaScript
export default {
SdviContentMover:`{
"tasks": [
{
"operation": "copy" | "move" | "delete",
"source": {
"optional": true | false,
"inventory": {
"labels": ["<label>" | "*", ],
"tags": ["<tag>", ],
"storageSet": ["<storage location name>" | "*", ],
"expandCollections": true | false
},
"externalStorage": {
"uri": "<protocol>://<host>/<path>/<file>",
"credentials": {
"key": "<parameter store key>",
"roleArn": "<role to assume to access the parameter store>",
"roleId": "<external ID to be used in role assumption>",
"region": "<AWS region of the parameter store>"
}
}
},
"destination": {
"name": "<path within the storage location>/<filename>",
"overwrite": "never" | "notInAnyAsset" | "notInOtherAsset" | "always",
"storageMetadata": {"<key>": "<value>",...} | "<sourceStorageMetadata>",
"inventory": {
"storage": "<storage location name>",
"newLabel": "<fileLabel>",
"newTags": ["<tag>", "<tag>"],
},
"externalStorage": {
"uri": "<protocol>://<host>",
"credentials": {
"key": "<parameter store key>",
"roleArn": "<role to assume to access the parameter store>",
"roleId": "<external ID to be used in role assumption>",
"region": "<AWS region of the parameter store>"
}
}
}
},
{
<another task>
},
{
<another task>
},
...
]
}`, SdviEvaluate: `'''
name: {name}
'''
name: {name}
'''
import rally
def evalMain(context):
# code here`,
};