Thread
#general
    b

    billions-hospital-77217

    3 months ago
    Did the aws-csharp code generation change? The documentation doesn't say anything about this, but I'm getting a totally different project now. I'm no longer getting any MyStack.cs file, and the Program.cs file is:
    using Pulumi;
    using Pulumi.Aws.S3;
    using System.Collections.Generic;
    
    await Deployment.RunAsync(() =>
    {
       // Create an AWS resource (S3 Bucket)
       var bucket = new Bucket("my-bucket");
       
       // Export the name of the bucket
       return new Dictionary<string, object?>
       {
          ["bucketName"] = bucket.Id
       };
    });
    Where before it was:
    using System.Threading.Tasks;
    using Pulumi;
    
    class Program
    {
        static Task<int> Main() => Deployment.RunAsync<MyStack>();
    }
    c

    clever-address-74879

    3 months ago
    Looks like it. First thing I do is to change the Program.cs to
    await Deployment.RunAsync<MyStack>();
    Was hoping they would update the template to that.
    b

    billions-hospital-77217

    3 months ago
    Hmm, it's also giving me a secret token error saying it couldn't validate it, but it works on all my other projects...
    b

    billowy-army-68599

    3 months ago