[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

Комментарии • 23

  • @zhenqili9732
    @zhenqili9732 Месяц назад

    Charming and interesting explanation, thank you

  • @gabesusman4592
    @gabesusman4592 2 месяца назад +1

    TIMELINE:
    High level terraform provider overview: 0:15
    Lab starts 7:10

  • @NileshAkhade
    @NileshAkhade 8 месяцев назад +2

    Robin should have focused on implenting resource's Update() operation.

    • @HashiCorp
      @HashiCorp  8 месяцев назад

      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 )

    • @GauravAgarwalR
      @GauravAgarwalR 5 месяцев назад +1

      @@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.

    • @HashiCorp
      @HashiCorp  5 месяцев назад

      Thanks for calling that out, added a space and they seem to be working now!

  • @harshas9367
    @harshas9367 6 месяцев назад

    There is no lock file created upon terraform plan,
    .tf file not recognizing local file but trying to connect to registry

    • @HashiCorp
      @HashiCorp  6 месяцев назад

      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

    • @lemur8217
      @lemur8217 6 месяцев назад

      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 :)

    • @harshas9367
      @harshas9367 6 месяцев назад

      @@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

    • @harshas9367
      @harshas9367 6 месяцев назад

      @@lemur8217 , I am using linux and path is /home/username/go/bin where the binary is present but terraform cannot recognize it

    • @harshas9367
      @harshas9367 6 месяцев назад

      Got it, I hadn't kept .terraformrc in the right path

  • @maxolande7431
    @maxolande7431 7 месяцев назад +1

    would have been awesome if you implemented the solution with Typescript CDK for Terraform

  • @dus10dnd
    @dus10dnd 5 месяцев назад

    A link to the repository in the info section would be great.

    • @HashiCorp
      @HashiCorp  5 месяцев назад

      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

  • @GauravAgarwalR
    @GauravAgarwalR 5 месяцев назад

    Are the slides available?

    • @HashiCorp
      @HashiCorp  5 месяцев назад

      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

  • @lemur8217
    @lemur8217 6 месяцев назад

    The typo mentioned ad 39:42, still isn't fixed :P

    • @HashiCorp
      @HashiCorp  6 месяцев назад

      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

  • @SectorFoxx
    @SectorFoxx 6 месяцев назад +1

    you never fixed the file path error in the coffee_data_source.go file

    • @HashiCorp
      @HashiCorp  6 месяцев назад +1

      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

    • @SectorFoxx
      @SectorFoxx 6 месяцев назад

      @@HashiCorp this was an error in the documentation the speaker said they would fix and is not fixed

    • @HashiCorp
      @HashiCorp  6 месяцев назад +1

      @@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.