• g

    gorgeous-sunset-66503

    2 weeks ago
    trying to upload the error
  • g

    gorgeous-sunset-66503

    2 weeks ago
    can seem to upload
  • g

    gorgeous-sunset-66503

    2 weeks ago
    cannot use 'ctx'(type*"github.com/pulumi/pulumi/sdk/v3/go/pulumi".Context) as the type*"github.com/pulumi/pulumi/sdk/go/pulumi".Context
  • s

    salmon-account-74572

    2 weeks ago
    @gorgeous-sunset-66503 That looks generally correct. I am curious, though, why you’re throwing away the VPC value (
    _, err := ec2.NewVpc
    )? Typically you’ll need to keep that value so you can reference it later with other objects (subnets, route tables, etc.).
  • g

    gorgeous-sunset-66503

    2 weeks ago
    I was just referencing the example from here . I was trying to figure why I was running into that error so I was taking example from the website to see if anything would change with the error I am getting
  • g

    gorgeous-sunset-66503

    2 weeks ago
    Cannot use 'pulumi.String("10.0.0/16")' (type pulumi.String) as the type pulumi.StringInput Type does not implement 'pulumi.StringInput' need the method: ToStringOutput() StringOutput have the method: ToStringOutput() StringOutput
  • g

    gorgeous-sunset-66503

    2 weeks ago
    go 1.18
    
    require (
    	<http://github.com/pulumi/pulumi-aws/sdk|github.com/pulumi/pulumi-aws/sdk> v1.31.0
    	<http://github.com/pulumi/pulumi/sdk/v3|github.com/pulumi/pulumi/sdk/v3> v3.39.1
    )
  • s

    salmon-account-74572

    2 weeks ago
    It looks like you’re using a much older version of the AWS SDK. In your
    import
    , you’re referencing
    <http://github.com/pulumi/pulumi-aws/sdk/go/aws/ec2|github.com/pulumi/pulumi-aws/sdk/go/aws/ec2>
    , but the example references v5 (
    <http://github.com/pulumi/pulumi-aws/sdk/v5/go/aws/ec2|github.com/pulumi/pulumi-aws/sdk/v5/go/aws/ec2>
    ). You may want to update your imports and
    go.mod
    and see if that helps.
  • g

    gorgeous-sunset-66503

    2 weeks ago
    ok will do thanks