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

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

kandi X-RAY | terraform-provider-google Summary

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
    Quality
      Security
        License
          Reuse

            kandi-support Support

              terraform-provider-google has a medium active ecosystem.
              It has 2022 star(s) with 1577 fork(s). There are 132 watchers for this library.
              There were 10 major release(s) in the last 12 months.
              There are 1351 open issues and 6178 have been closed. On average issues are closed in 255 days. There are 60 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.69.1

            kandi-Quality Quality

              terraform-provider-google has 0 bugs and 0 code smells.

            kandi-Security Security

              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.

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

            kandi-Reuse Reuse

              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.

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

            terraform-provider-google Key Features

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

            terraform-provider-google Examples and Code Snippets

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

            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

            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

            Why does terraformer not find plugin?
            Asked 2021-Feb-12 at 15:23

            I am new to the world of terraform. I am trying to use terraformer on a GCP project, but keep getting plugin not found:

            ...

            ANSWER

            Answered 2021-Feb-12 at 15:23

            The daunting instructions worked!

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

            QUESTION

            GCP project quota issue with service account
            Asked 2020-Nov-25 at 14:54

            I'm using Terraform to create GCP projects (google_project resource) through service account inpersonnation and I'm hitting a quota issue:

            Error: Error waiting for creating folder: Error code 8, message: The project cannot be created because you have exceeded your allotted project quota.

            My problem is identical to this Github Issue

            I've requested and obtained a project quota increase and I'm able to create projects in the GCP console but not with the service account.

            The proposed solution is to use another service account but this is really inconvenient.

            • Is it possible to display the project quota associated with the service account ?
            • Is there a way to reset or update the project quota associated with the service account so that I can avoid to setup a new one ?

            Thx

            ...

            ANSWER

            Answered 2020-Nov-25 at 14:54

            If you want to have an increased quota for a specific service account you have to fill a request to Google Cloud Platform specifying both the desired quota and the service account where you want this change to be applied. If you don't specify a service account in the email addresses box and instead you just include your personal email this quota increase will be applied to your personal email.

            Currently, I'm not aware of any way to get the number of remaining projects for a specific service account. However, I found this Public Issue Tracker where a similar request was made. You can star it as you also want to have this feature and post a comment.

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

            QUESTION

            google_cloud_run_service return HTTP response 404 with body during creation
            Asked 2020-May-01 at 17:19
            google_cloud_run_service.skills-online: Creating...  
            Error: Error creating Service: googleapi: got HTTP response code 404 with body:  
            Error 404 (Not Found)!!1 
                404. That’s an error.
            
                The requested URL /apis/serving.knative.dev/v1/namespaces/skills-online/services was not found on this server. That’s all we know.
            
                on main.tf line 11, in resource "google_cloud_run_service" "skills-online":
                11: resource "google_cloud_run_service" "skills-online" {
            
            ...

            ANSWER

            Answered 2020-May-01 at 17:19

            The google cloud run service is not available in asia-south1 region

            which is why "Error creating Service: googleapi: got HTTP response code 404 with body:" is occurring, during creation google_cloud_run_service

            I changed the region in my code, according to this list https://cloud.google.com/run/docs/locations.

            I have selected asia-east1 (Taiwan) region.

            The error has been resolved.

            closed this issue https://github.com/terraform-providers/terraform-provider-google/issues/6258

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

            QUESTION

            missing permission on "billingAccounts/XXXXXXXXXXXXXXXXXXXXXXXX": billing.resourceAssociations.create Terraform (GCP)
            Asked 2020-Apr-08 at 09:43

            I tried to automate the Shared VPC creation on GCP by using Terraform. I have enabled all the access to my service account (Org Admin, XpnAdmin, Storage Admin, Compute admin, Billing Admin)

            But when i executed terraform apply it's throwing me following error:

            missing permission on "billingAccounts/CXXXXXXXXXXXXXXXXXX": billing.resourceAssociations.create

            I'm referring the Google provider Github code for this demo.

            ...

            ANSWER

            Answered 2020-Apr-08 at 09:43

            It's quite likely you have the billing admin, but you also need the ability to create billing assignments, or "Billing Project Manager".

            https://cloud.google.com/billing/v1/how-tos/access-control

            billing.resourceAssociations.create AND resourcemanager.projects.createBillingAssignment on the Cloud Billing account.

            There's some handy code to bootstrap a service account - Google Project Factory - You might want to have a look at that. Once that SA is created you shouldn't have permissions issues

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

            QUESTION

            Terraform import app engine failed due to 403
            Asked 2020-Jan-21 at 18:17

            When attempting to run an import of an existing app-engine default service, it fails due to a 403

            terraform import google_app_engine_standard_app_version.frontpage app//default

            The terraform service account is both owner and Appengine Admin (for good measure), IAP proxy and IAP proxy is disabled.

            constraints/appengine.disableCodeDownload is not enforced at the org Level.

            ...

            ANSWER

            Answered 2020-Jan-21 at 18:17

            I was calling an incorrect resource, I needed to include version ID as well.

            terraform import google_app_engine_standard_app_version.frontpage {{project}}/{{service}}/{{version_id}}

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

            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 .
            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-provider-google.git

          • CLI

            gh repo clone hashicorp/terraform-provider-google

          • sshUrl

            git@github.com:hashicorp/terraform-provider-google.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

            Explore Related Topics

            Consider Popular GCP Libraries

            microservices-demo

            by GoogleCloudPlatform

            awesome-kubernetes

            by ramitsurana

            go-cloud

            by google

            infracost

            by infracost

            python-docs-samples

            by GoogleCloudPlatform

            Try Top Libraries by hashicorp

            terraform

            by hashicorpGo

            vault

            by hashicorpGo

            consul

            by hashicorpGo

            vagrant

            by hashicorpRuby

            packer

            by hashicorpGo