Include the run_id of an upstream stack, and any other metadata in policy inputs.

We currently have a stack that when triggered triggers it’s dependencies. We want to create one notification policy and have a unique id that we can use for the entire dependency chain since run.id is per stack.

I tried to have the upstream’s stacks run_id as an output, but when dependent stacks get triggered the policies do not contain this information, nor the run_id of the upstream stack.

For our purposes just a triggered_by_run_id would be perfect, but in general the feature is to include all possible metadata. Especially on the inputs the stack received from the output of an upstream stack. Something like inputs.triggered_by_outputs would be nice too.

Workaround
Need to use the current solution of the trigger setting that output but I have to have a script as a hook for notifications.
Problem
Would be useful to get one unique id for the entire chain for any other purposes, but I think the output metadata can be useful in other policies if people don't want to automatically trigger a stack if the input to the stack from the upstream isn't valid.

Please authenticate to join the conversation.

Upvoters
Status

🔭 Discovery

Board

💡 Feature Requests

Tags

Notifications

Date

1 day ago

Subscribe to post

Get notified by email when there are changes.