Skip to content

Error: expected type to be one of [self_hosted saas ssh vnc bookmark], got warp / app_launcher (when validating with "terraform validate" after generating --resource_type cloudflare_access_application) #481

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

Closed
2 tasks done
etec-masterofsynapse opened this issue Oct 28, 2022 · 1 comment

Comments

@etec-masterofsynapse
Copy link

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

cf-terraforming v0.8.8

Expected outcome

Get a valid .tf file with cf-terraforming generate -a <ACCOUNT_ID> --resource-type cloudflare_access_application > cloudflare_access_application.tf

Actual outcome

cf-terraforming generate -a <ACCOUNT_ID> --resource-type cloudflare_access_application > cloudflare_access_application.tf executed successfully, but terraform validate hits the present error because the cf-terraforming tool outputs the Cloudflare One internal apps warp and app_launcher as well, which aren't defined in the Cloudflare Terraform provider.

Steps to reproduce

  1. cf-terraforming generate -a <ACCOUNT_ID> --resource-type cloudflare_access_application > cloudflare_access_application.tf
  2. terraform validate

References

No response

@etec-masterofsynapse etec-masterofsynapse changed the title Error: expected type to be one of [self_hosted saas ssh vnc bookmark], got warp / app_launcher Error: expected type to be one of [self_hosted saas ssh vnc bookmark], got warp / app_launcher (when validating with "terraform validate" after generating--resource cloudflare_access_application) Oct 28, 2022
@etec-masterofsynapse etec-masterofsynapse changed the title Error: expected type to be one of [self_hosted saas ssh vnc bookmark], got warp / app_launcher (when validating with "terraform validate" after generating--resource cloudflare_access_application) Error: expected type to be one of [self_hosted saas ssh vnc bookmark], got warp / app_launcher (when validating with "terraform validate" after generating --resource cloudflare_access_application) Oct 28, 2022
@etec-masterofsynapse etec-masterofsynapse changed the title Error: expected type to be one of [self_hosted saas ssh vnc bookmark], got warp / app_launcher (when validating with "terraform validate" after generating --resource cloudflare_access_application) Error: expected type to be one of [self_hosted saas ssh vnc bookmark], got warp / app_launcher (when validating with "terraform validate" after generating --resource_type cloudflare_access_application) Oct 28, 2022
@etec-masterofsynapse
Copy link
Author

This should be solved with https://github.com/cloudflare/terraform-provider-cloudflare/releases/tag/v3.27.0
This added the missing schema types to resource/cloudflare_access_application via cloudflare/terraform-provider-cloudflare#1988

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

1 participant