Hi. I have some questions regarding the tf2pulumi ...
# general
s
Hi. I have some questions regarding the tf2pulumi tool. Could you please help me with that? 1. Is Terraform 0.12 still not supported? 2. Does the tool support only 2 "output" languages (TS and Python)? 3. From what folder exactly should I run tf2pulumi? I'd like to convert from
terraform/variants/webapi-dev/webapi-dev.tf
to
pulumi/index.ts
.
Copy code
├── pulumi
│   ├── Pulumi.yaml
│   ├── index.ts
└── terraform
    ├── README.md
    ├── modules
    │   ├── shared
    │   │   └── <http://main.tf|main.tf>
    │   └── webapi
    │       └── <http://main.tf|main.tf>
    └── variants
        ├── shared
        │   └── <http://shared.tf|shared.tf>
        ├── webapi-dev
        │   └── <http://webapi-dev.tf|webapi-dev.tf>
        └── webapi-prod
            └── <http://webapi-prod.tf|webapi-prod.tf>
g
1. Correct, 0.12 is currently being worked on. 2. Typescript is the only supported language, but Python is on the roadmap. 3. You'd run
tf2pulumi
from the
terraform/variants/webapi-dev
directory in that case.
tf2pulumi
outputs the converted code to stdout so you can pipe it to a file with
tf2pulumi > ../../pulumi/index.ts
👍 1
s
@gentle-diamond-70147, thank you.