It would be nice if spacelift_policy_attachment verifies that the policy_id exists during plan time so we do not have to verify its existence with a data source.
This would allow us to see errors during the plan time if someone made a policy_id typo.
I'm afraid that there is no way to tell the Terraform provider to talk to the external API during the planning phase for a resource that does not yet exist (has no ID set).
It would be nice if
spacelift_policy_attachment
verifies that thepolicy_id
exists during plan time so we do not have to verify its existence with a data source.This would allow us to see errors during the plan time if someone made a
policy_id
typo.