Skip to content

HCL examples in the Pulumi Registry docs use a pulumi {} block that Pulumi HCL no longer accepts #363

Closed

Description

@jkodroff

The HCL examples in this provider's Pulumi Registry docs open with a pulumi { required_providers { ... } } block. The current Pulumi HCL language plugin rejects that block:

main.tf:1,1-7: Unsupported block type; Blocks of type "pulumi" are not expected here.

The same programs run once the block is renamed to terraform { required_providers { ... } }.

Cause: pulumi-terraform-bridge generated the HCL examples with the wrong block name. pulumi/pulumi-terraform-bridge#3644 fixed this in v3.141.0. This provider is on v3.139.0.

To fix:

  1. Upgrade the bridge to v3.141.0 or later:
    cd provider
    go get github.com/pulumi/pulumi-terraform-bridge/v3@latest
    go mod tidy
  2. Regenerate the schema with make tfgen, then the SDKs with make generate (or make build_sdks, depending on your Makefile).
  3. Check that no broken examples remain. This should print 0:
    grep -oF 'pulumi {\n  required_providers' provider/cmd/pulumi-resource-equinix/schema.json | wc -l
  4. Commit the regenerated schema.json and SDKs, then cut a release. The Pulumi Registry reads schema.json from the release tag and picks up new community package versions automatically.

Tracking issue: pulumi/registry#12901.

Activity

  1. ctreatma commented on Nov 6, 2026

    @ctreatma
    Contributor

    Thanks for the notification! The bridge was updated in #364 and released in v0.34.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions