DopplerHQ / terraform-provider-doppler

Apache License 2.0
23 stars 9 forks source link

Enhancement: manage Trusted IPs in config resource #60

Open slaughtr opened 1 year ago

slaughtr commented 1 year ago

We have a use case for adding a static set of IP addresses to the Trusted IPs of all of our configs. For this, it would be very helpful to be able to manage trusted IPs when deploying configs via Terraform.

Example:

resource "doppler_config" "this" {
  project = "my-project"

  environment = "dev"
  name        = "dev"

  trusted_ips = [ "1.2.3.4", "5.6.7.8" ]
}

This would prevent us inventing some complicated workaround or automation logic, which would also likely reduce unnecessary API calls to the Add endpoint.

jefflinse commented 1 year ago

Here's a draft PR that adds trusted_ip as a resource type. An alternative approach would be to update the doppler_config resource to manage the trusted IP addresses instead.

https://github.com/DopplerHQ/terraform-provider-doppler/pull/61