cloudflare / terraform-provider-cloudflare

Cloudflare Terraform Provider
https://registry.terraform.io/providers/cloudflare/cloudflare
Mozilla Public License 2.0
758 stars 585 forks source link

Missing 'email_list' value for include/excluse nested schema on cloudflare_access_group #2203

Closed jychp closed 5 months ago

jychp commented 1 year ago

Confirmation

Terraform and Cloudflare provider version

Terraform v1.3.7 on linux_amd64

Affected resource(s)

Terraform configuration files

resource "cloudflare_access_group" "rpm_admin" {
  account_id = var.cloudflare_account_id
  name       = "RPM - Admins"

  include {
    email_list = cloudflare_teams_list.rpm_admin.id
  }

  require {
    device_posture = cloudflare_device_posture_rule.gateway
  }

  require {
    device_posture = cloudflare_device_posture_rule.warp
  }
}

Link to debug output

https://gist.github.com/resilience-jychp/f9df835ed06f1e78b836f438f022153b

Panic output

No response

Expected output

email_list is a valid argument on WebUI, should be supported by terraform

importing a existing resource created from UI will lead to a incomplete resource

Actual output

│ Error: Unsupported argument │ │ on resilience-iam-groups.tf line 23, in resource "cloudflare_access_group" "rpm_admin": │ 23: email_list = cloudflare_teams_list.rpm_admin.id │ │ An argument named "email_list" is not expected here.

Steps to reproduce

  1. Create a cloudflare_teams_list containing emails
  2. Create a cloudflare_access_group with include "email_list"

Additional factoids

No response

References

No response

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

jychp commented 1 year ago

Update:

email_list should also be available in cloudflare_access_policy

ArnArm commented 7 months ago

Any ETA for this feature? Really need this one 😀

ernestaskardzys commented 7 months ago

Same here. I want to use it on my production.

ArnArm commented 7 months ago

Require as well is missing WARP option.

jacobbednarz commented 5 months ago

This issue has been closed as we are now tracking this internally with service teams directly. If you would like an update or to be notified when/if the product ships with this change, please reach out to Cloudflare Support or your account team who can watch the internal feature request for you.