kandi background
Explore Kits

terraform-provider-google | Terraform Google Cloud Platform provider | GCP library

 by   hashicorp Go Version: v4.18.0 License: MPL-2.0

 by   hashicorp Go Version: v4.18.0 License: MPL-2.0

Download this library from

kandi X-RAY | terraform-provider-google Summary

terraform-provider-google is a Go library typically used in Cloud, GCP, Terraform applications. terraform-provider-google has no bugs, it has no vulnerabilities, it has a Weak Copyleft License and it has medium support. You can download it from GitHub.
Terraform Provider for Google Cloud Platform.
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • terraform-provider-google has a medium active ecosystem.
  • It has 1656 star(s) with 1342 fork(s). There are 121 watchers for this library.
  • There were 10 major release(s) in the last 12 months.
  • There are 1077 open issues and 4681 have been closed. On average issues are closed in 32 days. There are 66 open pull requests and 0 closed requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of terraform-provider-google is v4.18.0
This Library - Support
Best in #GCP
Average in #GCP
This Library - Support
Best in #GCP
Average in #GCP

quality kandi Quality

  • terraform-provider-google has 0 bugs and 0 code smells.
This Library - Quality
Best in #GCP
Average in #GCP
This Library - Quality
Best in #GCP
Average in #GCP

securitySecurity

  • terraform-provider-google has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • terraform-provider-google code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
This Library - Security
Best in #GCP
Average in #GCP
This Library - Security
Best in #GCP
Average in #GCP

license License

  • terraform-provider-google 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.
This Library - License
Best in #GCP
Average in #GCP
This Library - License
Best in #GCP
Average in #GCP

buildReuse

  • terraform-provider-google releases are available to install and integrate.
  • Installation instructions are not available. Examples and code snippets are available.
  • It has 388582 lines of code, 17052 functions and 1414 files.
  • It has high code complexity. Code complexity directly impacts maintainability of the code.
This Library - Reuse
Best in #GCP
Average in #GCP
This Library - Reuse
Best in #GCP
Average in #GCP
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 Here

Get all kandi verified functions for this library.

Get all kandi verified functions for this library.

terraform-provider-google Key Features

Website: https://www.terraform.io

Documentation: https://www.terraform.io/docs/providers/google/index.html

[![Gitter chat](https://badges.gitter.im/hashicorp-terraform/Lobby.png)](https://gitter.im/hashicorp-terraform/Lobby)

Mailing list: [Google Groups](http://groups.google.com/group/terraform-tool) <img src="https://cdn.rawgit.com/hashicorp/terraform-website/master/content/source/assets/images/logo-hashicorp.svg" width="600px">

default

copy iconCopydownload iconDownload
This provider plugin is maintained by:

* The [Google Cloud Graphite Team](https://cloudplatform.googleblog.com/2017/03/partnering-on-open-source-Google-and-HashiCorp-engineers-on-managing-GCP-infrastructure.html) at Google
* The Terraform team at [HashiCorp](https://www.hashicorp.com/)

Requirements
------------

- [Terraform](https://www.terraform.io/downloads.html) 0.12+


Using the provider
----------------------

See the [Google Provider documentation](https://www.terraform.io/docs/providers/google/index.html) to get started using the
Google provider.

We also maintain the 'google-beta' provider for preview features and features at a beta [launch stage](https://cloud.google.com/products#product-launch-stages). See [Provider Versions](https://www.terraform.io/docs/providers/google/provider_versions.html)
for more details on how to use `google-beta`.

Upgrading the provider
----------------------

The Google provider doesn't upgrade automatically once you've started using it. After a new release you can run

```bash
terraform init -upgrade
```

to upgrade to the latest stable version of the Google provider. See the [Terraform website](https://www.terraform.io/docs/configuration/providers.html#provider-versions)
for more information on provider upgrades, and how to set version constraints on your provider.

Building the provider
---------------------

Clone repository to: `$GOPATH/src/github.com/hashicorp/terraform-provider-google`

```sh
$ mkdir -p $GOPATH/src/github.com/hashicorp; cd $GOPATH/src/github.com/hashicorp
$ git clone git@github.com:hashicorp/terraform-provider-google
```

Enter the provider directory and build the provider

```sh
$ cd $GOPATH/src/github.com/hashicorp/terraform-provider-google
$ make build
```

Developing the provider
---------------------------

If you wish to work on the provider, you'll first need [Go](http://www.golang.org)
installed on your machine (version 1.16.0+ is *required*). You can use [goenv](https://github.com/syndbg/goenv)
to manage your Go version. You'll also need to correctly setup a [GOPATH](http://golang.org/doc/code.html#GOPATH),
as well as adding `$GOPATH/bin` to your `$PATH`.

To compile the provider, run `make build`.
This will build the provider and put the provider binary in the `$GOPATH/bin`
directory.

```sh
$ make build
...
$ $GOPATH/bin/terraform-provider-google
...
```

For guidance on common development practices such as testing changes or
vendoring libraries, see the [contribution guidelines](https://github.com/hashicorp/terraform-provider-google/blob/master/.github/CONTRIBUTING.md).
If you have other development questions we don't cover, please file an issue!

Why does terraformer not find plugin?

copy iconCopydownload iconDownload
Run git clone <terraformer repo>
Run go mod download
Run go build -v for all providers OR build with one provider go run build/main.go {google,aws,azure,kubernetes and etc}
Run terraform init against an versions.tf file to install the plugins required for your platform. For example, if you need plugins for the google provider, versions.tf should contain:
terraform {
  required_providers {
    google = {
      source = "hashicorp/google"
    }
  }
  required_version = ">= 0.13"
}

Community Discussions

Trending Discussions on terraform-provider-google
  • What're the advantages of using tflog package over log package for logging?
  • terraform backend 500 error on googleapi servicenetworking
  • Why does terraformer not find plugin?
  • GCP project quota issue with service account
  • google_cloud_run_service return HTTP response 404 with body during creation
  • missing permission on "billingAccounts/XXXXXXXXXXXXXXXXXXXXXXXX": billing.resourceAssociations.create Terraform (GCP)
  • Terraform import app engine failed due to 403
Trending Discussions on terraform-provider-google

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

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

Vulnerabilities

No vulnerabilities reported

Install terraform-provider-google

You can download it from GitHub.

Support

For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .

DOWNLOAD this Library from

Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases
Explore Kits

Save this library and start creating your kit

Explore Related Topics

Share this Page

share link
Consider Popular GCP Libraries
Try Top Libraries by hashicorp
Compare GCP Libraries with Highest Support
Compare GCP Libraries with Highest Quality
Compare GCP Libraries with Highest Security
Compare GCP Libraries with Permissive License
Compare GCP Libraries with Highest Reuse
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases
Explore Kits

Save this library and start creating your kit

  • © 2022 Open Weaver Inc.