Is it possible to use the name of an Amazon Data Pipeline as a variable inside the Data Pipeline itself? If yes, how can you do that?
Asked
Active
Viewed 201 times
1 Answers
0
Unfortunately, you can't refer to the name. You can refer to the pipeline ID using the expression @pipelineId
. For example, you could define a ShellCommandActivity to print the pipeline ID:
{
"id": "ExampleActivity",
"name": "ExampleActivity",
"runsOn": { "ref": "SomeEc2Resource" },
"type": "ShellCommandActivity",
"command": "echo \"Hello from #{@pipelineId}\""
}

joshtok
- 71
- 3