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

Terraformer Fails to Import Google Cloud SQL Resources #1967

Open
anqorithm opened this issue Dec 23, 2024 · 0 comments
Open

Terraformer Fails to Import Google Cloud SQL Resources #1967

anqorithm opened this issue Dec 23, 2024 · 0 comments

Comments

@anqorithm
Copy link

anqorithm commented Dec 23, 2024

Description

When running the terraformer import command to reverse-engineer a Google Cloud Platform (GCP) project for Cloud SQL resources, the process fails with the error:

2024/12/23 23:47:20 exec: no command

This occurs despite:

  • A valid service account being used and authenticated.
  • Correct project and region parameters being provided.

Steps to Reproduce

  1. Set the service account environment variable:
    export GOOGLE_APPLICATION_CREDENTIALS="./token.json"
  2. Run the following Terraformer command:
    terraformer import google --resources=sql --projects=ai-credit-product --regions=me-central2

Expected Behavior

Terraformer should import Cloud SQL resources and generate Terraform configuration files in the generated directory.


Actual Behavior

The command fails with the following error:

2024/12/23 23:47:20 exec: no command

Environment

  • Terraformer Version: Version v0.8.24
  • Terraform Installed: Yes
  • Operating System: Arch Linux (WSL)

Findings

  1. The error exec: no command indicates Terraformer is unable to locate the Terraform binary.
  2. The service account credentials are valid, and the GCP project and region are correctly specified.
  3. Using the GCP CLI, Cloud SQL instances can be listed successfully:
    gcloud sql instances list --project=ai-credit-product

image

@anqorithm anqorithm changed the title Bug Report: Terraformer Fails to Import Google Cloud SQL Resources Terraformer Fails to Import Google Cloud SQL Resources Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant