0

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?

Mihai Tache
  • 161
  • 3
  • 9

1 Answers1

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