SpringCloudContainerDeployment

class SpringCloudContainerDeployment : KotlinCustomResource

Manages a Spring Cloud Container Deployment.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.appplatform.SpringCloudService;
import com.pulumi.azure.appplatform.SpringCloudServiceArgs;
import com.pulumi.azure.appplatform.SpringCloudApp;
import com.pulumi.azure.appplatform.SpringCloudAppArgs;
import com.pulumi.azure.appplatform.SpringCloudContainerDeployment;
import com.pulumi.azure.appplatform.SpringCloudContainerDeploymentArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleSpringCloudService = new SpringCloudService("exampleSpringCloudService", SpringCloudServiceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.skuName("E0")
.build());
var exampleSpringCloudApp = new SpringCloudApp("exampleSpringCloudApp", SpringCloudAppArgs.builder()
.resourceGroupName(exampleSpringCloudService.resourceGroupName())
.serviceName(exampleSpringCloudService.name())
.build());
var exampleSpringCloudContainerDeployment = new SpringCloudContainerDeployment("exampleSpringCloudContainerDeployment", SpringCloudContainerDeploymentArgs.builder()
.springCloudAppId(exampleSpringCloudApp.id())
.instanceCount(2)
.arguments(
"-cp",
"/app/resources:/app/classes:/app/libs/*",
"hello.Application")
.commands("java")
.environmentVariables(Map.ofEntries(
Map.entry("Foo", "Bar"),
Map.entry("Env", "Staging")
))
.server("docker.io")
.image("springio/gs-spring-boot-docker")
.languageFramework("springboot")
.build());
}
}

Import

Spring Cloud Container Deployments can be imported using the resource id, e.g.

$ pulumi import azure:appplatform/springCloudContainerDeployment:SpringCloudContainerDeployment example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.AppPlatform/spring/spring1/apps/app1/deployments/deploy1

*/

Properties

Link copied to clipboard
val addonJson: Output<String>

A JSON object that contains the addon configurations of the Spring Cloud Container Deployment.

Link copied to clipboard
val arguments: Output<List<String>>?

Specifies the arguments to the entrypoint. The docker image's CMD is used if not specified.

Link copied to clipboard
val commands: Output<List<String>>?

Specifies the entrypoint array. It will not be executed within a shell. The docker image's ENTRYPOINT is used if not specified.

Link copied to clipboard

Specifies the environment variables of the Spring Cloud Deployment as a map of key-value pairs.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val image: Output<String>

Container image of the custom container. This should be in the form of <repository>:<tag> without the server name of the registry.

Link copied to clipboard
val instanceCount: Output<Int>?

Specifies the required instance count of the Spring Cloud Deployment. Possible Values are between 1 and 500. Defaults to 1 if not specified.

Link copied to clipboard

Specifies the language framework of the container image. The only possible value is springboot.

Link copied to clipboard
val name: Output<String>

The name which should be used for this Spring Cloud Container Deployment. Changing this forces a new Spring Cloud Container Deployment to be created.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A quota block as defined below.

Link copied to clipboard
val server: Output<String>

The name of the registry that contains the container image.

Link copied to clipboard

The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Container Deployment to be created.

Link copied to clipboard
val urn: Output<String>