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
using Pulumi; | |
using Pulumi.Aws.S3; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text.Json; | |
return await Deployment.RunAsync(() => | |
{ | |
// Create an AWS resource (S3 Bucket) |
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
package generated_program; | |
import java.util.*; | |
import java.io.*; | |
import java.nio.*; | |
import com.pulumi.*; | |
public class App { | |
public static void main(String[] args) { | |
int exitCode = Pulumi.run(App::stack); |
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
resource bar "kubernetes:core/v1:Pod" { | |
apiVersion = "v1" | |
kind = "Pod" | |
metadata = { | |
namespace = "foo" | |
name = "bar" | |
} | |
spec = { | |
containers = [ | |
{ |
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
package generated_program; | |
import java.util.*; | |
import java.io.*; | |
import java.nio.*; | |
import com.pulumi.*; | |
public class App { | |
public static void main(String[] args) { | |
int exitCode = Pulumi.run(App::stack); |
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
config storageAccountNameParam string { | |
} | |
config resourceGroupNameParam string { | |
} | |
resourceGroupVar = invoke("azure:core/getResourceGroup:getResourceGroup", { | |
name = resourceGroupNameParam | |
}) |
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
package generated_program; | |
import java.util.*; | |
import java.io.*; | |
import java.nio.*; | |
import com.pulumi.*; | |
public class App { | |
public static void main(String[] args) { | |
int exitCode = Pulumi.run(App::stack); |
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
resource frontDoor "azure-native:network:FrontDoor" { | |
routingRules = [{ | |
routeConfiguration = { | |
odataType = "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration" | |
backendPool = { | |
id = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1" | |
} | |
} | |
}] | |
} |
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
package generated_program; | |
import java.util.*; | |
import java.io.*; | |
import java.nio.*; | |
import com.pulumi.*; | |
public class App { | |
public static void main(String[] args) { | |
int exitCode = Pulumi.run(App::stack); |
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
// Read the default VPC and public subnets, which we will use. | |
vpc = invoke("aws:ec2:getVpc", { | |
default = true | |
}) | |
subnets = invoke("aws:ec2:getSubnetIds", { | |
vpcId = vpc.id | |
}) | |
// Create a security group that permits HTTP ingress and unrestricted egress. | |
resource webSecurityGroup "aws:ec2:SecurityGroup" { |
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
package generated_program; | |
import java.util.*; | |
import java.io.*; | |
import java.nio.*; | |
import com.pulumi.*; | |
public class App { | |
public static void main(String[] args) { | |
int exitCode = Pulumi.run(App::stack); |
NewerOlder