sparse-intern-71089
08/22/2023, 3:12 PMbetter-scooter-29497
08/22/2023, 3:14 PMbig-architect-71258
08/22/2023, 3:14 PMbetter-scooter-29497
08/22/2023, 3:16 PMbig-architect-71258
08/22/2023, 3:18 PMgo.mod
file.better-scooter-29497
08/22/2023, 3:19 PMbetter-scooter-29497
08/22/2023, 3:19 PMbig-architect-71258
08/22/2023, 3:20 PMbetter-scooter-29497
08/22/2023, 3:20 PMbig-architect-71258
08/22/2023, 3:22 PMbetter-scooter-29497
08/22/2023, 3:22 PMbig-architect-71258
08/22/2023, 3:23 PMbig-architect-71258
08/22/2023, 3:25 PMbetter-scooter-29497
08/22/2023, 3:25 PMbetter-scooter-29497
08/22/2023, 3:25 PMbig-architect-71258
08/22/2023, 3:29 PMbetter-scooter-29497
08/22/2023, 3:57 PMmake tfgen
🤔big-architect-71258
08/22/2023, 3:57 PMtfgen
. Congrats 🎉big-architect-71258
08/22/2023, 3:58 PMbetter-scooter-29497
08/22/2023, 3:58 PMbig-architect-71258
08/22/2023, 4:01 PMResources
and DataSources
properties of the prov := tfbridge.ProviderInfo{
. Perhaps you wanna have a look at my `mssql`provider in Pulumiverse how to do this.
https://github.com/pulumiverse/pulumi-mssql/blob/91839e66d4f572195b24e350fb1a8546977dd1db/provider/resources.go#L150big-architect-71258
08/22/2023, 4:06 PMawk
you can convert the error messages of tfgen
into the required go declarations like so
##
# make tfgen 2>&1 | grep -E 'TF resource \"[^"]+" not mapped' | awk -f ~/code/tf-resources.awk > resources.txt
#
function ltrim(s) { sub(/^[ \t\r\n]+/, "", s); return s }
function rtrim(s) { sub(/[ \t\r\n]+$/, "", s); return s }
function trim(s) { return rtrim(ltrim(s)); }
BEGIN { RS = "\n" ; FS = "\"" }
{
print "\"" trim($2) "\": {"
print "\tTok: makeResource(mainMod, \"" trim($2) "\"),"
print "},"
}
better-scooter-29497
08/22/2023, 4:28 PMbetter-scooter-29497
08/22/2023, 4:32 PMbig-architect-71258
08/22/2023, 4:33 PMtfgen
isn't able to figure out the correct docs location it might be required to set the PULUMI_REPO_PATHS
environment variable and have the source code of the upstream provider located somewhere on the local disk.
https://github.com/pulumi/pulumi-terraform-bridge#tfgen-optionsbig-architect-71258
08/22/2023, 4:34 PMMakefile
my version of the pulumi-fortios
provider.
https://github.com/tmeckel/pulumi-fortios/blob/7bdf50b18a4f7d45be0af39abf008b0383b3ee3a/Makefile#L8C1-L8C18big-architect-71258
08/22/2023, 4:34 PMbig-architect-71258
08/22/2023, 4:37 PMinstall_plugins
Makefile target.big-architect-71258
08/22/2023, 4:39 PMPULUMI_REPO_PATHS
is the last resort.