pulumi / pulumi-terraform-provider

Use any Terraform provider with Pulumi
Apache License 2.0
6 stars 0 forks source link

Can't infer prefix correctly for some providers #26

Open mjeffryes opened 2 months ago

mjeffryes commented 2 months ago

Even with https://github.com/pulumi/pulumi-terraform-bridge/pull/2336, some providers fail with "missing package prefix". We may or may not want to do anything to try to make these work, but capturing examples here for future reference

mjeffryes commented 2 months ago

aliyun/alibabacloudstack has a resource with incorrect capitalization

$ pulumi package add terraform-provider registry.terraform.io/aliyun/alibabacloudstack
error: failed to get schema: parameterize: rpc error: code = Unknown desc = 1 error occurred:
    * datasources:
1 error occurred:
    * "alibabacloudStack_cloud_firewall_control_policies": token 'alibabacloudStack_cloud_firewall_control_policies' missing package prefix 'alibabacloudstack'
mjeffryes commented 2 months ago

catchpoint/catchpoint appears to lack a consistent prefix

❯ pulumi package add terraform-provider registry.terraform.io/catchpoint/catchpoint
error: failed to get schema: parameterize: rpc error: code = Unknown desc = 1 error occurred:
    * resources:
10 errors occurred:
    * "api_test": token 'api_test' missing package prefix 'catchpoint'
    * "bgp_test": token 'bgp_test' missing package prefix 'catchpoint'
    * "dns_test": token 'dns_test' missing package prefix 'catchpoint'
    * "ping_test": token 'ping_test' missing package prefix 'catchpoint'
    * "playwright_test": token 'playwright_test' missing package prefix 'catchpoint'
    * "puppeteer_test": token 'puppeteer_test' missing package prefix 'catchpoint'
    * "ssl_test": token 'ssl_test' missing package prefix 'catchpoint'
    * "traceroute_test": token 'traceroute_test' missing package prefix 'catchpoint'
    * "transaction_test": token 'transaction_test' missing package prefix 'catchpoint'
    * "web_test": token 'web_test' missing package prefix 'catchpoint'
mjeffryes commented 2 months ago

A few more instances from community providers:

Emanuel-Sifuentes/http-full

error: failed to get schema: parameterize: rpc error: code = Unknown desc = 1 error occurred:
    * datasources:
1 error occurred:
    * "http": token 'http' missing package prefix 'http-full'

Goryudyuma/encoding-mime

error: failed to get schema: parameterize: rpc error: code = Unknown desc = 1 error occurred:
    * resources:
1 error occurred:
    * "mime": token 'mime' missing package prefix 'encoding-mime'

Max-Gabriel-Susman/gaia

error: failed to get schema: parameterize: rpc error: code = Unknown desc = 2 errors occurred:
    * resources:
1 error occurred:
    * "scaffolding_resource": token 'scaffolding_resource' missing package prefix 'gaia'

    * datasources:
1 error occurred:
    * "scaffolding_data_source": token 'scaffolding_data_source' missing package prefix 'gaia'

RevelSystems/config-service

error: failed to get schema: parameterize: rpc error: code = Unknown desc = 1 error occurred:
    * resources:
1 error occurred:
    * "configuration": token 'configuration' missing package prefix 'config-service'