No description
Find a file
2023-12-19 23:31:43 +00:00
example More on the receitas provider 2023-12-19 23:31:43 +00:00
internal/provider More on the receitas resource 2023-12-19 23:31:43 +00:00
go.mod More on the receitas resource 2023-12-19 23:31:43 +00:00
go.sum More on the receitas resource 2023-12-19 23:31:43 +00:00
main.go More on the receitas resource 2023-12-19 23:31:43 +00:00
README.md Added entry on readme.md 2023-12-19 23:31:43 +00:00

Receita terraform example provider

What?

This is a terraform provider to serve as example. This will give an API to generate receipts based on a terraform provider.

How?

First step in this journey was to install go language. For that you can just follow something like this.

Next we need to init this as a go module this is basically to help us to manage go dependencies.

For this first step we ended with

go mod init balhau.net/receita-provider 

the output of this command was the creation of the go.mod file.

Since the goal here is to build a terraform provider we must add the terraform libraries needed for that. This can be achieved with

go get

To be able to use this terraform plugin you'll need to build this go project with

go build

And then move the binary into your terraform plugin directory, something like this

~/.terraform.d/plugins/terraform.local/local/receita/1.0.0/darwin_amd64/receita-provider