buildkite / terraform-provider-buildkite

Terraform provider for Buildkite
https://registry.terraform.io/providers/buildkite/buildkite/latest
MIT License
56 stars 35 forks source link

Add Support for Archiving Pipelines #508

Closed jmandel1027 closed 8 months ago

jmandel1027 commented 8 months ago

What

We need to add support for archiving buildkite pipelines via buildkite_pipeline terraform provider.

Why

We have a IAC tool that our devs at Block are using to manage Buildkite Pipelines as yaml / TF, and devs are occasionally going through the Buildkite UI to archive pipelines which will break their shard of TF state. If we have the ability to Archive via TF provider then we can safely allow teams to archive things instead of a wholesale deletion from our gitops tool for pipeline configs.

jradtilbrook commented 8 months ago

Hi @jmandel1027 thanks for raising this 👍

We actually do have support for this through a provider config option archive_pipeline_on_delete. Setting this to true will archive the pipeline when its destroyed in terraform instead of deleting it