-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>(); | ||
} |