https://pulumi.com logo
#getting-started
Title
# getting-started
k

kind-house-12874

05/05/2023, 8:44 AM
Hi! Trying to get started with Pulumi and evaluating if it would be the tool of choice for our IaC. Looks very promising but I have stumbled into an issue. We manage our teams as AWS organizations thus it would be great to create these organizations with Pulumi. There is even an example available that I was following but for some reason
aws.Provider
is causing issues when trying to assume a role. I couldn’t get the provider working in my app and even If you run this example: https://github.com/pulumi/examples/tree/master/aws-ts-organizations you get an error:
Copy code
└─ pulumi:providers:aws                   devAccountProvider                         1 error


Diagnostics:
  pulumi:providers:aws (devAccountProvider):
    error: rpc error: code = Unavailable desc = error reading from server: EOF

  pulumi:pulumi:Stack (aws-ts-organizations-examples):
    panic: interface conversion: interface {} is resource.Computed, not resource.PropertyMap
    goroutine 40 [running]:
    <http://github.com/pulumi/pulumi/sdk/v3/go/common/resource.PropertyValue.ObjectValue(...)|github.com/pulumi/pulumi/sdk/v3/go/common/resource.PropertyValue.ObjectValue(...)>
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.64.0/go/common/resource/properties.go:435
    <http://github.com/pulumi/pulumi-aws/provider/v5.preConfigureCallback(0x14002ca3b80|github.com/pulumi/pulumi-aws/provider/v5.preConfigureCallback(0x14002ca3b80>?, {0x140005ff320?, 0x14000c8a000?})
    	/home/runner/work/pulumi-aws/pulumi-aws/provider/resources.go:361 +0x920
    <http://github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge.(*Provider).CheckConfig(0x14002ca3b80|github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge.(*Provider).CheckConfig(0x14002ca3b80>, {0x112d29d88, 0x140005ff800}, 0x140005f6360)
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v3@v3.45.3/pkg/tfbridge/provider.go:327 +0x2a0
    <http://github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_CheckConfig_Handler.func1({0x112d29d88|github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_CheckConfig_Handler.func1({0x112d29d88>, 0x140005ff800}, {0x1123f2920?, 0x140005f6360})
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.64.0/proto/go/provider_grpc.pb.go:426 +0x74
    <http://github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0x112d29d88|github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0x112d29d88>, 0x140005fe630}, {0x1123f2920, 0x140005f6360}, 0x140005fc2c0, 0x14002e86870)
    	/home/runner/go/pkg/mod/github.com/grpc-ecosystem/grpc-opentracing@v0.0.0-20180507213350-8e809c8a8645/go/otgrpc/server.go:57 +0x30c
    <http://github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_CheckConfig_Handler({0x112a211e0|github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_CheckConfig_Handler({0x112a211e0>?, 0x14002ca3b80}, {0x112d29d88, 0x140005fe630}, 0x14002eb20e0, 0x14002db0820)
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.64.0/proto/go/provider_grpc.pb.go:428 +0x138
    <http://google.golang.org/grpc.(*Server).processUnaryRPC(0x140008303c0|google.golang.org/grpc.(*Server).processUnaryRPC(0x140008303c0>, {0x112d3b860, 0x14002fd8000}, 0x140004d6000, 0x14002defb60, 0x11b7a1cb8, 0x0)
    	/home/runner/go/pkg/mod/google.golang.org/grpc@v1.54.0/server.go:1345 +0xc64
    <http://google.golang.org/grpc.(*Server).handleStream(0x140008303c0|google.golang.org/grpc.(*Server).handleStream(0x140008303c0>, {0x112d3b860, 0x14002fd8000}, 0x140004d6000, 0x0)
    	/home/runner/go/pkg/mod/google.golang.org/grpc@v1.54.0/server.go:1722 +0x82c
    <http://google.golang.org/grpc.(*Server).serveStreams.func1.2()|google.golang.org/grpc.(*Server).serveStreams.func1.2()>
    	/home/runner/go/pkg/mod/google.golang.org/grpc@v1.54.0/server.go:966 +0x84
    created by <http://google.golang.org/grpc.(*Server).serveStreams.func1|google.golang.org/grpc.(*Server).serveStreams.func1>
    	/home/runner/go/pkg/mod/google.golang.org/grpc@v1.54.0/server.go:964 +0x290
Any help to move forward would be highly appreciated here! Thank you!
e

echoing-dinner-19531

05/05/2023, 10:57 AM
I've raised a bug on the aws repo about this: https://github.com/pulumi/pulumi-aws/issues/2513
k

kind-house-12874

05/05/2023, 12:39 PM
Thanks! I’ll keep an eye on the issue. Can’t yet contribute myself but maybe in the future.
I can confirm that the issue is resolved in
@pulumi/aws
v5.40.0. Many, many thanks for the quick resolution! 🙏
7 Views