terraform-provider | This repo has been deprecated and please | Infrastructure Automation library

 by   alibaba Go Version: V1.20.0 License: Apache-2.0

kandi X-RAY | terraform-provider Summary

kandi X-RAY | terraform-provider Summary

terraform-provider is a Go library typically used in Devops, Infrastructure Automation, Terraform applications. terraform-provider has no bugs, it has a Permissive License and it has low support. However terraform-provider has 1 vulnerabilities. You can download it from GitHub.

[DEPRECATED] This repo has been deprecated and please access
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              terraform-provider has a low active ecosystem.
              It has 382 star(s) with 116 fork(s). There are 54 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 10 open issues and 213 have been closed. On average issues are closed in 232 days. There are 4 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of terraform-provider is V1.20.0

            kandi-Quality Quality

              terraform-provider has 0 bugs and 0 code smells.

            kandi-Security Security

              OutlinedDot
              terraform-provider has 1 vulnerability issues reported (1 critical, 0 high, 0 medium, 0 low).
              terraform-provider code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              terraform-provider is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              terraform-provider releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.

            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-provider
            Get all kandi verified functions for this library.

            terraform-provider Key Features

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

            terraform-provider Examples and Code Snippets

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

            Community Discussions

            QUESTION

            What're the advantages of using tflog package over log package for logging?
            Asked 2022-Mar-29 at 19:35

            Context: I'm developing a TF Provider and I could see the latest "Writing Log Output" doc from HashiCorp where they recommend using tflog package for logging.

            That said, I can see TF Provider for GCP are still using log package. What're the advantages of using tflog over log?

            ...

            ANSWER

            Answered 2022-Mar-29 at 19:35

            The Structured Logging section of the documentation you linked describes the authors' justification for recommending this different logging strategy:

            The tflog package uses structured logging, based on go-hclog. Rather than writing logs as sentences with embedded variables and values, tflog takes a sentence describing the logging event and a set of variables to log. When variables are separate from the log description, you can use them to programmatically parse, filter, and search log output. This separation also allows other parts of the system to associate variables with downstream log output.

            Although not mentioned explicitly as an advantage in the documentation, it does also mention that tflog has a notion of log levels, and there's no corresponding concept in the standard library log package at the time of writing.

            Given that, I would conclude that the two intended advantages of tflog over standard library log are:

            • tflog uses a structured logging approach where the separate variables in the result are machine-parsable and therefore amenable to automated filtering via scripts.
            • tflog associates a log level with each message, and the SDKs allow customizing the log level for a particular execution to control the amount of output.

            I think getting any further context on this would require asking the authors of the SDKs, since this is a subjective design tradeoff rather than a situation where there is one clear correct answer.

            I assume that some existing providers continue to use standard library log just because that code was written before tflog existed. tflog v0.2.0 (apparently the first publicly-published version) was released in December 2021, whereas big Terraform providers like the Google Cloud Platform provider have been under development for almost a decade before that.

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

            QUESTION

            How to handle a non deletable resource when implementing a terraform provider
            Asked 2022-Mar-18 at 02:20

            I am currently working on trying to manage a resource with Terraform that has no delete method, and terraform insists there must be one.

            ...

            ANSWER

            Answered 2022-Mar-16 at 12:37

            You are also missing a Create for this API endpoint. With only Update and Read supported, you will need to extend Create to be the same as Update except for additionally adding the resource to the state. You can easily invoke the Update function within the Create function for this behavior.

            For the delete function, this should actually be easier than you may expect. The Terraform provider SDKv2 and your resource code should automatically Read the resource prior to attempting the delete to verify that it actually exists (this probably requires no extra effort on your part without seeing the code). Then you would need to remove the resource from the state with d.SetId("") where d is of type *schema.ResourceData. However, this also automatically is invoked assuming the Delete returns no errors. Therefore, you could define a Delete that merely returns warnings or errors of an appropriate Go type. If you do not need that (and probably would not considering the minimal functionality), then you could probably just return nil. Part of this is speculation based on what your code probably looks like, but in general this all holds true.

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

            QUESTION

            how can i create S3 Lifecycle configuration using Terraform?
            Asked 2022-Mar-07 at 06:06

            I tried to use newer_noncurrent_versions in S3 Lifecycle.

            In Terraform 4.3.0, lifecycle was released.

            However, when applying on Terraform cloud, an error saying to use Lifecycle V2 occurred.

            Is my code the problem? Is it a terraform provider problem?

            Terraform CLI and Terraform AWS Provider Version ...

            ANSWER

            Answered 2022-Mar-07 at 06:06

            Your are missing filter in the rule:

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

            QUESTION

            Terraform source error - Error: Failed to query available provider packages
            Asked 2022-Mar-01 at 14:32

            I am trying to deploy a new infrastructure using terraform (for the first time) and I am getting the following error. I've tried everything but nothing seems to fix the issue.

            Looks like it is asking for a provider hashicorp/azure ?

            Can anyone help please??

            ...

            ANSWER

            Answered 2022-Mar-01 at 14:32

            This often happens when one accidentally specifies "hashicorp/azure" instead of "hashicorp/azurerm" in the required_providers block. Did you check the "vm" module referenced in the "azure_instance" module calls? There might be an erroneous "hashicorp/azure" specified there.

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

            QUESTION

            Deploying API Gateway and Lambda Integration using Terraform
            Asked 2022-Feb-22 at 21:17

            I am trying to create Lambda function using Terraform. There is no permission issue.

            ...

            ANSWER

            Answered 2022-Feb-22 at 21:17

            I was able to successfully create the lambda function and IAM role resources;

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

            QUESTION

            why does 'terraform plan' fail due to my timezone not set to automatic?
            Asked 2022-Feb-14 at 17:24

            I had issue

            ...

            ANSWER

            Answered 2022-Feb-14 at 17:24

            The hashicorp/aws provider must send requests to the AWS API that are signed using the AWS Signature Version 4 algorithm.

            One of the goals of the AWS signing scheme is to minimize the time window that a compromised signature couuld be reused by an attacker. To achieve that, the signature scheme includes a timestamp when the signature was created and the remote system requires that the timestamp be within 15 minutes of the request time as understood by the remote system.

            The official documentation describes this as follows, at the time I'm writing this:

            • Protect against reuse of the signed portions of the request – The signed portions (using AWS Signatures) of requests are valid within 15 minutes of the timestamp in the request. An unauthorized party who has access to a signed request can modify the unsigned portions of the request without affecting the request's validity in the 15 minute window. Because of this, we recommend that you maximize protection by signing request headers and body, making HTTPS requests to Amazon S3, and by using the s3:x-amz-content-sha256 condition key (see Amazon S3 Signature Version 4 Authentication Specific Policy Keys) in AWS policies to require users to sign Amazon S3 request bodies.

            If your local system has an incorrect system time or if your system believes its local time to be in a different timezone than you are actually working in then the AWS SDK (which the Terraform AWS provider is built with) will generate a timestamp outside of the allowed 15 minute window, and so your request will fail. This would be true of any request to AWS APIs using this standard signature scheme, whether made by Terraform's AWS provider or by any other AWS-integrated tool.

            In order for requests to succeed your system must be able to generate a correct UTC-referenced timestamp. In order for that to be true, it must have both a correct time and – if you are using an operating system like Windows where the system time is stored in local time rather than UTC – a correct configuration of your system time's offset from UTC so that the SDK can convert to a UTC timestamp as the AWS API requires.

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

            QUESTION

            How to use the sops provider with terraform using an array instead an single value
            Asked 2022-Feb-07 at 18:46

            I'm pretty new to Terraform. I'm trying to use the sops provider plugin for encrypting secrets from a yaml file: Sops Provider

            I need to create a Terraform user object for a later provisioning stage like this example:

            ...

            ANSWER

            Answered 2022-Feb-07 at 18:46

            I think the "set of map of string" part of this error message is the important part: for_each requires either a map directly (in which case the map keys become the instance identifiers) or a set of individual strings (in which case those strings become the instance identifiers).

            Your example YAML file shows yaml_users being defined as a YAML sequence of maps, which corresponds to a tuple of objects on conversion with yamldecode.

            To use that data structure with for_each you'll need to first project it into a map whose keys will serve as the unique identifier for each instance of the resource. Assuming that the name values are suitably unique, you could project it so that those values are the keys:

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

            QUESTION

            Terraform Vcloud provider is crashing when using terraform plan
            Asked 2022-Jan-12 at 08:33

            I am trying to automate the deployment of VM's in Vcloud using terraform. The server that I am using doesn't have an internet connection so I had to install terraform and VCD provider offline. Terrafom init worked but when I use terraform plan is crashing... Terraform version: 1.0.11 VCD provider version: 3.2.0(I am using this version because we have vcloud 9.7). This is a testing script, to see if terraform works

            ...

            ANSWER

            Answered 2022-Jan-12 at 08:33

            I have found the issue. At the URL I was using the IP address of the Vcloud api, and for some reason terraform didn't like that and was causing the crash, after changing to the FQDN, terraform started working again.

            Kind regards

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

            QUESTION

            Provided region_name '"$region"' doesn't match a supported format for Windows (CMD)
            Asked 2022-Jan-08 at 07:27

            I am trying to deploy ECS using Terraform and it's throwing the above error while I am Provisioning the ECR this is happening. It tried removing the double quotes, then enabled trace for troubleshooting. I tried updating to the latest version of terraform as well (v 1.1.2)

            Here is the code chunk from main.tf file

            ...

            ANSWER

            Answered 2022-Jan-04 at 23:34

            Updated:

            A ${ ... } sequence is an interpolation in Terraform's configuration language, which evaluates the expression given between the markers. Unix shells typically use $..

            As per the official documentation, the command is evaluated in a shell, and can use environment variables or Terraform variables. So, basically, what you are trying to achieve should work fundamentally.

            I did a quick test and I was able to successfully apply that locally:

            with double quotes

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

            QUESTION

            Unable to pass service annotations when deploying helm chart via terraform
            Asked 2021-Dec-16 at 22:15

            I have seeing some examples regarding how to pass annotations when deploying a helm chart via terraform but none of then are working as expected, in this case, im trying to create a service assining a private ip on a specific subnet, but instead, its creating a public IP. My terraform files:

            ...

            ANSWER

            Answered 2021-Dec-16 at 22:15

            I just faced a similar issue, and here is what worked for me:

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install terraform-provider

            You can download it from GitHub.

            Support

            If you are not sure or have any doubt, feel free to ask and/or submit an issue or PR. We appreciate all contributions and try to make the process as smooth as possible.Contributions are welcome and will be merged via PRs.
            Find more information at:

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

            Find more libraries

            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 alibaba

            arthas

            by alibabaJava

            p3c

            by alibabaKotlin

            easyexcel

            by alibabaJava

            druid

            by alibabaJava

            nacos

            by alibabaJava