-
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
1 parent
c477439
commit 2478d4e
Showing
32 changed files
with
192 additions
and
144 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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Pulumi; | ||
using Pulumi.AliCloud.Oss; | ||
|
||
class MyStack : Stack | ||
{ | ||
public MyStack() | ||
{ | ||
// Create an AliCloud resource (OSS Bucket) | ||
var bucket = new Bucket("my-bucket"); | ||
|
||
// Export the name of the bucket | ||
this.BucketName = bucket.Id ; | ||
} | ||
|
||
[Output] | ||
public Output<string> BucketName { get; set; } | ||
} |
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.AliCloud.Oss; | ||
|
||
class Program | ||
{ | ||
static Task<int> Main() | ||
{ | ||
return Deployment.RunAsync(() => { | ||
|
||
// Create an AliCloud resource (OSS Bucket) | ||
var bucket = new Bucket("my-bucket"); | ||
|
||
// Export the name of the bucket | ||
return new Dictionary<string, object?> | ||
{ | ||
{ "bucketName", bucket.Id }, | ||
}; | ||
}); | ||
} | ||
static Task<int> Main() => Deployment.RunAsync<MyStack>(); | ||
} |
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
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Imports Pulumi | ||
Imports Pulumi.AliCloud.Oss | ||
|
||
Class MyStack | ||
Inherits Stack | ||
|
||
Public Sub New() | ||
' Create an AliCloud resource (OSS Bucket) | ||
Dim bucket = New Bucket("my-bucket") | ||
|
||
' Export the name of the bucket | ||
Me.BucketName = bucket.Id | ||
End Sub | ||
|
||
<Output> | ||
Public Property BucketName As Output(Of String) | ||
End Class |
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,19 +1,9 @@ | ||
Imports Pulumi | ||
Imports Pulumi.AliCloud.Oss | ||
|
||
Module Program | ||
Public Function Run() As IDictionary(Of String, Object) | ||
' Create an AliCloud resource (OSS Bucket) | ||
Dim bucket = New Bucket("my-bucket") | ||
|
||
' Export the name of the bucket | ||
Return New Dictionary(Of String, Object) From { | ||
{"bucketName", bucket.Id} | ||
} | ||
End Function | ||
|
||
Sub Main() | ||
Deployment.RunAsync(AddressOf Run).Wait() | ||
Deployment.RunAsync(Of MyStack)().Wait() | ||
End Sub | ||
|
||
End Module |
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Pulumi; | ||
using Pulumi.Aws.S3; | ||
|
||
class MyStack : Stack | ||
{ | ||
public MyStack() | ||
{ | ||
// Create an AWS resource (S3 Bucket) | ||
var bucket = new Bucket("my-bucket"); | ||
|
||
// Export the name of the bucket | ||
this.BucketName = bucket.Id; | ||
} | ||
|
||
[Output] | ||
public Output<string> BucketName { get; set; } | ||
} |
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.Aws.S3; | ||
|
||
class Program | ||
{ | ||
static Task<int> Main() | ||
{ | ||
return 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 }, | ||
}; | ||
}); | ||
} | ||
static Task<int> Main() => Deployment.RunAsync<MyStack>(); | ||
} |
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
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Imports Pulumi | ||
Imports Pulumi.Aws.S3 | ||
|
||
Class MyStack | ||
Inherits Stack | ||
|
||
Public Sub New() | ||
' Create an AWS resource (S3 Bucket) | ||
Dim bucket = New Bucket("my-bucket") | ||
|
||
' Export the name of the bucket | ||
Me.BucketName = bucket.Id | ||
End Sub | ||
|
||
<Output> | ||
Public Property BucketName As Output(Of String) | ||
End Class |
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,19 +1,9 @@ | ||
Imports Pulumi | ||
Imports Pulumi.Aws.S3 | ||
|
||
Module Program | ||
Public Function Run() As IDictionary(Of String, Object) | ||
' Create an AWS resource (S3 Bucket) | ||
Dim bucket = New Bucket("my-bucket") | ||
|
||
' Export the name of the bucket | ||
Return New Dictionary(Of String, Object) From { | ||
{"bucketName", bucket.Id} | ||
} | ||
End Function | ||
|
||
Sub Main() | ||
Deployment.RunAsync(AddressOf Run).Wait() | ||
Deployment.RunAsync(Of MyStack)().Wait() | ||
End Sub | ||
|
||
End Module |
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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using Pulumi; | ||
using Pulumi.Azure.Core; | ||
using Pulumi.Azure.Storage; | ||
|
||
class MyStack : Stack | ||
{ | ||
public MyStack() | ||
{ | ||
// Create an Azure Resource Group | ||
var resourceGroup = new ResourceGroup("resourceGroup"); | ||
|
||
// Create an Azure Storage Account | ||
var storageAccount = new Account("storage", new AccountArgs | ||
{ | ||
ResourceGroupName = resourceGroup.Name, | ||
AccountReplicationType = "LRS", | ||
AccountTier = "Standard", | ||
}); | ||
|
||
// Export the connection string for the storage account | ||
this.ConnectionString = storageAccount.PrimaryConnectionString; | ||
} | ||
|
||
[Output] | ||
public Output<string> ConnectionString { get; set; } | ||
} |
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,32 +1,7 @@ | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
|
||
using System.Threading.Tasks; | ||
using Pulumi; | ||
using Pulumi.Azure.Core; | ||
using Pulumi.Azure.Storage; | ||
|
||
class Program | ||
{ | ||
static Task<int> Main() | ||
{ | ||
return Deployment.RunAsync(() => { | ||
|
||
// Create an Azure Resource Group | ||
var resourceGroup = new ResourceGroup("resourceGroup"); | ||
|
||
// Create an Azure Storage Account | ||
var storageAccount = new Account("storage", new AccountArgs | ||
{ | ||
ResourceGroupName = resourceGroup.Name, | ||
AccountReplicationType = "LRS", | ||
AccountTier = "Standard", | ||
}); | ||
|
||
// Export the connection string for the storage account | ||
return new Dictionary<string, object?> | ||
{ | ||
{ "connectionString", storageAccount.PrimaryConnectionString }, | ||
}; | ||
}); | ||
} | ||
static Task<int> Main() => Deployment.RunAsync<MyStack>(); | ||
} |
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
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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Imports Pulumi | ||
Imports Pulumi.Azure.Core | ||
Imports Pulumi.Azure.Storage | ||
|
||
Class MyStack | ||
Inherits Stack | ||
|
||
Public Sub New() | ||
' Create an Azure Resource Group | ||
Dim resourceGroup = New ResourceGroup("resourceGroup") | ||
|
||
' Create an Azure Storage Account | ||
Dim storageAccount = New Account("storage", New AccountArgs With { | ||
.ResourceGroupName = resourceGroup.Name, | ||
.AccountReplicationType = "LRS", | ||
.AccountTier = "Standard" | ||
}) | ||
|
||
' Export the connection string for the storage account | ||
Me.ConnectionString = storageAccount.PrimaryConnectionString | ||
End Sub | ||
|
||
<Output> | ||
Public Property ConnectionString As Output(Of String) | ||
End Class |
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,28 +1,9 @@ | ||
Imports System.Threading.Tasks | ||
Imports Pulumi | ||
Imports Pulumi.Azure.Core | ||
Imports Pulumi.Azure.Storage | ||
Imports Pulumi | ||
|
||
Module Program | ||
Public Function Run() As IDictionary(Of String, Object) | ||
' Create an Azure Resource Group | ||
Dim resourceGroup = New ResourceGroup("resourceGroup") | ||
|
||
' Create an Azure Storage Account | ||
Dim storageAccount = New Account("storageAccount", New AccountArgs With { | ||
.ResourceGroupName = resourceGroup.Name, | ||
.AccountReplicationType = "LRS", | ||
.AccountTier = "Standard" | ||
}) | ||
|
||
' Export the connection string for the storage account | ||
Return New Dictionary(Of String, Object) From { | ||
{"connectionString", storageAccount.PrimaryConnectionString} | ||
} | ||
End Function | ||
|
||
Sub Main() | ||
Deployment.RunAsync(AddressOf Run).Wait() | ||
Deployment.RunAsync(Of MyStack)().Wait() | ||
End Sub | ||
|
||
End Module |
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
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
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
Oops, something went wrong.