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

google_compute_region_instance_group is not a resource but a data source. #1842

Open
teadur opened this issue Feb 1, 2024 · 2 comments
Open

Comments

@teadur
Copy link

teadur commented Feb 1, 2024

Could we get this google_compute_region_instance_group removed so the terraformer would not break out of box on that resource ?

Disabling it and running Terraform 1.7.2 with terraformer 0.8.24 with hasicorp-google provider 4.59.0 ( make sure you are not running cached older/newer version from .terraform/providers/registry.terraform.io/hashicorp/google/ ) results in succeful plan/import of my gcp setup.

       @tdiazvelez Had to dig a little bit but this is because `google_compute_region_instance_group` is not a resource but a data source.

As far as I know Terraformer only creates terraform_remote_state data sources based on the resources it has but doesn't create any other.

You can solve this by excluding it by

terraformer import google --resources="*" --excludes="regionInstanceGroups" --regions=europe-west4 --projects=MY-PROJECT

@sergeylanzman want me to create a PR to remove the google_compute_region_instance_group resource?

Also, about the issues with GCP provider, the issue started in 4.60.0 due to the plugin framework added back in, so using version 4.59.0 will work.

Originally posted by @DanielRieske in #1719 (comment)

Copy link

github-actions bot commented Apr 2, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Apr 2, 2024
@teadur
Copy link
Author

teadur commented Apr 2, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot removed the Stale label Apr 5, 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