Tutorial for creating an Self-Service Workflow
if
Step to control the workflow.if
Step to check answer.if
Step to control the workflow.if
Step to check answer.Parameter Name | Description | Selection type | Options |
---|---|---|---|
instance_type | The size of the instance. | Single-select | t2.micro (default), t2.medium, t2.large |
reason | Reason for request. Will be sent with the approval request if the user selects a non default instance size. | String |
if
Step to control the workflowSelect if
Step using the icon:
Left value | Operator | Right value |
---|---|---|
{{inputs.instance_type}} | Not equals | t2.micro |
Parameter | Description | Example |
---|---|---|
Approver | Receipts emails address or channel name. | Random |
Question | Question to be answered. | *{{metadata.user_email}} is trying to use {{inputs.instance_type}}. Reason: {{inputs.reason}} |
Answers | Commas separating possible answers | Yes, No |
if
Step to check answerSelect if
Step using the icon:
Left value | Operator | Right value |
---|---|---|
{{steps.S2.output}} | Equals | No |
Click and type Abort Step. No input parameters are required.
if
Step to control the workflowSelect if
Step using the icon:
Left value | Operator | Right value |
---|---|---|
{{any(steps.S7.output.resource_changes, {'delete' in #.change.actions})}} | equals | true |
Parameter | Description | Example |
---|---|---|
To | Receipts emails address or channel name. | Random |
Question | Question to be answered. | Apply the following changes: {{steps.S7.output}} For more details, refer to expression language. |
Answers | Commas separating possible answers | Yes, No |
if
Step to check answerSelect if
Step using the icon:
Left value | Operator | Right value |
---|---|---|
{{steps.S2.output}} | Equals | No |
Click and type Abort Step. No input parameters are required.
The Self-service portal is found on the top left of your screen, click > Portal. All Workflows exposed to you are presented. Users with access to this request can use the Automation by filling in the input parameters and running the Request. The creator will get notified every new run of the Automation for auditing purposes.