1. Packages
  2. DanubeData
  3. API Docs
  4. Serverless
DanubeData v0.1.7 published on Sunday, Feb 1, 2026 by AdrianSilaghi
danubedata logo
DanubeData v0.1.7 published on Sunday, Feb 1, 2026 by AdrianSilaghi

    # danubedata.Serverless

    Manages a serverless container with automatic scaling and scale-to-zero support.

    Example Usage

    Docker Image Deployment

    import * as pulumi from "@pulumi/pulumi";
    import * as danubedata from "@danubedata/pulumi";
    
    const nginx = new danubedata.Serverless("nginx", {
        deploymentType: "docker",
        imageUrl: "nginx:latest",
        port: 80,
        minInstances: 0,
        maxInstances: 10,
    });
    export const appUrl = nginx.url;
    
    import pulumi
    import pulumi_danubedata as danubedata
    
    nginx = danubedata.Serverless("nginx",
        deployment_type="docker",
        image_url="nginx:latest",
        port=80,
        min_instances=0,
        max_instances=10)
    pulumi.export("appUrl", nginx.url)
    
    package main
    
    import (
    	"github.com/AdrianSilaghi/pulumi-danubedata/sdk/go/danubedata"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		nginx, err := danubedata.NewServerless(ctx, "nginx", &danubedata.ServerlessArgs{
    			DeploymentType: pulumi.String("docker"),
    			ImageUrl:       pulumi.String("nginx:latest"),
    			Port:           pulumi.Int(80),
    			MinInstances:   pulumi.Int(0),
    			MaxInstances:   pulumi.Int(10),
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("appUrl", nginx.Url)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using DanubeData = DanubeData.DanubeData;
    
    return await Deployment.RunAsync(() => 
    {
        var nginx = new DanubeData.Serverless("nginx", new()
        {
            DeploymentType = "docker",
            ImageUrl = "nginx:latest",
            Port = 80,
            MinInstances = 0,
            MaxInstances = 10,
        });
    
        return new Dictionary<string, object?>
        {
            ["appUrl"] = nginx.Url,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.danubedata.Serverless;
    import com.pulumi.danubedata.ServerlessArgs;
    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 nginx = new Serverless("nginx", ServerlessArgs.builder()
                .deploymentType("docker")
                .imageUrl("nginx:latest")
                .port(80)
                .minInstances(0)
                .maxInstances(10)
                .build());
    
            ctx.export("appUrl", nginx.url());
        }
    }
    
    resources:
      nginx:
        type: danubedata:Serverless
        properties:
          deploymentType: docker
          imageUrl: nginx:latest
          port: 80
          minInstances: 0
          maxInstances: 10
    outputs:
      appUrl: ${nginx.url}
    

    Git Repository Deployment

    import * as pulumi from "@pulumi/pulumi";
    import * as danubedata from "@danubedata/pulumi";
    
    const app = new danubedata.Serverless("app", {
        deploymentType: "git",
        environmentVariables: {
            LOG_LEVEL: "info",
            NODE_ENV: "production",
        },
        gitBranch: "main",
        gitRepository: "https://github.com/user/my-app",
        maxInstances: 5,
        minInstances: 1,
        port: 8080,
    });
    
    import pulumi
    import pulumi_danubedata as danubedata
    
    app = danubedata.Serverless("app",
        deployment_type="git",
        environment_variables={
            "LOG_LEVEL": "info",
            "NODE_ENV": "production",
        },
        git_branch="main",
        git_repository="https://github.com/user/my-app",
        max_instances=5,
        min_instances=1,
        port=8080)
    
    package main
    
    import (
    	"github.com/AdrianSilaghi/pulumi-danubedata/sdk/go/danubedata"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := danubedata.NewServerless(ctx, "app", &danubedata.ServerlessArgs{
    			DeploymentType: pulumi.String("git"),
    			EnvironmentVariables: pulumi.StringMap{
    				"LOG_LEVEL": pulumi.String("info"),
    				"NODE_ENV":  pulumi.String("production"),
    			},
    			GitBranch:     pulumi.String("main"),
    			GitRepository: pulumi.String("https://github.com/user/my-app"),
    			MaxInstances:  pulumi.Int(5),
    			MinInstances:  pulumi.Int(1),
    			Port:          pulumi.Int(8080),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using DanubeData = DanubeData.DanubeData;
    
    return await Deployment.RunAsync(() => 
    {
        var app = new DanubeData.Serverless("app", new()
        {
            DeploymentType = "git",
            EnvironmentVariables = 
            {
                { "LOG_LEVEL", "info" },
                { "NODE_ENV", "production" },
            },
            GitBranch = "main",
            GitRepository = "https://github.com/user/my-app",
            MaxInstances = 5,
            MinInstances = 1,
            Port = 8080,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.danubedata.Serverless;
    import com.pulumi.danubedata.ServerlessArgs;
    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 app = new Serverless("app", ServerlessArgs.builder()
                .deploymentType("git")
                .environmentVariables(Map.ofEntries(
                    Map.entry("LOG_LEVEL", "info"),
                    Map.entry("NODE_ENV", "production")
                ))
                .gitBranch("main")
                .gitRepository("https://github.com/user/my-app")
                .maxInstances(5)
                .minInstances(1)
                .port(8080)
                .build());
    
        }
    }
    
    resources:
      app:
        type: danubedata:Serverless
        properties:
          deploymentType: git
          environmentVariables:
            LOG_LEVEL: info
            NODE_ENV: production
          gitBranch: main
          gitRepository: https://github.com/user/my-app
          maxInstances: 5
          minInstances: 1
          port: 8080
    

    With Resource Profile

    import * as pulumi from "@pulumi/pulumi";
    import * as danubedata from "@danubedata/pulumi";
    
    const api = new danubedata.Serverless("api", {
        deploymentType: "docker",
        environmentVariables: {
            DATABASE_URL: "postgres://...",
            REDIS_URL: "redis://...",
        },
        imageUrl: "myregistry/api:v1.0",
        maxInstances: 20,
        minInstances: 2,
        port: 3000,
        resourceProfile: "medium",
    });
    
    import pulumi
    import pulumi_danubedata as danubedata
    
    api = danubedata.Serverless("api",
        deployment_type="docker",
        environment_variables={
            "DATABASE_URL": "postgres://...",
            "REDIS_URL": "redis://...",
        },
        image_url="myregistry/api:v1.0",
        max_instances=20,
        min_instances=2,
        port=3000,
        resource_profile="medium")
    
    package main
    
    import (
    	"github.com/AdrianSilaghi/pulumi-danubedata/sdk/go/danubedata"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := danubedata.NewServerless(ctx, "api", &danubedata.ServerlessArgs{
    			DeploymentType: pulumi.String("docker"),
    			EnvironmentVariables: pulumi.StringMap{
    				"DATABASE_URL": pulumi.String("postgres://..."),
    				"REDIS_URL":    pulumi.String("redis://..."),
    			},
    			ImageUrl:        pulumi.String("myregistry/api:v1.0"),
    			MaxInstances:    pulumi.Int(20),
    			MinInstances:    pulumi.Int(2),
    			Port:            pulumi.Int(3000),
    			ResourceProfile: pulumi.String("medium"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using DanubeData = DanubeData.DanubeData;
    
    return await Deployment.RunAsync(() => 
    {
        var api = new DanubeData.Serverless("api", new()
        {
            DeploymentType = "docker",
            EnvironmentVariables = 
            {
                { "DATABASE_URL", "postgres://..." },
                { "REDIS_URL", "redis://..." },
            },
            ImageUrl = "myregistry/api:v1.0",
            MaxInstances = 20,
            MinInstances = 2,
            Port = 3000,
            ResourceProfile = "medium",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.danubedata.Serverless;
    import com.pulumi.danubedata.ServerlessArgs;
    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 api = new Serverless("api", ServerlessArgs.builder()
                .deploymentType("docker")
                .environmentVariables(Map.ofEntries(
                    Map.entry("DATABASE_URL", "postgres://..."),
                    Map.entry("REDIS_URL", "redis://...")
                ))
                .imageUrl("myregistry/api:v1.0")
                .maxInstances(20)
                .minInstances(2)
                .port(3000)
                .resourceProfile("medium")
                .build());
    
        }
    }
    
    resources:
      api:
        type: danubedata:Serverless
        properties:
          deploymentType: docker
          environmentVariables:
            DATABASE_URL: postgres://...
            REDIS_URL: redis://...
          imageUrl: myregistry/api:v1.0
          maxInstances: 20
          minInstances: 2
          port: 3000
          resourceProfile: medium
    

    Scale to Zero Configuration

    import * as pulumi from "@pulumi/pulumi";
    import * as danubedata from "@danubedata/pulumi";
    
    const webhook = new danubedata.Serverless("webhook", {
        deploymentType: "docker",
        imageUrl: "myregistry/webhook:latest",
        maxInstances: 100,
        minInstances: 0,
        port: 8080,
    });
    
    import pulumi
    import pulumi_danubedata as danubedata
    
    webhook = danubedata.Serverless("webhook",
        deployment_type="docker",
        image_url="myregistry/webhook:latest",
        max_instances=100,
        min_instances=0,
        port=8080)
    
    package main
    
    import (
    	"github.com/AdrianSilaghi/pulumi-danubedata/sdk/go/danubedata"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := danubedata.NewServerless(ctx, "webhook", &danubedata.ServerlessArgs{
    			DeploymentType: pulumi.String("docker"),
    			ImageUrl:       pulumi.String("myregistry/webhook:latest"),
    			MaxInstances:   pulumi.Int(100),
    			MinInstances:   pulumi.Int(0),
    			Port:           pulumi.Int(8080),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using DanubeData = DanubeData.DanubeData;
    
    return await Deployment.RunAsync(() => 
    {
        var webhook = new DanubeData.Serverless("webhook", new()
        {
            DeploymentType = "docker",
            ImageUrl = "myregistry/webhook:latest",
            MaxInstances = 100,
            MinInstances = 0,
            Port = 8080,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.danubedata.Serverless;
    import com.pulumi.danubedata.ServerlessArgs;
    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 webhook = new Serverless("webhook", ServerlessArgs.builder()
                .deploymentType("docker")
                .imageUrl("myregistry/webhook:latest")
                .maxInstances(100)
                .minInstances(0)
                .port(8080)
                .build());
    
        }
    }
    
    resources:
      webhook:
        type: danubedata:Serverless
        properties:
          deploymentType: docker
          imageUrl: myregistry/webhook:latest
          maxInstances: 100
          minInstances: 0
          port: 8080
    

    Scaling Behavior

    • min_instances = 0: Container scales to zero after idle period (cost-effective)
    • min_instances >= 1: Always keeps instances running (no cold starts)
    • Scales up automatically based on traffic
    • Scales down when traffic decreases

    Build Process (Git Deployment)

    When using git deployment type:

    1. Repository is cloned
    2. Buildpack detection or Dockerfile is used
    3. Container image is built
    4. Image is deployed to serverless platform
    5. Automatic rebuilds on git push (via webhook)

    Create Serverless Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Serverless(name: string, args: ServerlessArgs, opts?: CustomResourceOptions);
    @overload
    def Serverless(resource_name: str,
                   args: ServerlessArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def Serverless(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   deployment_type: Optional[str] = None,
                   environment_variables: Optional[Mapping[str, str]] = None,
                   git_branch: Optional[str] = None,
                   git_repository: Optional[str] = None,
                   image_url: Optional[str] = None,
                   max_instances: Optional[int] = None,
                   min_instances: Optional[int] = None,
                   name: Optional[str] = None,
                   port: Optional[int] = None,
                   resource_profile: Optional[str] = None,
                   timeouts: Optional[ServerlessTimeoutsArgs] = None)
    func NewServerless(ctx *Context, name string, args ServerlessArgs, opts ...ResourceOption) (*Serverless, error)
    public Serverless(string name, ServerlessArgs args, CustomResourceOptions? opts = null)
    public Serverless(String name, ServerlessArgs args)
    public Serverless(String name, ServerlessArgs args, CustomResourceOptions options)
    
    type: danubedata:Serverless
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ServerlessArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ServerlessArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ServerlessArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServerlessArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServerlessArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var serverlessResource = new DanubeData.Serverless("serverlessResource", new()
    {
        DeploymentType = "string",
        EnvironmentVariables = 
        {
            { "string", "string" },
        },
        GitBranch = "string",
        GitRepository = "string",
        ImageUrl = "string",
        MaxInstances = 0,
        MinInstances = 0,
        Name = "string",
        Port = 0,
        ResourceProfile = "string",
        Timeouts = new DanubeData.Inputs.ServerlessTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := danubedata.NewServerless(ctx, "serverlessResource", &danubedata.ServerlessArgs{
    	DeploymentType: pulumi.String("string"),
    	EnvironmentVariables: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	GitBranch:       pulumi.String("string"),
    	GitRepository:   pulumi.String("string"),
    	ImageUrl:        pulumi.String("string"),
    	MaxInstances:    pulumi.Int(0),
    	MinInstances:    pulumi.Int(0),
    	Name:            pulumi.String("string"),
    	Port:            pulumi.Int(0),
    	ResourceProfile: pulumi.String("string"),
    	Timeouts: &danubedata.ServerlessTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var serverlessResource = new Serverless("serverlessResource", ServerlessArgs.builder()
        .deploymentType("string")
        .environmentVariables(Map.of("string", "string"))
        .gitBranch("string")
        .gitRepository("string")
        .imageUrl("string")
        .maxInstances(0)
        .minInstances(0)
        .name("string")
        .port(0)
        .resourceProfile("string")
        .timeouts(ServerlessTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    serverless_resource = danubedata.Serverless("serverlessResource",
        deployment_type="string",
        environment_variables={
            "string": "string",
        },
        git_branch="string",
        git_repository="string",
        image_url="string",
        max_instances=0,
        min_instances=0,
        name="string",
        port=0,
        resource_profile="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const serverlessResource = new danubedata.Serverless("serverlessResource", {
        deploymentType: "string",
        environmentVariables: {
            string: "string",
        },
        gitBranch: "string",
        gitRepository: "string",
        imageUrl: "string",
        maxInstances: 0,
        minInstances: 0,
        name: "string",
        port: 0,
        resourceProfile: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: danubedata:Serverless
    properties:
        deploymentType: string
        environmentVariables:
            string: string
        gitBranch: string
        gitRepository: string
        imageUrl: string
        maxInstances: 0
        minInstances: 0
        name: string
        port: 0
        resourceProfile: string
        timeouts:
            create: string
            delete: string
            update: string
    

    Serverless Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Serverless resource accepts the following input properties:

    DeploymentType string
    Deployment type: 'image' for Docker image, 'git' for Git repository.
    EnvironmentVariables Dictionary<string, string>
    Environment variables for the container.
    GitBranch string
    Git branch to deploy.
    GitRepository string
    Git repository URL (required if deployment_type is 'git').
    ImageUrl string
    Docker image URL (required if deployment_type is 'image').
    MaxInstances int
    Maximum number of instances.
    MinInstances int
    Minimum number of instances (0 for scale-to-zero).
    Name string
    Name of the serverless container.
    Port int
    Port the container listens on.
    ResourceProfile string
    Resource profile for the container (small, medium, large).
    Timeouts DanubeData.DanubeData.Inputs.ServerlessTimeouts
    DeploymentType string
    Deployment type: 'image' for Docker image, 'git' for Git repository.
    EnvironmentVariables map[string]string
    Environment variables for the container.
    GitBranch string
    Git branch to deploy.
    GitRepository string
    Git repository URL (required if deployment_type is 'git').
    ImageUrl string
    Docker image URL (required if deployment_type is 'image').
    MaxInstances int
    Maximum number of instances.
    MinInstances int
    Minimum number of instances (0 for scale-to-zero).
    Name string
    Name of the serverless container.
    Port int
    Port the container listens on.
    ResourceProfile string
    Resource profile for the container (small, medium, large).
    Timeouts ServerlessTimeoutsArgs
    deploymentType String
    Deployment type: 'image' for Docker image, 'git' for Git repository.
    environmentVariables Map<String,String>
    Environment variables for the container.
    gitBranch String
    Git branch to deploy.
    gitRepository String
    Git repository URL (required if deployment_type is 'git').
    imageUrl String
    Docker image URL (required if deployment_type is 'image').
    maxInstances Integer
    Maximum number of instances.
    minInstances Integer
    Minimum number of instances (0 for scale-to-zero).
    name String
    Name of the serverless container.
    port Integer
    Port the container listens on.
    resourceProfile String
    Resource profile for the container (small, medium, large).
    timeouts ServerlessTimeouts
    deploymentType string
    Deployment type: 'image' for Docker image, 'git' for Git repository.
    environmentVariables {[key: string]: string}
    Environment variables for the container.
    gitBranch string
    Git branch to deploy.
    gitRepository string
    Git repository URL (required if deployment_type is 'git').
    imageUrl string
    Docker image URL (required if deployment_type is 'image').
    maxInstances number
    Maximum number of instances.
    minInstances number
    Minimum number of instances (0 for scale-to-zero).
    name string
    Name of the serverless container.
    port number
    Port the container listens on.
    resourceProfile string
    Resource profile for the container (small, medium, large).
    timeouts ServerlessTimeouts
    deployment_type str
    Deployment type: 'image' for Docker image, 'git' for Git repository.
    environment_variables Mapping[str, str]
    Environment variables for the container.
    git_branch str
    Git branch to deploy.
    git_repository str
    Git repository URL (required if deployment_type is 'git').
    image_url str
    Docker image URL (required if deployment_type is 'image').
    max_instances int
    Maximum number of instances.
    min_instances int
    Minimum number of instances (0 for scale-to-zero).
    name str
    Name of the serverless container.
    port int
    Port the container listens on.
    resource_profile str
    Resource profile for the container (small, medium, large).
    timeouts ServerlessTimeoutsArgs
    deploymentType String
    Deployment type: 'image' for Docker image, 'git' for Git repository.
    environmentVariables Map<String>
    Environment variables for the container.
    gitBranch String
    Git branch to deploy.
    gitRepository String
    Git repository URL (required if deployment_type is 'git').
    imageUrl String
    Docker image URL (required if deployment_type is 'image').
    maxInstances Number
    Maximum number of instances.
    minInstances Number
    Minimum number of instances (0 for scale-to-zero).
    name String
    Name of the serverless container.
    port Number
    Port the container listens on.
    resourceProfile String
    Resource profile for the container (small, medium, large).
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Serverless resource produces the following output properties:

    CreatedAt string
    Creation timestamp.
    CurrentMonthCostCents int
    Current month's cost in cents.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Current status.
    UpdatedAt string
    Timestamp when the container was last updated.
    Url string
    Public HTTPS URL for the container.
    CreatedAt string
    Creation timestamp.
    CurrentMonthCostCents int
    Current month's cost in cents.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Current status.
    UpdatedAt string
    Timestamp when the container was last updated.
    Url string
    Public HTTPS URL for the container.
    createdAt String
    Creation timestamp.
    currentMonthCostCents Integer
    Current month's cost in cents.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Current status.
    updatedAt String
    Timestamp when the container was last updated.
    url String
    Public HTTPS URL for the container.
    createdAt string
    Creation timestamp.
    currentMonthCostCents number
    Current month's cost in cents.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Current status.
    updatedAt string
    Timestamp when the container was last updated.
    url string
    Public HTTPS URL for the container.
    created_at str
    Creation timestamp.
    current_month_cost_cents int
    Current month's cost in cents.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Current status.
    updated_at str
    Timestamp when the container was last updated.
    url str
    Public HTTPS URL for the container.
    createdAt String
    Creation timestamp.
    currentMonthCostCents Number
    Current month's cost in cents.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Current status.
    updatedAt String
    Timestamp when the container was last updated.
    url String
    Public HTTPS URL for the container.

    Look up Existing Serverless Resource

    Get an existing Serverless resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ServerlessState, opts?: CustomResourceOptions): Serverless
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            current_month_cost_cents: Optional[int] = None,
            deployment_type: Optional[str] = None,
            environment_variables: Optional[Mapping[str, str]] = None,
            git_branch: Optional[str] = None,
            git_repository: Optional[str] = None,
            image_url: Optional[str] = None,
            max_instances: Optional[int] = None,
            min_instances: Optional[int] = None,
            name: Optional[str] = None,
            port: Optional[int] = None,
            resource_profile: Optional[str] = None,
            status: Optional[str] = None,
            timeouts: Optional[ServerlessTimeoutsArgs] = None,
            updated_at: Optional[str] = None,
            url: Optional[str] = None) -> Serverless
    func GetServerless(ctx *Context, name string, id IDInput, state *ServerlessState, opts ...ResourceOption) (*Serverless, error)
    public static Serverless Get(string name, Input<string> id, ServerlessState? state, CustomResourceOptions? opts = null)
    public static Serverless get(String name, Output<String> id, ServerlessState state, CustomResourceOptions options)
    resources:  _:    type: danubedata:Serverless    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CreatedAt string
    Creation timestamp.
    CurrentMonthCostCents int
    Current month's cost in cents.
    DeploymentType string
    Deployment type: 'image' for Docker image, 'git' for Git repository.
    EnvironmentVariables Dictionary<string, string>
    Environment variables for the container.
    GitBranch string
    Git branch to deploy.
    GitRepository string
    Git repository URL (required if deployment_type is 'git').
    ImageUrl string
    Docker image URL (required if deployment_type is 'image').
    MaxInstances int
    Maximum number of instances.
    MinInstances int
    Minimum number of instances (0 for scale-to-zero).
    Name string
    Name of the serverless container.
    Port int
    Port the container listens on.
    ResourceProfile string
    Resource profile for the container (small, medium, large).
    Status string
    Current status.
    Timeouts DanubeData.DanubeData.Inputs.ServerlessTimeouts
    UpdatedAt string
    Timestamp when the container was last updated.
    Url string
    Public HTTPS URL for the container.
    CreatedAt string
    Creation timestamp.
    CurrentMonthCostCents int
    Current month's cost in cents.
    DeploymentType string
    Deployment type: 'image' for Docker image, 'git' for Git repository.
    EnvironmentVariables map[string]string
    Environment variables for the container.
    GitBranch string
    Git branch to deploy.
    GitRepository string
    Git repository URL (required if deployment_type is 'git').
    ImageUrl string
    Docker image URL (required if deployment_type is 'image').
    MaxInstances int
    Maximum number of instances.
    MinInstances int
    Minimum number of instances (0 for scale-to-zero).
    Name string
    Name of the serverless container.
    Port int
    Port the container listens on.
    ResourceProfile string
    Resource profile for the container (small, medium, large).
    Status string
    Current status.
    Timeouts ServerlessTimeoutsArgs
    UpdatedAt string
    Timestamp when the container was last updated.
    Url string
    Public HTTPS URL for the container.
    createdAt String
    Creation timestamp.
    currentMonthCostCents Integer
    Current month's cost in cents.
    deploymentType String
    Deployment type: 'image' for Docker image, 'git' for Git repository.
    environmentVariables Map<String,String>
    Environment variables for the container.
    gitBranch String
    Git branch to deploy.
    gitRepository String
    Git repository URL (required if deployment_type is 'git').
    imageUrl String
    Docker image URL (required if deployment_type is 'image').
    maxInstances Integer
    Maximum number of instances.
    minInstances Integer
    Minimum number of instances (0 for scale-to-zero).
    name String
    Name of the serverless container.
    port Integer
    Port the container listens on.
    resourceProfile String
    Resource profile for the container (small, medium, large).
    status String
    Current status.
    timeouts ServerlessTimeouts
    updatedAt String
    Timestamp when the container was last updated.
    url String
    Public HTTPS URL for the container.
    createdAt string
    Creation timestamp.
    currentMonthCostCents number
    Current month's cost in cents.
    deploymentType string
    Deployment type: 'image' for Docker image, 'git' for Git repository.
    environmentVariables {[key: string]: string}
    Environment variables for the container.
    gitBranch string
    Git branch to deploy.
    gitRepository string
    Git repository URL (required if deployment_type is 'git').
    imageUrl string
    Docker image URL (required if deployment_type is 'image').
    maxInstances number
    Maximum number of instances.
    minInstances number
    Minimum number of instances (0 for scale-to-zero).
    name string
    Name of the serverless container.
    port number
    Port the container listens on.
    resourceProfile string
    Resource profile for the container (small, medium, large).
    status string
    Current status.
    timeouts ServerlessTimeouts
    updatedAt string
    Timestamp when the container was last updated.
    url string
    Public HTTPS URL for the container.
    created_at str
    Creation timestamp.
    current_month_cost_cents int
    Current month's cost in cents.
    deployment_type str
    Deployment type: 'image' for Docker image, 'git' for Git repository.
    environment_variables Mapping[str, str]
    Environment variables for the container.
    git_branch str
    Git branch to deploy.
    git_repository str
    Git repository URL (required if deployment_type is 'git').
    image_url str
    Docker image URL (required if deployment_type is 'image').
    max_instances int
    Maximum number of instances.
    min_instances int
    Minimum number of instances (0 for scale-to-zero).
    name str
    Name of the serverless container.
    port int
    Port the container listens on.
    resource_profile str
    Resource profile for the container (small, medium, large).
    status str
    Current status.
    timeouts ServerlessTimeoutsArgs
    updated_at str
    Timestamp when the container was last updated.
    url str
    Public HTTPS URL for the container.
    createdAt String
    Creation timestamp.
    currentMonthCostCents Number
    Current month's cost in cents.
    deploymentType String
    Deployment type: 'image' for Docker image, 'git' for Git repository.
    environmentVariables Map<String>
    Environment variables for the container.
    gitBranch String
    Git branch to deploy.
    gitRepository String
    Git repository URL (required if deployment_type is 'git').
    imageUrl String
    Docker image URL (required if deployment_type is 'image').
    maxInstances Number
    Maximum number of instances.
    minInstances Number
    Minimum number of instances (0 for scale-to-zero).
    name String
    Name of the serverless container.
    port Number
    Port the container listens on.
    resourceProfile String
    Resource profile for the container (small, medium, large).
    status String
    Current status.
    timeouts Property Map
    updatedAt String
    Timestamp when the container was last updated.
    url String
    Public HTTPS URL for the container.

    Supporting Types

    ServerlessTimeouts, ServerlessTimeoutsArgs

    Create string
    Time to wait for container creation.
    Delete string
    Time to wait for container deletion.
    Update string
    Time to wait for container updates.
    Create string
    Time to wait for container creation.
    Delete string
    Time to wait for container deletion.
    Update string
    Time to wait for container updates.
    create String
    Time to wait for container creation.
    delete String
    Time to wait for container deletion.
    update String
    Time to wait for container updates.
    create string
    Time to wait for container creation.
    delete string
    Time to wait for container deletion.
    update string
    Time to wait for container updates.
    create str
    Time to wait for container creation.
    delete str
    Time to wait for container deletion.
    update str
    Time to wait for container updates.
    create String
    Time to wait for container creation.
    delete String
    Time to wait for container deletion.
    update String
    Time to wait for container updates.

    Import

    Serverless containers can be imported using their ID:

    bash

    $ pulumi import danubedata:index/serverless:Serverless example srv-abc123
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    danubedata AdrianSilaghi/pulumi-danubedata
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the danubedata Terraform Provider.
    danubedata logo
    DanubeData v0.1.7 published on Sunday, Feb 1, 2026 by AdrianSilaghi
      Meet Neo: Your AI Platform Teammate