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

Issue Importing Specific Resources in Google Provider Using Terraformer #1952

Open
aadi557 opened this issue Nov 27, 2024 · 3 comments
Open

Comments

@aadi557
Copy link

aadi557 commented Nov 27, 2024

When attempting to import specific resources (e.g., Google Storage buckets) using Terraformer, the process fails or does not work as expected. The --filter option does not reliably import the specified resources, requiring multiple runs or manual configuration.

$ terraformer import google --resources=gcs --filter=name=test-buck12 --projects=*** --regions=us-central1 --path-pattern {output}/{provider}/**

While running the above command, Terraformer imports all resources instead of the specific resource mentioned in the filter. The --filter option does not work as intended, making it impossible to target and import only the desired resource.
Additionally, I could not find any documentation specifying the correct --filter format for importing specific resources.
Can you provide guidance on how to address this issue?

@nibatan
Copy link

nibatan commented Dec 3, 2024

Hi @aadi557 @sergeylanzman @meshuga @ktogo I am also facing same issue.

terraformer import google --resources="gke" --connect=true --regions=us-central1 --projects="xxxproject" --path-pattern={output}/{provider}/ --filter=google_container_cluster=prod-cluster
@

@jskeet
Copy link
Member

jskeet commented Dec 3, 2024

@nibatan: Please do not tag unrelated folks. I don't know about the other individuals you've included here, but I definitely can't help with this issue.

@nibatan
Copy link

nibatan commented Dec 10, 2024

@sergeylanzman @meshuga @ktogo Any update on this?

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

3 participants