cf-terraforming icon indicating copy to clipboard operation
cf-terraforming copied to clipboard

The Azure Group did not included while issuing generate command

Open bds-congnguyen opened this issue 3 years ago • 1 comments

Confirmation

  • [X] My issue isn't already found on the issue tracker.
  • [X] I have replicated my issue using the latest version of the library and it is still present.

cf-terraforming version

cf-terraforming v0.6.3

Expected outcome

the Azure group id must be included in cloudflare_access_group when running generate command instead on return empty list

Actual outcome

the azure group did not included in generated resource as verbose log below

Click to expand!
cf-terraforming generate --resource-type "cloudflare_access_group" -a XXXXXXXXXXXXXXXXXXXX -v
DEBU[0000] initializing cloudflare-go with API Token     account_Id=XXXXXXXXXXXXXXXXXXXX zone_id=
DEBU[0000] configuring Cloudflare API with account       account_id=XXXXXXXXXXXXXXXXXXXX
DEBU[0002] initialising Terraform in .
DEBU[0003] reading Terraform schema for Cloudflare provider
DEBU[0004] beginning to read and build cloudflare_access_group resources
DEBU[0004] got unknown attribute configuration: key zone_id, value <nil>, value type <nil>
DEBU[0004] unexpected attribute struct type <nil> for block azure
DEBU[0004] unexpected attribute struct type <nil> for block github
DEBU[0004] unexpected attribute struct type <nil> for block gsuite
DEBU[0004] unexpected attribute struct type <nil> for block okta
DEBU[0004] unexpected attribute struct type <nil> for block saml
DEBU[0004] unexpected attribute struct type <nil> for block azure
DEBU[0004] unexpected attribute struct type <nil> for block github
DEBU[0004] unexpected attribute struct type <nil> for block gsuite
DEBU[0004] unexpected attribute struct type <nil> for block okta
DEBU[0004] unexpected attribute struct type <nil> for block saml
DEBU[0004] got unknown attribute configuration: key any_valid_service_token, value <nil>, value type <nil>
DEBU[0004] got unknown attribute configuration: key auth_method, value <nil>, value type <nil>
DEBU[0004] got unknown attribute configuration: key certificate, value <nil>, value type <nil>
DEBU[0004] got unknown attribute configuration: key common_name, value <nil>, value type <nil>
DEBU[0004] got unknown attribute configuration: key device_posture, value <nil>, value type <nil>
DEBU[0004] got unknown attribute configuration: key email, value <nil>, value type <nil>
DEBU[0004] got unknown attribute configuration: key email_domain, value <nil>, value type <nil>
DEBU[0004] got unknown attribute configuration: key everyone, value <nil>, value type <nil>
DEBU[0004] got unknown attribute configuration: key geo, value <nil>, value type <nil>
DEBU[0004] got unknown attribute configuration: key group, value <nil>, value type <nil>
DEBU[0004] got unknown attribute configuration: key ip, value <nil>, value type <nil>
DEBU[0004] got unknown attribute configuration: key login_method, value <nil>, value type <nil>
DEBU[0004] got unknown attribute configuration: key service_token, value <nil>, value type <nil>
DEBU[0004] got unknown attribute configuration: key any_valid_service_token, value <nil>, value type <nil>
DEBU[0004] got unknown attribute configuration: key auth_method, value <nil>, value type <nil>
DEBU[0004] got unknown attribute configuration: key certificate, value <nil>, value type <nil>
DEBU[0004] got unknown attribute configuration: key common_name, value <nil>, value type <nil>
DEBU[0004] got unknown attribute configuration: key device_posture, value <nil>, value type <nil>
DEBU[0004] got unknown attribute configuration: key email_domain, value <nil>, value type <nil>
DEBU[0004] got unknown attribute configuration: key everyone, value <nil>, value type <nil>
DEBU[0004] got unknown attribute configuration: key geo, value <nil>, value type <nil>
DEBU[0004] got unknown attribute configuration: key group, value <nil>, value type <nil>
DEBU[0004] got unknown attribute configuration: key ip, value <nil>, value type <nil>
DEBU[0004] got unknown attribute configuration: key login_method, value <nil>, value type <nil>
DEBU[0004] got unknown attribute configuration: key service_token, value <nil>, value type <nil>
DEBU[0004] got unknown attribute configuration: key zone_id, value <nil>, value type <nil>
resource "cloudflare_access_group" "terraform_managed_resource_a2a7d90c-a64e-45b9-afd6-5c9262a0bdf5" {
account_id = "XXXXXXXXXXXXXXXXXXXX"
name       = "Azure Group Allowed"
include {
}
}

Steps to reproduce

  1. Integrate Idp Azure AD with Cloudflare Zero Trust https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/azuread/
  2. Go to Zero Trust then go to My Teams and go to Groups
  3. Add new group with Include is Azure Group
  4. Paste any valid ID from Azure AD -> Groups
  5. Run command cf-terraforming generate --resource-type "cloudflare_access_group" -a XXXXXXXXXXXXXXXXXXXX

References

No response

bds-congnguyen avatar Mar 06 '22 02:03 bds-congnguyen

Was this issue solved? I have the same issue but with authentik OIDC

Ghvinerias avatar Mar 11 '24 13:03 Ghvinerias