billions-hospital-77217
06/10/2022, 7:15 PMusing 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>();
}
clever-address-74879
06/10/2022, 7:24 PMawait Deployment.RunAsync<MyStack>();
billions-hospital-77217
06/10/2022, 7:34 PMbillowy-army-68599