terraform-plugin-sdk | Terraform Plugin SDK enables building plugins | Infrastructure Automation library

 by   hashicorp Go Version: v2.26.1 License: MPL-2.0

kandi X-RAY | terraform-plugin-sdk Summary

kandi X-RAY | terraform-plugin-sdk Summary

terraform-plugin-sdk is a Go library typically used in Devops, Infrastructure Automation, Terraform applications. terraform-plugin-sdk has no bugs, it has no vulnerabilities, it has a Weak Copyleft License and it has low support. You can download it from GitHub.

This SDK enables building Terraform plugin which allows Terraform's users to manage existing and popular service providers as well as custom in-house solutions. Terraform itself is a tool for building, changing, and versioning infrastructure safely and efficiently. You can find more about Terraform on its website and its GitHub repository.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              terraform-plugin-sdk has a low active ecosystem.
              It has 385 star(s) with 211 fork(s). There are 26 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 150 open issues and 387 have been closed. On average issues are closed in 369 days. There are 24 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of terraform-plugin-sdk is v2.26.1

            kandi-Quality Quality

              terraform-plugin-sdk has 0 bugs and 0 code smells.

            kandi-Security Security

              terraform-plugin-sdk has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              terraform-plugin-sdk code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              terraform-plugin-sdk is licensed under the MPL-2.0 License. This license is Weak Copyleft.
              Weak Copyleft licenses have some restrictions, but you can use them in commercial projects.

            kandi-Reuse Reuse

              terraform-plugin-sdk releases are available to install and integrate.
              Installation instructions are available. Examples and code snippets are not available.
              It has 56910 lines of code, 1107 functions and 199 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of terraform-plugin-sdk
            Get all kandi verified functions for this library.

            terraform-plugin-sdk Key Features

            No Key Features are available at this moment for terraform-plugin-sdk.

            terraform-plugin-sdk Examples and Code Snippets

            No Code Snippets are available at this moment for terraform-plugin-sdk.

            Community Discussions

            QUESTION

            Is there a way to mark a property as immutable in Terraform resource?
            Asked 2021-Sep-30 at 17:36

            There're 2 properties for my terraform resource and one of them can be updated but the other can't so I want to mark it as immutable but when I open https://github.com/hashicorp/terraform-plugin-sdk/blob/main/helper/schema/schema.go#L37, it seems like there's no such an option.

            Can I mark a property as immutable in Terraform resource anyhow?

            ...

            ANSWER

            Answered 2021-Sep-30 at 05:20

            If you mean an attribute, let's say I want to ignore changes to tags in a resource, then use

            Source https://stackoverflow.com/questions/69382515

            QUESTION

            terraform backend 500 error on googleapi servicenetworking
            Asked 2021-Sep-13 at 06:39

            The other day I made a silly mistake when modifying some IAM policies on our terraform environment, I applied a change where I wanted to ADD a policy, when in fact it took this as the ONLY policy to exist so wiped out some of the vital IAM policies for service accounts to run GKE etc. Not my best day to say the least (an lesson learnt!).

            Everything has been put back to normal manually for now, as the service account permissions were never set via TF anyway - they're the sort of permissions that are applied when enabling APIs on GCP so its done by them in the background. Our GKE cluster can now be managed again and can autoscale etc.

            However, now when I run our terraform plan I receive a 500 error on a resource that was never previously a problem (redacted sensivite info):

            ...

            ANSWER

            Answered 2021-Sep-13 at 06:39

            Update: This was due to a missing permission on the servicenetworking API. The default service account created needed roles/servicenetworking.serviceAgent permission again after it had been wiped.

            More details here

            Source https://stackoverflow.com/questions/69128230

            QUESTION

            How can I fix ExactlyOneOf: foo references unknown attribute (bar) at part (bar) from terraform-plugin-sdk?
            Asked 2021-Jul-27 at 19:14

            Some context: I'm in the process of writing my own TF provider with the following schema:

            ...

            ANSWER

            Answered 2021-Jul-27 at 19:14

            As the error message states, the attribute foo is referencing another undefined attribute bar in its schema struct. You currently have no other attribute bar defined according to your displayed code, so you would need to define it or reference a defined attribute.

            If you added an attribute bar like the following:

            Source https://stackoverflow.com/questions/68550233

            QUESTION

            Terraform Provider-specify version of SDK to pull / Cannot use validation.StringInSlice type schema.SchemaValidateFunc as type SchemaValidateDiagFunc
            Asked 2021-Mar-08 at 03:45

            Due to this problem it looks like for providers you have to get a current version of the SDK (2.4.4 at time of post). This post has a lot of info on how to import a specific version of a package but surely every single provider writer isn't manually pulling the most recent version of the SDK (or are they)?

            I'm new to Go/Terraform so maybe I'm missing something obvious but the providers I've found (including the official example) have something like:

            ...

            ANSWER

            Answered 2021-Mar-08 at 03:45

            I figured it out. The behavior is controlled by the go.mod file.

            In there you'll find:

            Source https://stackoverflow.com/questions/66521854

            QUESTION

            Go: How can I create an instance of type schema.ResourceData with values for unit testing?
            Asked 2020-Aug-30 at 14:15

            I want to write a unit test for a method similar to this:

            ...

            ANSWER

            Answered 2020-Aug-30 at 14:15

            schema.TestResourceDataRaw does exactly that:

            Source https://stackoverflow.com/questions/63613067

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install terraform-plugin-sdk

            See the Call APIs with Terraform Providers guide on learn.hashicorp.com for a guided tour of provider development.

            Support

            See Extending Terraform section on the website.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/hashicorp/terraform-plugin-sdk.git

          • CLI

            gh repo clone hashicorp/terraform-plugin-sdk

          • sshUrl

            git@github.com:hashicorp/terraform-plugin-sdk.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Infrastructure Automation Libraries

            terraform

            by hashicorp

            salt

            by saltstack

            pulumi

            by pulumi

            terraformer

            by GoogleCloudPlatform

            Try Top Libraries by hashicorp

            terraform

            by hashicorpGo

            vault

            by hashicorpGo

            consul

            by hashicorpGo

            vagrant

            by hashicorpRuby

            packer

            by hashicorpGo