terraform-provider-tfe icon indicating copy to clipboard operation
terraform-provider-tfe copied to clipboard

tfe_policy_set needs to support uploading tarball with policies

Open scottwinkler opened this issue 3 years ago • 0 comments

From https://www.terraform.io/docs/cloud/api/policy-sets.html#create-a-policy-set-version:

For versioned policy sets which have no VCS repository attached, versions of policy code may be uploaded directly to the API by creating a new policy set version and, in a subsequent request, uploading a tarball (tar.gz) of data to it.

POST /policy-sets/:id/versions

There is currently no attribute on tfe_policy_set that allows you to upload a tarball. There is also no corresponding resource that allows you to do this. This should be fixed, because it is supported by the API and there is no reason not to have it.

scottwinkler avatar Apr 01 '21 09:04 scottwinkler