Requesting the ability to add tfe_policy_set_parameter
resources to non-VCS-sourced tfe_policy_set
resources
#1512
Labels
tfe_policy_set_parameter
resources to non-VCS-sourced tfe_policy_set
resources
#1512
Presently, the resource
tfe_policy_set_parameter
is only viable to apply to policy sets which have been created through VCS sources.Policy sets which are created using the
tfe_policy_set
resource, utilizing manually ascribed policy IDs via thepolicy_ids
parameter can-not utilizepolicy_set_parameters
. This is not evident until the run fails during the apply stage with a badly worded,resource not found
, error.The lack of meaningful feedback makes this very time consuming and difficult to troubleshoot.
In fact, the documentation page for
tfe_policy_set_parameter
andtfe_policy_set
do not mention this at all.This is, however, documented here:
https://developer.hashicorp.com/terraform/cloud-docs/policy-enforcement/manage-policy-sets#sentinel-only-sentinel-parameters
This may, in-fact, be a limitation of the underlying Terraform API, so if it is, then I'm happy to file a feature request with Hashicorp, but wanted to at least pose the question here.
Use-cases
Attempting to manage
tfe_policy_set_parameter
as one might intuitively expect, following standard Terraform references should work.Attempted Solutions
NA
Proposal
Unless there is some insurmountable technical blocker for this, a non VCS managed policy set should allow the assignment of policy set parameters. If there is a technical blocker to implementing this, the documentation of those resources should be updated to more clearly note this is a constraint of the
tfe_policy_set_parameter
resource.The text was updated successfully, but these errors were encountered: