Sharing data between hooks
Last updated
Was this helpful?
Was this helpful?
module.exports = {
type: "second",
init: (props) => {
return {
execute: (input) => {
const greeting = input.variables.hooks.firstHook
// Do something with the greeting here...
return true
}
}
}
}template: my-stack.yml
regions: eu-west-1
hooks:
- name: firstHook
type: first
- name: secondHook
type: second