[Learn Lab] Create a Terraform provider with the Plugin Framework
HTML-код
- Опубликовано: 15 сен 2024
- Create a Terraform provider with HashiCorp’s Plugin Framework. Terraform providers let you manage resources via their underlying product APIs. The Plugin Framework is a Go SDK you will use to develop your own Terraform providers.
In this lab, you will create a Terraform provider for an example application. Once you know how to use the Framework, you can use it to create Terraform providers for your company’s products, internal services, and third-party applications.
Follow along with these tutorials at developer.hash...
We also have a "follow along" repo here with each step in a separate directory: github.com/has...
Speaker: Robin Norwood
Subscribe to our RUclips Channel → www.youtube.co...
For hands-on interactive labs, visit HashiCorp Developer → developer.hash...
HashiCorp provides infrastructure automation software for multi-cloud environments, enabling enterprises to unlock a common cloud operating model to provision, secure, connect, and run any application on any infrastructure. HashiCorp tools Vagrant, Packer, Terraform, Vault, Consul, Nomad, Boundary, and Waypoint allow organizations to deliver applications faster by helping enterprises transition from manual processes and ITIL practices to self-service automation and DevOps practices.
For more information → hashicorp.com
Twitter → / hashicorp
LinkedIn → / hashicorp
Facebook → / hashicorp
Charming and interesting explanation, thank you
TIMELINE:
High level terraform provider overview: 0:15
Lab starts 7:10
Robin should have focused on implenting resource's Update() operation.
We couldn’t cover everything about provider development in-depth in a one-hour session, but you can learn more about the Update operation in the documentation ( developer.hashicorp.com/terraform/plugin/framework/resources/update ) and in our provider framework tutorial series ( developer.hashicorp.com/terraform/tutorials/providers-plugin-framework )
@@HashiCorp so youtube comments disregards the starting brace, but fails to remove the closing brace. In case any one is getting a 404 on clicking, check the URL in browser.
Thanks for calling that out, added a space and they seem to be working now!
There is no lock file created upon terraform plan,
.tf file not recognizing local file but trying to connect to registry
Apologies for any errors during this live presentation! Hopefully the links below can help.
Here is some documentation on dependency lock: developer.hashicorp.com/terraform/language/files/dependency-lock
If Terraform is trying to connect to the registry, it's possible there is something wrong with your setup of ~/.terraformrc , shown at 21:10. The setup is slightly different for windows, you can find instructions in the windows tab of the tutorial: developer.hashicorp.com/terraform/tutorials/providers-plugin-framework/providers-plugin-framework-provider#prepare-terraform-for-local-provider-install
Or in the documentation: developer.hashicorp.com/terraform/cli/config/config-file
Think i got the same message as you. If you are using windows, try replacing the in the terraform.rc file to "/users/"username"/go/bin" instead of "C:\users\"username"\go\bin". "username" will ofc be replace by your actual username :)
@@lemur8217 so, do you have hashicups binary at "users/username/go/bin" and go also installed at the same place?
I am using linux btw
@@lemur8217 , I am using linux and path is /home/username/go/bin where the binary is present but terraform cannot recognize it
Got it, I hadn't kept .terraformrc in the right path
would have been awesome if you implemented the solution with Typescript CDK for Terraform
A link to the repository in the info section would be great.
Follow along with these tutorials at developer.hashicorp.com/terraform/tutorials/providers-plugin-framework
We also have a "follow along" repo here with each step in a separate directory: github.com/hashicorp/terraform-provider-hashicups/tree/main
Are the slides available?
Hello, thanks for your interest in this session! As part of our speaker agreements, we do not share slides from our user conference sessions. For this particular presentation, we encourage you to check out our tutorials page: developer.hashicorp.com/terraform/tutorials/providers-plugin-framework
The typo mentioned ad 39:42, still isn't fixed :P
Thanks so much for calling that out! Fix has been deployed: developer.hashicorp.com/terraform/tutorials/providers-plugin-framework/providers-plugin-framework-provider-configure#implement-temporary-data-source
you never fixed the file path error in the coffee_data_source.go file
Apologies for any errors during this live presentation! Here is a tutorial with detailed and tested instructions: developer.hashicorp.com/terraform/tutorials/providers-plugin-framework/providers-plugin-framework-provider
@@HashiCorp this was an error in the documentation the speaker said they would fix and is not fixed
@@SectorFoxx Was that the one mentioned at 39:42? If so, a fix was just rolled out so please let us know if you're still having issues.