Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when importing disable GCB trigger #3299

Closed
ghost opened this issue Mar 21, 2019 · 3 comments
Closed

Error when importing disable GCB trigger #3299

ghost opened this issue Mar 21, 2019 · 3 comments
Labels
bug forward/review In review; remove label to forward service/cloudbuild

Comments

@ghost
Copy link

ghost commented Mar 21, 2019

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
  • If an issue is assigned to the "modular-magician" user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned to "hashibot", a community member has claimed the issue already.

Terraform Version

Terraform v0.11.13

  • provider.google v2.2.0

Affected Resource(s)

  • google_cloudbuild_trigger

Terraform Configuration Files

provider "google" {
  project = "kaggle-cicd"
  region  = "us-east1"
  zone    = "us-east1-d"
}

terraform {
  backend "gcs" {
    project = "kaggle-cicd"
    region  = "us"
    bucket  = "kaggle-terraform-backend"
    prefix  = "kaggleazure/cloud-builds"
  }
}

resource "google_cloudbuild_trigger" "databundle-worker-gcp" {
  project     = "kaggle-cicd"
  description = "gcp-databundle-worker"
  disabled    = "true"
  filename    = "Kaggle.Services.Databundle.Worker/cicd/cloudbuild.yaml"

  trigger_template {
    project_id  = "kaggle-cicd"
    repo_name = "github-kaggle-kaggleazure"
    branch_name = "^ci$"
  }

  included_files = [
    "Kaggle.Services.Datasets/**",
    "Kaggle.Services.Databundle/**",
    "Kaggle.Services.Databundle.Worker/**"
  ]
}

Debug Output

Not the full output because I was having trouble getting xclip working when sshing with the Chrome extension. Let me know if you need the full output and I'll work that out.

Panic Output

Expected Behavior

Trigger should have been imported to the GCS backend.

Actual Behavior

Not imported, got an error instead.

Steps to Reproduce

Create a GCB trigger, disable it, and then try to import it.

Important Factoids

Doing this with my own user credentials. I have owner on the project and have successfully imported other triggers.

References

  • #0000
@ghost ghost added the bug label Mar 21, 2019
@emilymye
Copy link
Contributor

What was the error you got?

@ghost
Copy link
Author

ghost commented Mar 27, 2019

Sorry, lost track of this over the weekend. Can't believe I forgot the actual output.

google_cloudbuild_trigger.search-proxy: Importing from ID "1d6c22de-a7cc-4030-9328-501ea013aa20"...
google_cloudbuild_trigger.search-proxy: Import complete!
  Imported google_cloudbuild_trigger (ID: kaggle-cicd/1d6c22de-a7cc-4030-9328-501ea013aa20)
google_cloudbuild_trigger.search-proxy: Refreshing state... (ID: kaggle-cicd/1d6c22de-a7cc-4030-9328-501ea013aa20)

Error: google_cloudbuild_trigger.search-proxy (import id: 1d6c22de-a7cc-4030-9328-501ea013aa20): 1 error(s) occurred:

* import google_cloudbuild_trigger.search-proxy result: kaggle-cicd/1d6c22de-a7cc-4030-9328-501ea013aa20: google_cloudbuild_trigger.search-proxy: Error reading Trigger: disabled: '' expected type 'string', got unconvertible type 'bool'

@ghost
Copy link

ghost commented May 9, 2019

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators May 9, 2019
@github-actions github-actions bot added service/cloudbuild forward/review In review; remove label to forward labels Jan 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug forward/review In review; remove label to forward service/cloudbuild
Projects
None yet
Development

No branches or pull requests

1 participant