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

Import resource only if they exist #1919

Open
arushdesp opened this issue Sep 16, 2024 · 0 comments
Open

Import resource only if they exist #1919

arushdesp opened this issue Sep 16, 2024 · 0 comments

Comments

@arushdesp
Copy link

Hi,
Feature to add if possible.
When I do

 terraformer import google --resources=* --project=**** --regions=******

A generated file is created checking all the services/resources one by one and then create the folder for every resource eventhough they aren't used.
Would it be possible to only have the created folder only for the resources that are currently being used?
e.g. I didnt use the service of cloudsql and I have an empty provider.tf with just the proveders info. see below:

provider "google" {
  project = "*******"
}

terraform {
	required_providers {
		google = {
	    version = "~> 4.85.0"
		}
  }
}

Thanks (:

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