Skip to content

Commit

Permalink
Fix gcp-csharp example
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee-Ming Zen committed Apr 15, 2020
1 parent f17479c commit 5d21090
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions gcp-csharp/Program.cs
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
using System.Collections.Generic;
using System.Threading.Tasks;

using System.Threading.Tasks;
using Pulumi;
using Pulumi.Gcp.Storage;

class Program
{
static Task<int> Main()
{
return Deployment.RunAsync(() => {

// Create a GCP resource (Storage Bucket)
var bucket = new Bucket("my-bucket");

// Export the DNS name of the bucket
return new Dictionary<string, object?>
{
{ "bucketName", bucket.Url },
};
});
}
static Task<int> Main() => Deployment.RunAsync<MyStack>();
}

0 comments on commit 5d21090

Please sign in to comment.