Closed seed-doordash closed 1 year ago
Hi @seed-doordash
I'm curious - would the import command work if you run it from the CLI? Something like
pulumi import kafka:index/userScramCredential:UserScramCredential test "self_server_import_test_user_1|SCRAM-SHA256"
@mikhailshilkov thanks for response. I get
+ pulumi:pulumi:Stack kafka-user-user-test-import create
panic: fatal: An assertion has failed: inputs was non-nil
goroutine 101 [running]:
github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.failfast(...)
/private/tmp/pulumi-20230912-4658-1x1bwwe/sdk/go/common/util/contract/failfast.go:23
github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.Assertf(0xc0?, {0x103f79b1d?, 0x10475a140?}, {0x0?, 0x10475a140?, 0x105db14a8?})
/private/tmp/pulumi-20230912-4658-1x1bwwe/sdk/go/common/util/contract/assert.go:35 +0xe0
github.com/pulumi/pulumi/sdk/v3/go/common/resource.NewState({0x1400005b488, 0x16}, {0x140010a9cc0, 0x4e}, 0x1, 0x0, {0x0, _}, _, _, ...)
/private/tmp/pulumi-20230912-4658-1x1bwwe/sdk/go/common/resource/resource_state.go:79 +0xe4
github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*importer).registerProviders(0x140014ddb00, {0x104c9c6f0, 0x140013d8280})
/private/tmp/pulumi-20230912-4658-1x1bwwe/pkg/resource/deploy/import.go:261 +0xc24
github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*importer).importResources(0x140014ddb00, {0x104c9c6f0, 0x140013d8280})
/private/tmp/pulumi-20230912-4658-1x1bwwe/pkg/resource/deploy/import.go:303 +0xa0
github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*deploymentExecutor).importResources(0x14001226ba0, {0x104c9c6b8, 0x140013ca780}, {{0x14f69e898, 0x140004de000}, 0x7fffffff, 0x0, 0x0, {{0x0, 0x0, ...}, ...}, ...}, ...)
/private/tmp/pulumi-20230912-4658-1x1bwwe/pkg/resource/deploy/deployment_executor.go:435 +0xc8
github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*deploymentExecutor).Execute(0x14001226ba0, {0x104c9c6b8?, 0x140013ca780}, {{0x14f69e898, 0x140004de000}, 0x7fffffff, 0x0, 0x0, {{0x0, 0x0, ...}, ...}, ...}, ...)
/private/tmp/pulumi-20230912-4658-1x1bwwe/pkg/resource/deploy/deployment_executor.go:144 +0x750
github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*Deployment).Execute(...)
/private/tmp/pulumi-20230912-4658-1x1bwwe/pkg/resource/deploy/deployment.go:565
github.com/pulumi/pulumi/pkg/v3/engine.(*deployment).run.func1()
/private/tmp/pulumi-20230912-4658-1x1bwwe/pkg/engine/deployment.go:301 +0x1b4
created by github.com/pulumi/pulumi/pkg/v3/engine.(*deployment).run in goroutine 1
/private/tmp/pulumi-20230912-4658-1x1bwwe/pkg/engine/deployment.go:286 +0x1fc
%
░▒▓ ~/Projects/pulumi-projects/go/kafka/user kanedu/user-vault-import !2 ▓▒░
It seems like it's the underlying TF provider does not support import. Our walkaround is gonna be a "overriding import" (recreate)
gonna close out this issue
What happened?
We are trying to migrate from TF to Pulumi. When importing a Kafka Scram User, we cannot get this to work.
Our program code roughly looks like this (some parts ommitted)
Our config looks like
The pulumi preview shows
However, the resource def exits, i even checked the TF state, it looks like this
So the ID is def
self_server_import_test_user_1|SCRAM-SHA-256
, what's going on here?Expected Behavior
should be able to import
Steps to reproduce
Output of
pulumi about
Additional context
We are able to import all other resources like topic and acl. It's just the scram user we are having trouble.
The "id" for other resources in the TF state all matchs
No response
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).