-
Notifications
You must be signed in to change notification settings - Fork 49
feat(generate): generate terraform imports #908
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
base: master
Are you sure you want to change the base?
Conversation
c95b03a to
d79a490
Compare
|
🔎 A preview has been automatically published:
This preview will be deleted once this PR is closed. |
ba7d284 to
23482a3
Compare
| if (instanceType === 'node') { | ||
| instanceType = 'nodejs'; | ||
| } | ||
| if (instanceType === 'java' && app.variantSlug === 'sbt') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool !
| } | ||
|
|
||
| let id = addon.realId; | ||
| if (addon.resourceKind === 'mongodb') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there seems to be the same issue with postgresql_UUID ids.
Also, running the binaries from "preview" I did not see any effect of this code.
Should it happen after resourceKind: providerId.replaceAll('-addon', '').replaceAll('addon-', '') ?
|
Hello @miton18 , Rachel asked me to put my feedback here. It would be quite useful to get the env. vars. too ! (and dependancies if possible) But maybe it is a job on Terraform's side ? |
CellarIt's not so important (for us since we don't have so many cellars) but for your information, there is an issue with cellar's terraform outputs an error to the console: and the file's contents aren't so helpful |
PG (FYI)modified by hand: ran terraform, with similar error than for a cellar there is a bit more content in the file |
terraform initclever-tools generate terraform -o orga_xxx > import.tfprovider.tf
Some imports fails see CleverCloud/terraform-provider-clevercloud#134