Expose number of managed Resources in plan policy

It would be nice to have the count of managed resources to build advanced policies:

In this run x%/Resources will be destroyed, we need to confirm that.

Workaround
There is a prebuild policy which tries to create this, but with an calculated cost for each operation. Probably it would be possible to get the resources count with something like: terraform show -json spacelift.plan | jq -c '.configuration' > configuration.custom.spacelift.json
Problem
Exposing this value would result in an easier handling of such policies.

Please authenticate to join the conversation.

Upvoters
Status

πŸ‘€ In Review

Board

πŸ’‘ Feature Requests

Tags

Stacks

Date

About 18 hours ago

Subscribe to post

Get notified by email when there are changes.