jbergknoff/Wait for Terraform Plan Approval
Uses an external service to display a plan and wait for approval/rejection. Polls in the meantime
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| command | What to do: either `submit` or `wait`. | yes | submit |
| plan_contents | The contents of the plan. ANSI color codes are fine. This should be plaintext, not base64-encoded. Required when `command == submit`. | — | — |
| plan_id | The plan id to wait for. Required when `command == wait`. | — | — |
| external_service_url | Base URL for the external service that will display plans for approval | — | https://terraform-plan-approval.herokuapp.com |
| timeout_seconds | Give up waiting for approval/rejection after this many seconds | — | 300 |
| polling_period_seconds | The interval (in seconds) at which we'll check the plan status | — | 5 |
Outputs
| name | description |
|---|---|
| plan_id | When `command == submit`, returns the id of the plan generated by the external service. |
| approval_prompt_url | When `command == submit`, returns the URL that a human should visit to review and approve/reject the plan. |
| plan_status | When `command == wait`, returns the final status of the plan: either "approved", "rejected", or "timed out". |