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') { |
| } | ||
|
|
||
| let id = addon.realId; | ||
| if (addon.resourceKind === 'mongodb') { |
There was a problem hiding this comment.
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 |
1b99114 to
260e0d9
Compare
Add a new command 'clever terraform generate' that outputs Terraform import blocks for Clever Cloud resources. Features: - Generate import blocks for applications and addons - Filter by organization (--org) - Filter by application (--app) - Filter by tag (--tag) - Allowlist of supported apps and addons - Automatic name normalization using slugify - Skip resources with invalid names (starting with numbers) The output can be used with Terraform to import existing Clever Cloud resources: clever terraform generate -o org_xxx > import.tf terraform plan -generate-config-out=generated.tf Related to #908
|
🔎 A preview has been automatically published! If you created the alias to the preview script, you can run this command to download and install this preview: clever-preview update feat-tf-importYou can also run it from your local repository: ./scripts/preview.js update feat-tf-import
This preview will be deleted once this PR is closed. |
terraform initclever-tools generate terraform -o orga_xxx > import.tfprovider.tf
Some imports fails see CleverCloud/terraform-provider-clevercloud#134