# 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:
- Repository is cloned
- Buildpack detection or Dockerfile is used
- Container image is built
- Image is deployed to serverless platform
- 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:
- Deployment
Type string - Deployment type: 'image' for Docker image, 'git' for Git repository.
- Environment
Variables Dictionary<string, string> - Environment variables for the container.
- Git
Branch string - Git branch to deploy.
- Git
Repository string - Git repository URL (required if deployment_type is 'git').
- Image
Url string - 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 string
- Name of the serverless container.
- Port int
- Port the container listens on.
- Resource
Profile string - Resource profile for the container (small, medium, large).
- Timeouts
Danube
Data. Danube Data. Inputs. Serverless Timeouts
- Deployment
Type string - Deployment type: 'image' for Docker image, 'git' for Git repository.
- Environment
Variables map[string]string - Environment variables for the container.
- Git
Branch string - Git branch to deploy.
- Git
Repository string - Git repository URL (required if deployment_type is 'git').
- Image
Url string - 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 string
- Name of the serverless container.
- Port int
- Port the container listens on.
- Resource
Profile string - Resource profile for the container (small, medium, large).
- Timeouts
Serverless
Timeouts Args
- deployment
Type String - Deployment type: 'image' for Docker image, 'git' for Git repository.
- environment
Variables Map<String,String> - Environment variables for the container.
- git
Branch String - Git branch to deploy.
- git
Repository String - Git repository URL (required if deployment_type is 'git').
- image
Url String - Docker image URL (required if deployment_type is 'image').
- max
Instances Integer - Maximum number of instances.
- min
Instances Integer - Minimum number of instances (0 for scale-to-zero).
- name String
- Name of the serverless container.
- port Integer
- Port the container listens on.
- resource
Profile String - Resource profile for the container (small, medium, large).
- timeouts
Serverless
Timeouts
- deployment
Type string - Deployment type: 'image' for Docker image, 'git' for Git repository.
- environment
Variables {[key: string]: string} - Environment variables for the container.
- git
Branch string - Git branch to deploy.
- git
Repository string - Git repository URL (required if deployment_type is 'git').
- image
Url string - Docker image URL (required if deployment_type is 'image').
- max
Instances number - Maximum number of instances.
- min
Instances number - Minimum number of instances (0 for scale-to-zero).
- name string
- Name of the serverless container.
- port number
- Port the container listens on.
- resource
Profile string - Resource profile for the container (small, medium, large).
- timeouts
Serverless
Timeouts
- 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
Serverless
Timeouts Args
- deployment
Type String - Deployment type: 'image' for Docker image, 'git' for Git repository.
- environment
Variables Map<String> - Environment variables for the container.
- git
Branch String - Git branch to deploy.
- git
Repository String - Git repository URL (required if deployment_type is 'git').
- image
Url String - Docker image URL (required if deployment_type is 'image').
- max
Instances Number - Maximum number of instances.
- min
Instances Number - Minimum number of instances (0 for scale-to-zero).
- name String
- Name of the serverless container.
- port Number
- Port the container listens on.
- resource
Profile 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:
- created_
at str - Creation timestamp.
- current_
month_ intcost_ cents - 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.
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) -> Serverlessfunc 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.
- Created
At string - Creation timestamp.
- Current
Month intCost Cents - Current month's cost in cents.
- Deployment
Type string - Deployment type: 'image' for Docker image, 'git' for Git repository.
- Environment
Variables Dictionary<string, string> - Environment variables for the container.
- Git
Branch string - Git branch to deploy.
- Git
Repository string - Git repository URL (required if deployment_type is 'git').
- Image
Url string - 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 string
- Name of the serverless container.
- Port int
- Port the container listens on.
- Resource
Profile string - Resource profile for the container (small, medium, large).
- Status string
- Current status.
- Timeouts
Danube
Data. Danube Data. Inputs. Serverless Timeouts - Updated
At string - Timestamp when the container was last updated.
- Url string
- Public HTTPS URL for the container.
- Created
At string - Creation timestamp.
- Current
Month intCost Cents - Current month's cost in cents.
- Deployment
Type string - Deployment type: 'image' for Docker image, 'git' for Git repository.
- Environment
Variables map[string]string - Environment variables for the container.
- Git
Branch string - Git branch to deploy.
- Git
Repository string - Git repository URL (required if deployment_type is 'git').
- Image
Url string - 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 string
- Name of the serverless container.
- Port int
- Port the container listens on.
- Resource
Profile string - Resource profile for the container (small, medium, large).
- Status string
- Current status.
- Timeouts
Serverless
Timeouts Args - Updated
At string - Timestamp when the container was last updated.
- Url string
- Public HTTPS URL for the container.
- created
At String - Creation timestamp.
- current
Month IntegerCost Cents - Current month's cost in cents.
- deployment
Type String - Deployment type: 'image' for Docker image, 'git' for Git repository.
- environment
Variables Map<String,String> - Environment variables for the container.
- git
Branch String - Git branch to deploy.
- git
Repository String - Git repository URL (required if deployment_type is 'git').
- image
Url String - Docker image URL (required if deployment_type is 'image').
- max
Instances Integer - Maximum number of instances.
- min
Instances Integer - Minimum number of instances (0 for scale-to-zero).
- name String
- Name of the serverless container.
- port Integer
- Port the container listens on.
- resource
Profile String - Resource profile for the container (small, medium, large).
- status String
- Current status.
- timeouts
Serverless
Timeouts - updated
At String - Timestamp when the container was last updated.
- url String
- Public HTTPS URL for the container.
- created
At string - Creation timestamp.
- current
Month numberCost Cents - Current month's cost in cents.
- deployment
Type string - Deployment type: 'image' for Docker image, 'git' for Git repository.
- environment
Variables {[key: string]: string} - Environment variables for the container.
- git
Branch string - Git branch to deploy.
- git
Repository string - Git repository URL (required if deployment_type is 'git').
- image
Url string - Docker image URL (required if deployment_type is 'image').
- max
Instances number - Maximum number of instances.
- min
Instances number - Minimum number of instances (0 for scale-to-zero).
- name string
- Name of the serverless container.
- port number
- Port the container listens on.
- resource
Profile string - Resource profile for the container (small, medium, large).
- status string
- Current status.
- timeouts
Serverless
Timeouts - updated
At string - Timestamp when the container was last updated.
- url string
- Public HTTPS URL for the container.
- created_
at str - Creation timestamp.
- current_
month_ intcost_ cents - 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
Serverless
Timeouts Args - updated_
at str - Timestamp when the container was last updated.
- url str
- Public HTTPS URL for the container.
- created
At String - Creation timestamp.
- current
Month NumberCost Cents - Current month's cost in cents.
- deployment
Type String - Deployment type: 'image' for Docker image, 'git' for Git repository.
- environment
Variables Map<String> - Environment variables for the container.
- git
Branch String - Git branch to deploy.
- git
Repository String - Git repository URL (required if deployment_type is 'git').
- image
Url String - Docker image URL (required if deployment_type is 'image').
- max
Instances Number - Maximum number of instances.
- min
Instances Number - Minimum number of instances (0 for scale-to-zero).
- name String
- Name of the serverless container.
- port Number
- Port the container listens on.
- resource
Profile String - Resource profile for the container (small, medium, large).
- status String
- Current status.
- timeouts Property Map
- updated
At String - Timestamp when the container was last updated.
- url String
- Public HTTPS URL for the container.
Supporting Types
ServerlessTimeouts, ServerlessTimeoutsArgs
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
danubedataTerraform Provider.
