spacelift-io / terraform-provider-spacelift

Terraform provider to interact with Spacelift
MIT License
74 stars 28 forks source link

Request: `spacelift_policy_attachment` verifies `policy_id` exists during plan time #399

Closed nitrocode closed 1 year ago

nitrocode commented 1 year ago

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.

marcinwyszynski commented 1 year ago

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).