Pavan Kumar
04/07/2022, 2:09 PMthis.addOutputs({
AFTER_DEPLOY_CMD: `npx datadog-ci lambda instrument -f ${someFunction.name}`,
});
And use this output in after_deploy
hook in seed.yaml
after_deploy:
- 'npm install -g @datadog/datadog-ci'
- ${some_how_get_out_put}
Also is there a way to access stage name in seed.yaml file?Seth Geoghegan
04/07/2022, 2:24 PMFrank
Frank
aws cli
to query for the stack output AFTER_DEPLOY_CMD
Frank
aws cloudformation describe-stacks --stack-name my-stack --query 'Stacks[0].Outputs[?OutputKey==`AFTER_DEPLOY_CMD`].OutputValue | [0]
Pavan Kumar
04/08/2022, 4:41 AMPavan Kumar
04/08/2022, 4:42 AM