Hi there,
Can I use pipeline:user() in auth ID property in START JOBS Stage (Origin or Processor) ?
Example:
${pipeline:user() == "819339ee-e7bc-XXX-bdef-XXXXXXXXX145@XXXX"
?
credential:get("aws","all","ch/dev/secret&key") :
credential:get("aws","all","ch/prod/secret&key")}
Validation is successful but the condition block always goes to retrieve “ch/prod/secret&key” even when the condition should evaluate to true.
====
Maybe I shouldn’t use the pipeline:user() function when I use a credential function as discussed in the documentation here,
Snippet from the documentation,
Important: When you use a credential function in a stage property, the function must be the only value defined in the property. For example, you cannot include another function or a literal value along with the credential function.
Can someone confirm this ?
Cheers,
Srini