generated from pulumi/pulumi-tf-provider-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Build and generate sdks
cguran-ionos edited this page Dec 6, 2024
·
4 revisions
Ensure the following tools are installed and present in your $PATH
:
pulumictl
- Go or 1.latest
golangci-lint
- NodeJS Active or maintenance version (Node.js Releases). We recommend using nvm to manage NodeJS installations.
- Yarn
- TypeScript
-
Python (called as
python3
). For recent versions of MacOS, the system-installed version is fine. - .NET
Note: you don't need .net if you don't plan on generating it.
-
cd provider && go mod tidy && cd -
-
make tfgen
-
make build_sdks
Inside pulumi-ionoscloud directory
- cd provider/
- go mod tidy
- go mod vendor
- cd ..
- make provider
- use the binary (pulumi-resource-ionoscloud) created in the bin folder
Inside pulumi test directory
- pulumi login --local
- pulumi new go
- add the module in go.mod as github.com/ionos-cloud/pulumi-ionoscloud/sdk and use replace to use the local version
- go mod tidy
- go mod vendor
- pulumi stack
- pulumi plugin install resource ionoscloud v0.1.0 -f bin/pulumi-resource-ionoscloud
- pulumi up
After changes, you might need to re-install the plugin to get the new changes:
- pulumi plugin ls
- pulumi plugin rm resource ionoscloud