hashicorp / terraform-provider-tfe

Official HCP Terraform and Terraform Enterprise provider, maintained by HashiCorp. Provision HCP Terraform or Terraform Enterprise - with Terraform!
https://registry.terraform.io/providers/hashicorp/tfe
Mozilla Public License 2.0
167 stars 157 forks source link

tfe_workspace_run_task - Add Support for `post_apply` Run Task Stage #1305

Open zisom-hc opened 7 months ago

zisom-hc commented 7 months ago

Use-cases

Please add the ability to configure Run Tasks with the recently introduced stage post_apply. The ability to configure this stage in TFE was released in v202402-1 and we are looking to immediately take advantage of it to deploy multiple post-apply actions within our environment.

Attempted Solutions

Only way to configure a run task with this stage at the moment is manually through the UI, which goes against our policy of managing all TFE objects through the provider.

Proposal

Add a post_apply option to the stage argument within the tfe_workspace_run_task resource

Per the API docs the post_apply stage is currently configurable through it when looking at the options available for data.attributes.stage

I also see that the go-tfe SDK currently supports the post_apply option, so from what i can tell the option just needs to be included as a viable option within the tfe provider, but please do correct me if that may not be the case.

tr33squid commented 5 months ago

This is resolved as of 0.55.0