Skip to content

Support approval_rules in gitlab_project_protected_environment

Hi, it would be really great to be able to configure multiple deployment approval rules on protected environments via Terraform resource 'gitlab_project_protected_environment'

https://docs.gitlab.com/ee/ci/environments/deployment_approvals.html#multiple-approval-rules

Implementation Details

  • The upstream API doc is here.
  • The provider resource is here
  1. Implement approval_rules in go-gitlab
  2. Update the go-gitlab dependency in this provider to have the approval_rules available
  3. Implement approval_rules in the provider, similar to the already existing deploy_access_levels
Edited by Timo Furrer