https://pulumi.com logo
#python
Title
# python
s

shy-author-33795

05/20/2021, 7:23 PM
I'm attempting to create an S3 bucket with the following code:
Copy code
"""An AWS Python Pulumi program"""
from pulumi_aws import iam, s3

bucket = s3.Bucket(resource_name = 'elenas-cool-new-bucket'
and I'm getting a weird error:
Copy code
Type                     Name            Plan     Info
     pulumi:pulumi:Stack      s3_buckets-dev           8 messages
     └─ pulumi:providers:aws  default_4_5_0            1 error
 
Diagnostics:
  pulumi:pulumi:Stack (s3_buckets-dev):
    panic: strconv.ParseUint: parsing "": invalid syntax
    goroutine 1 [running]:
    <http://github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge.GetModuleMajorVersion(0x0|github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge.GetModuleMajorVersion(0x0>, 0x0, 0xc00153f5b0, 0x1)
        /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v3@v3.0.0/pkg/tfbridge/info.go:730 +0x1dc
    <http://github.com/pulumi/pulumi-aws/provider/v4.Provider(0x0|github.com/pulumi/pulumi-aws/provider/v4.Provider(0x0>, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
        /home/runner/work/pulumi-aws/pulumi-aws/provider/resources.go:4173 +0x52e1b
    main.main()
        /home/runner/work/pulumi-aws/pulumi-aws/provider/cmd/pulumi-resource-aws/main.go:26 +0x37
 
  pulumi:providers:aws (default_4_5_0):
    error: could not read plugin [/Users/elena.washington/.pulumi/plugins/resource-aws-v4.5.0/pulumi-resource-aws] stdout: EOF
any idea how to fix this?
b

billowy-army-68599

05/20/2021, 7:47 PM
@shy-author-33795 version 4.5.0 had an issue with version parsing - if you update to 4.5.1 it should fix it
🙌 1
s

shy-author-33795

05/20/2021, 8:34 PM
thank you!