terraformer: Unknown flag resources
Trying to import no matter if from GCP o r AWS I always have the same error message:
terraformer import google --resource=google_container_cluster --regions=europe-west1 --project=my-project 2020/04/10 10:02:44 unknown flag: --resource
The version I have is as follows.
terraformer --version version v0.8.7
The same exactly message I have for aws.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 7
- Comments: 33 (5 by maintainers)
Commits related to this issue
- Clarify installation instructions to avoid issue #470 People were copying the line `export PROVIDER={all,google,aws,kubernetes}` as is and getting confused when only the kubernetes provider is availa... — committed to jpatokal/terraformer by jpatokal 6 months ago
- Clarify installation instructions to avoid issue #470 (#1826) People were copying the line `export PROVIDER={all,google,aws,kubernetes}` as is and getting confused when only the kubernetes provider i... — committed to GoogleCloudPlatform/terraformer by jpatokal 6 months ago
For me it seems to be the brace expansion side of things causing issues. When I installed on linux with
PROVIDER={all,aws,google,kubernetes}the commands ran super quickly and I got the above error. But if I do it just asPROVIDER=awsand then run the rest of the commands again, it takes a while downloading 150MB or so of the file and then the commands work fine.It makes me wonder if the documentation is suggesting options rather than giving an actual command. It does seem odd to include aws AND “all”.
Also crossed it, v 0.8.8, Ubuntu 20.04