tmeckel / pulumi-tf-provider-cookiecutter

A Cookiecutter template to create a Pulumi provider out of a Terraform Provider using TF Bridge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feat: add support for `upstream` directory in provider repo

tmeckel opened this issue · comments

To resolve the documentation of a wrapped Terraform provider it's sometimes required to clone the Terraform provider repository into a directory named upstream into the repository of the Pulumi provider.

This following additions have to made for Makefile:

PULUMI_REPO_PATHS:= github.com/<tf-provider-repo>=$(ROOT_DIR)/upstream
upstream/.git:
        @echo "Initializing upstream" ; \
        git clone  --depth 1 --branch <tf-provider-version> https://github.com/<tf-provider-repo> upstream
tfgen:: install_plugins upstream/.git

Examples: