https://pulumi.com logo
Title
c

curved-hair-82998

09/21/2022, 7:46 AM
👋 Hi everyone! I am new to pulumi, I just started playing with it by converting the existing terraform templates into go. I am facing some random issue while converting
tf2pulumi --target-language go
error: rpc error: code = Unimplemented desc = GetSchema is not yet implemented
e

echoing-dinner-19531

09/21/2022, 10:46 AM
Looks like that's using a provider plugin that hasn't been updated to support GetSchema yet. What terraform resources is this trying to covnert?
c

curved-hair-82998

09/21/2022, 10:47 AM
terraform - v0.14.11
e

echoing-dinner-19531

09/21/2022, 10:47 AM
What type of resources, e.g. aws, azure?
c

curved-hair-82998

09/21/2022, 10:48 AM
aws - trying to convert some basic resources like ec2 and rds from terraform to pulumi
e

echoing-dinner-19531

09/21/2022, 10:51 AM
aws provider should support GetSchema. What does "pulumi plugin ls" show?
c

curved-hair-82998

09/21/2022, 10:51 AM
NAME       KIND      VERSION  SIZE    INSTALLED    LAST USED
aws        resource  5.14.0   418 MB  1 day ago    1 day ago
terraform  resource  5.6.6    85 MB   4 hours ago  3 hours ago
TOTAL plugin cache size: 503 MB
e

echoing-dinner-19531

09/21/2022, 10:53 AM
Ah it's the terraform plugin there. Looks like that's not updated yet. Can you raise an issue at https://github.com/pulumi/pulumi-terraform/issues with that error message and comment that you we're trying to use it with tf2pulumi
c

curved-hair-82998

09/21/2022, 10:53 AM
sure,
do we have any temporary resolutions for now
e

echoing-dinner-19531

09/21/2022, 10:57 AM
If you can remove any StateReference from the terraform code the remaining aws resources should convert ok
c

curved-hair-82998

09/21/2022, 10:58 AM
oh. let me try that
now, I am facing the below issue
Duplicate resource URN 'urn:pulumi:dev::awsBase-Pulumi::pulumi:pulumi:Stack::awsBase-Pulumi-dev'; try giving it a unique name
[1:56 AM] this is my code structure
- aws
   - resources
     s3.go
     vpc.go
   - main.go ( calling s3 and vpc)
   - go.sum
   - go.mod
   - pulumi.yaml