Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cloudflare_access_group resources are invalid #595

Open
2 tasks done
schack opened this issue Aug 10, 2023 · 1 comment
Open
2 tasks done

cloudflare_access_group resources are invalid #595

schack opened this issue Aug 10, 2023 · 1 comment

Comments

@schack
Copy link

schack commented Aug 10, 2023

Confirmation

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

cf-terraforming version

v0.13.0

Expected outcome

resource "cloudflare_access_group" "terraform_managed_resource_e04041e3-1535-4dbf-8e82-2b8c526c671b" {
name = "Partner: Vodafone"
zone_id = "xxxxxxxxxxxxxxxxxxxxxx"
include {
email_domain = {
domain = ["vodafone.com"]
}
}
}

Actual outcome

resource "cloudflare_access_group" "terraform_managed_resource_e04041e3-1535-4dbf-8e82-2b8c526c671b" {
name = "Partner: Vodafone"
zone_id = "xxxxxxxxxxxxxxxxxxxxxx"
include {
email_domain = {
domain = "vodafone.com". <--- missing [ ]
}
}
}

Steps to reproduce

cf-terraforming generate -z xxxxxxxxxxxxxxxxxxxxxx --resource-type "cloudflare_access_group"

According to documentation, pretty much anything must be a list of strings.

https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/access_group#nestedblock--include

References

No response

@Schachte
Copy link

+1 this issue as it's still a relevant problem that prevents the cloudflare_access_group resource type for auto code generation from being valid (requires manual correction).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants