StackStorm / st2

StackStorm (aka "IFTTT for Ops") is event-driven automation for auto-remediation, incident responses, troubleshooting, deployments, and more for DevOps and SREs. Includes rules engine, workflow, 160 integration packs with 6000+ actions (see https://exchange.stackstorm.org) and ChatOps. Installer at https://docs.stackstorm.com/install/index.html
https://stackstorm.com/
Apache License 2.0
6.1k stars 746 forks source link

variable/conditional arguments for an action #4091

Open AndyMoore opened 6 years ago

AndyMoore commented 6 years ago

aws actions can have multiple optional arguments which affect the behaviour. When building a workflow there'll be occasions when it'd be useful to only input the information i currently have as an input

example:

aws rds --region eu-west-1 describe-db-engine-versions --engine postgres aws rds --region eu-west-1 describe-db-engine-versions --engine postgres --default-only aws rds --region eu-west-1 describe-db-engine-versions --engine postgres --engine-version 9.6 --default-only

each of these commands (or the st2 equivalents) will give a different response. Where there's only 1-2 argument differences this isn't too big a deal, but for things like aws_rds.create_db_instance there are many different flags that can be optional, so it becomes less feasible to have multiple versions of the same action with flag combinations

It'd be useful to be able to have conditionals on inputs, so if a var is set then the input is set

LindsayHill commented 6 years ago

How would you see this being defined? In the workflow somewhere? In the action metadata?