koyeb.Service
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as koyeb from "@pulumi/koyeb";
const my_service = new koyeb.Service("my-service", {
appName: myApp.name,
definition: {
name: "my-service",
instanceTypes: [{
type: "micro",
}],
ports: [{
port: 3000,
protocol: "http",
}],
scalings: [{
min: 1,
max: 1,
}],
envs: [
{
key: "FOO",
value: "BAR",
},
{
key: "PORT",
value: "3000",
},
],
routes: [{
path: "/",
port: 3000,
}],
regions: ["fra"],
docker: {
image: "koyeb/demo",
},
},
}, {
dependsOn: [my_app],
});
import pulumi
import pulumi_koyeb as koyeb
my_service = koyeb.Service("my-service",
app_name=my_app["name"],
definition={
"name": "my-service",
"instance_types": [{
"type": "micro",
}],
"ports": [{
"port": 3000,
"protocol": "http",
}],
"scalings": [{
"min": 1,
"max": 1,
}],
"envs": [
{
"key": "FOO",
"value": "BAR",
},
{
"key": "PORT",
"value": "3000",
},
],
"routes": [{
"path": "/",
"port": 3000,
}],
"regions": ["fra"],
"docker": {
"image": "koyeb/demo",
},
},
opts = pulumi.ResourceOptions(depends_on=[my_app]))
package main
import (
"github.com/koyeb/pulumi-koyeb/sdk/go/koyeb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := koyeb.NewService(ctx, "my-service", &koyeb.ServiceArgs{
AppName: pulumi.Any(myApp.Name),
Definition: &koyeb.ServiceDefinitionArgs{
Name: pulumi.String("my-service"),
InstanceTypes: koyeb.ServiceDefinitionInstanceTypeArray{
&koyeb.ServiceDefinitionInstanceTypeArgs{
Type: pulumi.String("micro"),
},
},
Ports: koyeb.ServiceDefinitionPortArray{
&koyeb.ServiceDefinitionPortArgs{
Port: pulumi.Int(3000),
Protocol: pulumi.String("http"),
},
},
Scalings: koyeb.ServiceDefinitionScalingArray{
&koyeb.ServiceDefinitionScalingArgs{
Min: pulumi.Int(1),
Max: pulumi.Int(1),
},
},
Envs: koyeb.ServiceDefinitionEnvArray{
&koyeb.ServiceDefinitionEnvArgs{
Key: pulumi.String("FOO"),
Value: pulumi.String("BAR"),
},
&koyeb.ServiceDefinitionEnvArgs{
Key: pulumi.String("PORT"),
Value: pulumi.String("3000"),
},
},
Routes: koyeb.ServiceDefinitionRouteArray{
&koyeb.ServiceDefinitionRouteArgs{
Path: pulumi.String("/"),
Port: pulumi.Int(3000),
},
},
Regions: pulumi.StringArray{
pulumi.String("fra"),
},
Docker: &koyeb.ServiceDefinitionDockerArgs{
Image: pulumi.String("koyeb/demo"),
},
},
}, pulumi.DependsOn([]pulumi.Resource{
my_app,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Koyeb = Pulumi.Koyeb;
return await Deployment.RunAsync(() =>
{
var my_service = new Koyeb.Service("my-service", new()
{
AppName = myApp.Name,
Definition = new Koyeb.Inputs.ServiceDefinitionArgs
{
Name = "my-service",
InstanceTypes = new[]
{
new Koyeb.Inputs.ServiceDefinitionInstanceTypeArgs
{
Type = "micro",
},
},
Ports = new[]
{
new Koyeb.Inputs.ServiceDefinitionPortArgs
{
Port = 3000,
Protocol = "http",
},
},
Scalings = new[]
{
new Koyeb.Inputs.ServiceDefinitionScalingArgs
{
Min = 1,
Max = 1,
},
},
Envs = new[]
{
new Koyeb.Inputs.ServiceDefinitionEnvArgs
{
Key = "FOO",
Value = "BAR",
},
new Koyeb.Inputs.ServiceDefinitionEnvArgs
{
Key = "PORT",
Value = "3000",
},
},
Routes = new[]
{
new Koyeb.Inputs.ServiceDefinitionRouteArgs
{
Path = "/",
Port = 3000,
},
},
Regions = new[]
{
"fra",
},
Docker = new Koyeb.Inputs.ServiceDefinitionDockerArgs
{
Image = "koyeb/demo",
},
},
}, new CustomResourceOptions
{
DependsOn =
{
my_app,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.koyeb.Service;
import com.pulumi.koyeb.ServiceArgs;
import com.pulumi.koyeb.inputs.ServiceDefinitionArgs;
import com.pulumi.koyeb.inputs.ServiceDefinitionDockerArgs;
import com.pulumi.resources.CustomResourceOptions;
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 my_service = new Service("my-service", ServiceArgs.builder()
.appName(myApp.name())
.definition(ServiceDefinitionArgs.builder()
.name("my-service")
.instanceTypes(ServiceDefinitionInstanceTypeArgs.builder()
.type("micro")
.build())
.ports(ServiceDefinitionPortArgs.builder()
.port(3000)
.protocol("http")
.build())
.scalings(ServiceDefinitionScalingArgs.builder()
.min(1)
.max(1)
.build())
.envs(
ServiceDefinitionEnvArgs.builder()
.key("FOO")
.value("BAR")
.build(),
ServiceDefinitionEnvArgs.builder()
.key("PORT")
.value("3000")
.build())
.routes(ServiceDefinitionRouteArgs.builder()
.path("/")
.port(3000)
.build())
.regions("fra")
.docker(ServiceDefinitionDockerArgs.builder()
.image("koyeb/demo")
.build())
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(my_app)
.build());
}
}
resources:
my-service:
type: koyeb:Service
properties:
appName: ${myApp.name}
definition:
name: my-service
instanceTypes:
- type: micro
ports:
- port: 3000
protocol: http
scalings:
- min: 1
max: 1
envs:
- key: FOO
value: BAR
- key: PORT
value: '3000'
routes:
- path: /
port: 3000
regions:
- fra
docker:
image: koyeb/demo
options:
dependson:
- ${["my-app"]}
Create Service Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Service(name: string, args: ServiceArgs, opts?: CustomResourceOptions);
@overload
def Service(resource_name: str,
args: ServiceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Service(resource_name: str,
opts: Optional[ResourceOptions] = None,
app_name: Optional[str] = None,
definition: Optional[ServiceDefinitionArgs] = None,
messages: Optional[str] = None)
func NewService(ctx *Context, name string, args ServiceArgs, opts ...ResourceOption) (*Service, error)
public Service(string name, ServiceArgs args, CustomResourceOptions? opts = null)
public Service(String name, ServiceArgs args)
public Service(String name, ServiceArgs args, CustomResourceOptions options)
type: koyeb:Service
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 ServiceArgs
- 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 ServiceArgs
- 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 ServiceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServiceArgs
- 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 serviceResource = new Koyeb.Service("serviceResource", new()
{
AppName = "string",
Definition = new Koyeb.Inputs.ServiceDefinitionArgs
{
InstanceTypes = new[]
{
new Koyeb.Inputs.ServiceDefinitionInstanceTypeArgs
{
Type = "string",
Scopes = new[]
{
"string",
},
},
},
Name = "string",
Ports = new[]
{
new Koyeb.Inputs.ServiceDefinitionPortArgs
{
Port = 0,
Protocol = "string",
},
},
Regions = new[]
{
"string",
},
Scalings = new[]
{
new Koyeb.Inputs.ServiceDefinitionScalingArgs
{
Max = 0,
Min = 0,
Scopes = new[]
{
"string",
},
Targets = new[]
{
new Koyeb.Inputs.ServiceDefinitionScalingTargetArgs
{
AverageCpus = new[]
{
new Koyeb.Inputs.ServiceDefinitionScalingTargetAverageCpusArgs
{
Value = 0,
},
},
AverageMems = new[]
{
new Koyeb.Inputs.ServiceDefinitionScalingTargetAverageMemArgs
{
Value = 0,
},
},
RequestsPerSeconds = new[]
{
new Koyeb.Inputs.ServiceDefinitionScalingTargetRequestsPerSecondArgs
{
Value = 0,
},
},
},
},
},
},
Docker = new Koyeb.Inputs.ServiceDefinitionDockerArgs
{
Image = "string",
Args = new[]
{
"string",
},
Command = "string",
Entrypoints = new[]
{
"string",
},
ImageRegistrySecret = "string",
Privileged = false,
},
Envs = new[]
{
new Koyeb.Inputs.ServiceDefinitionEnvArgs
{
Key = "string",
Scopes = new[]
{
"string",
},
Secret = "string",
Value = "string",
},
},
Git = new Koyeb.Inputs.ServiceDefinitionGitArgs
{
Branch = "string",
Repository = "string",
Buildpack = new Koyeb.Inputs.ServiceDefinitionGitBuildpackArgs
{
BuildCommand = "string",
Privileged = false,
RunCommand = "string",
},
Dockerfile = new Koyeb.Inputs.ServiceDefinitionGitDockerfileArgs
{
Args = new[]
{
"string",
},
Command = "string",
Dockerfile = "string",
Entrypoints = new[]
{
"string",
},
Privileged = false,
Target = "string",
},
NoDeployOnPush = false,
Workdir = "string",
},
HealthChecks = new[]
{
new Koyeb.Inputs.ServiceDefinitionHealthCheckArgs
{
GracePeriod = 0,
Http = new Koyeb.Inputs.ServiceDefinitionHealthCheckHttpArgs
{
Path = "string",
Port = 0,
Headers = new[]
{
new Koyeb.Inputs.ServiceDefinitionHealthCheckHttpHeaderArgs
{
Key = "string",
Value = "string",
},
},
Method = "string",
},
Interval = 0,
RestartLimit = 0,
Tcp = new Koyeb.Inputs.ServiceDefinitionHealthCheckTcpArgs
{
Port = 0,
},
Timeout = 0,
},
},
Routes = new[]
{
new Koyeb.Inputs.ServiceDefinitionRouteArgs
{
Path = "string",
Port = 0,
},
},
SkipCache = false,
Type = "string",
},
Messages = "string",
});
example, err := koyeb.NewService(ctx, "serviceResource", &koyeb.ServiceArgs{
AppName: pulumi.String("string"),
Definition: &koyeb.ServiceDefinitionArgs{
InstanceTypes: koyeb.ServiceDefinitionInstanceTypeArray{
&koyeb.ServiceDefinitionInstanceTypeArgs{
Type: pulumi.String("string"),
Scopes: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Name: pulumi.String("string"),
Ports: koyeb.ServiceDefinitionPortArray{
&koyeb.ServiceDefinitionPortArgs{
Port: pulumi.Int(0),
Protocol: pulumi.String("string"),
},
},
Regions: pulumi.StringArray{
pulumi.String("string"),
},
Scalings: koyeb.ServiceDefinitionScalingArray{
&koyeb.ServiceDefinitionScalingArgs{
Max: pulumi.Int(0),
Min: pulumi.Int(0),
Scopes: pulumi.StringArray{
pulumi.String("string"),
},
Targets: koyeb.ServiceDefinitionScalingTargetArray{
&koyeb.ServiceDefinitionScalingTargetArgs{
AverageCpus: koyeb.ServiceDefinitionScalingTargetAverageCpusArray{
&koyeb.ServiceDefinitionScalingTargetAverageCpusArgs{
Value: pulumi.Int(0),
},
},
AverageMems: koyeb.ServiceDefinitionScalingTargetAverageMemArray{
&koyeb.ServiceDefinitionScalingTargetAverageMemArgs{
Value: pulumi.Int(0),
},
},
RequestsPerSeconds: koyeb.ServiceDefinitionScalingTargetRequestsPerSecondArray{
&koyeb.ServiceDefinitionScalingTargetRequestsPerSecondArgs{
Value: pulumi.Int(0),
},
},
},
},
},
},
Docker: &koyeb.ServiceDefinitionDockerArgs{
Image: pulumi.String("string"),
Args: pulumi.StringArray{
pulumi.String("string"),
},
Command: pulumi.String("string"),
Entrypoints: pulumi.StringArray{
pulumi.String("string"),
},
ImageRegistrySecret: pulumi.String("string"),
Privileged: pulumi.Bool(false),
},
Envs: koyeb.ServiceDefinitionEnvArray{
&koyeb.ServiceDefinitionEnvArgs{
Key: pulumi.String("string"),
Scopes: pulumi.StringArray{
pulumi.String("string"),
},
Secret: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Git: &koyeb.ServiceDefinitionGitArgs{
Branch: pulumi.String("string"),
Repository: pulumi.String("string"),
Buildpack: &koyeb.ServiceDefinitionGitBuildpackArgs{
BuildCommand: pulumi.String("string"),
Privileged: pulumi.Bool(false),
RunCommand: pulumi.String("string"),
},
Dockerfile: &koyeb.ServiceDefinitionGitDockerfileArgs{
Args: pulumi.StringArray{
pulumi.String("string"),
},
Command: pulumi.String("string"),
Dockerfile: pulumi.String("string"),
Entrypoints: pulumi.StringArray{
pulumi.String("string"),
},
Privileged: pulumi.Bool(false),
Target: pulumi.String("string"),
},
NoDeployOnPush: pulumi.Bool(false),
Workdir: pulumi.String("string"),
},
HealthChecks: koyeb.ServiceDefinitionHealthCheckArray{
&koyeb.ServiceDefinitionHealthCheckArgs{
GracePeriod: pulumi.Int(0),
Http: &koyeb.ServiceDefinitionHealthCheckHttpArgs{
Path: pulumi.String("string"),
Port: pulumi.Int(0),
Headers: koyeb.ServiceDefinitionHealthCheckHttpHeaderArray{
&koyeb.ServiceDefinitionHealthCheckHttpHeaderArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Method: pulumi.String("string"),
},
Interval: pulumi.Int(0),
RestartLimit: pulumi.Int(0),
Tcp: &koyeb.ServiceDefinitionHealthCheckTcpArgs{
Port: pulumi.Int(0),
},
Timeout: pulumi.Int(0),
},
},
Routes: koyeb.ServiceDefinitionRouteArray{
&koyeb.ServiceDefinitionRouteArgs{
Path: pulumi.String("string"),
Port: pulumi.Int(0),
},
},
SkipCache: pulumi.Bool(false),
Type: pulumi.String("string"),
},
Messages: pulumi.String("string"),
})
var serviceResource = new Service("serviceResource", ServiceArgs.builder()
.appName("string")
.definition(ServiceDefinitionArgs.builder()
.instanceTypes(ServiceDefinitionInstanceTypeArgs.builder()
.type("string")
.scopes("string")
.build())
.name("string")
.ports(ServiceDefinitionPortArgs.builder()
.port(0)
.protocol("string")
.build())
.regions("string")
.scalings(ServiceDefinitionScalingArgs.builder()
.max(0)
.min(0)
.scopes("string")
.targets(ServiceDefinitionScalingTargetArgs.builder()
.averageCpus(ServiceDefinitionScalingTargetAverageCpusArgs.builder()
.value(0)
.build())
.averageMems(ServiceDefinitionScalingTargetAverageMemArgs.builder()
.value(0)
.build())
.requestsPerSeconds(ServiceDefinitionScalingTargetRequestsPerSecondArgs.builder()
.value(0)
.build())
.build())
.build())
.docker(ServiceDefinitionDockerArgs.builder()
.image("string")
.args("string")
.command("string")
.entrypoints("string")
.imageRegistrySecret("string")
.privileged(false)
.build())
.envs(ServiceDefinitionEnvArgs.builder()
.key("string")
.scopes("string")
.secret("string")
.value("string")
.build())
.git(ServiceDefinitionGitArgs.builder()
.branch("string")
.repository("string")
.buildpack(ServiceDefinitionGitBuildpackArgs.builder()
.buildCommand("string")
.privileged(false)
.runCommand("string")
.build())
.dockerfile(ServiceDefinitionGitDockerfileArgs.builder()
.args("string")
.command("string")
.dockerfile("string")
.entrypoints("string")
.privileged(false)
.target("string")
.build())
.noDeployOnPush(false)
.workdir("string")
.build())
.healthChecks(ServiceDefinitionHealthCheckArgs.builder()
.gracePeriod(0)
.http(ServiceDefinitionHealthCheckHttpArgs.builder()
.path("string")
.port(0)
.headers(ServiceDefinitionHealthCheckHttpHeaderArgs.builder()
.key("string")
.value("string")
.build())
.method("string")
.build())
.interval(0)
.restartLimit(0)
.tcp(ServiceDefinitionHealthCheckTcpArgs.builder()
.port(0)
.build())
.timeout(0)
.build())
.routes(ServiceDefinitionRouteArgs.builder()
.path("string")
.port(0)
.build())
.skipCache(false)
.type("string")
.build())
.messages("string")
.build());
service_resource = koyeb.Service("serviceResource",
app_name="string",
definition={
"instance_types": [{
"type": "string",
"scopes": ["string"],
}],
"name": "string",
"ports": [{
"port": 0,
"protocol": "string",
}],
"regions": ["string"],
"scalings": [{
"max": 0,
"min": 0,
"scopes": ["string"],
"targets": [{
"average_cpus": [{
"value": 0,
}],
"average_mems": [{
"value": 0,
}],
"requests_per_seconds": [{
"value": 0,
}],
}],
}],
"docker": {
"image": "string",
"args": ["string"],
"command": "string",
"entrypoints": ["string"],
"image_registry_secret": "string",
"privileged": False,
},
"envs": [{
"key": "string",
"scopes": ["string"],
"secret": "string",
"value": "string",
}],
"git": {
"branch": "string",
"repository": "string",
"buildpack": {
"build_command": "string",
"privileged": False,
"run_command": "string",
},
"dockerfile": {
"args": ["string"],
"command": "string",
"dockerfile": "string",
"entrypoints": ["string"],
"privileged": False,
"target": "string",
},
"no_deploy_on_push": False,
"workdir": "string",
},
"health_checks": [{
"grace_period": 0,
"http": {
"path": "string",
"port": 0,
"headers": [{
"key": "string",
"value": "string",
}],
"method": "string",
},
"interval": 0,
"restart_limit": 0,
"tcp": {
"port": 0,
},
"timeout": 0,
}],
"routes": [{
"path": "string",
"port": 0,
}],
"skip_cache": False,
"type": "string",
},
messages="string")
const serviceResource = new koyeb.Service("serviceResource", {
appName: "string",
definition: {
instanceTypes: [{
type: "string",
scopes: ["string"],
}],
name: "string",
ports: [{
port: 0,
protocol: "string",
}],
regions: ["string"],
scalings: [{
max: 0,
min: 0,
scopes: ["string"],
targets: [{
averageCpus: [{
value: 0,
}],
averageMems: [{
value: 0,
}],
requestsPerSeconds: [{
value: 0,
}],
}],
}],
docker: {
image: "string",
args: ["string"],
command: "string",
entrypoints: ["string"],
imageRegistrySecret: "string",
privileged: false,
},
envs: [{
key: "string",
scopes: ["string"],
secret: "string",
value: "string",
}],
git: {
branch: "string",
repository: "string",
buildpack: {
buildCommand: "string",
privileged: false,
runCommand: "string",
},
dockerfile: {
args: ["string"],
command: "string",
dockerfile: "string",
entrypoints: ["string"],
privileged: false,
target: "string",
},
noDeployOnPush: false,
workdir: "string",
},
healthChecks: [{
gracePeriod: 0,
http: {
path: "string",
port: 0,
headers: [{
key: "string",
value: "string",
}],
method: "string",
},
interval: 0,
restartLimit: 0,
tcp: {
port: 0,
},
timeout: 0,
}],
routes: [{
path: "string",
port: 0,
}],
skipCache: false,
type: "string",
},
messages: "string",
});
type: koyeb:Service
properties:
appName: string
definition:
docker:
args:
- string
command: string
entrypoints:
- string
image: string
imageRegistrySecret: string
privileged: false
envs:
- key: string
scopes:
- string
secret: string
value: string
git:
branch: string
buildpack:
buildCommand: string
privileged: false
runCommand: string
dockerfile:
args:
- string
command: string
dockerfile: string
entrypoints:
- string
privileged: false
target: string
noDeployOnPush: false
repository: string
workdir: string
healthChecks:
- gracePeriod: 0
http:
headers:
- key: string
value: string
method: string
path: string
port: 0
interval: 0
restartLimit: 0
tcp:
port: 0
timeout: 0
instanceTypes:
- scopes:
- string
type: string
name: string
ports:
- port: 0
protocol: string
regions:
- string
routes:
- path: string
port: 0
scalings:
- max: 0
min: 0
scopes:
- string
targets:
- averageCpus:
- value: 0
averageMems:
- value: 0
requestsPerSeconds:
- value: 0
skipCache: false
type: string
messages: string
Service 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 Service resource accepts the following input properties:
- App
Name string - The app name the service is assigned to
- Definition
Service
Definition - The service deployment definition
- Messages string
- The status messages of the service
- App
Name string - The app name the service is assigned to
- Definition
Service
Definition Args - The service deployment definition
- Messages string
- The status messages of the service
- app
Name String - The app name the service is assigned to
- definition
Service
Definition - The service deployment definition
- messages String
- The status messages of the service
- app
Name string - The app name the service is assigned to
- definition
Service
Definition - The service deployment definition
- messages string
- The status messages of the service
- app_
name str - The app name the service is assigned to
- definition
Service
Definition Args - The service deployment definition
- messages str
- The status messages of the service
- app
Name String - The app name the service is assigned to
- definition Property Map
- The service deployment definition
- messages String
- The status messages of the service
Outputs
All input properties are implicitly available as output properties. Additionally, the Service resource produces the following output properties:
- Active
Deployment string - The service active deployment ID
- App
Id string - The app id the service is assigned to
- Created
At string - The date and time of when the service was created
- Id string
- The provider-assigned unique ID for this managed resource.
- Latest
Deployment string - The service latest deployment ID
- Name string
- The service name
- Organization
Id string - The organization ID owning the service
- Paused
At string - The date and time of when the service was last updated
- Resumed
At string - The date and time of when the service was last updated
- Status string
- The status of the service
- Terminated
At string - The date and time of when the service was last updated
- Updated
At string - The date and time of when the service was last updated
- Version string
- The version of the service
- Active
Deployment string - The service active deployment ID
- App
Id string - The app id the service is assigned to
- Created
At string - The date and time of when the service was created
- Id string
- The provider-assigned unique ID for this managed resource.
- Latest
Deployment string - The service latest deployment ID
- Name string
- The service name
- Organization
Id string - The organization ID owning the service
- Paused
At string - The date and time of when the service was last updated
- Resumed
At string - The date and time of when the service was last updated
- Status string
- The status of the service
- Terminated
At string - The date and time of when the service was last updated
- Updated
At string - The date and time of when the service was last updated
- Version string
- The version of the service
- active
Deployment String - The service active deployment ID
- app
Id String - The app id the service is assigned to
- created
At String - The date and time of when the service was created
- id String
- The provider-assigned unique ID for this managed resource.
- latest
Deployment String - The service latest deployment ID
- name String
- The service name
- organization
Id String - The organization ID owning the service
- paused
At String - The date and time of when the service was last updated
- resumed
At String - The date and time of when the service was last updated
- status String
- The status of the service
- terminated
At String - The date and time of when the service was last updated
- updated
At String - The date and time of when the service was last updated
- version String
- The version of the service
- active
Deployment string - The service active deployment ID
- app
Id string - The app id the service is assigned to
- created
At string - The date and time of when the service was created
- id string
- The provider-assigned unique ID for this managed resource.
- latest
Deployment string - The service latest deployment ID
- name string
- The service name
- organization
Id string - The organization ID owning the service
- paused
At string - The date and time of when the service was last updated
- resumed
At string - The date and time of when the service was last updated
- status string
- The status of the service
- terminated
At string - The date and time of when the service was last updated
- updated
At string - The date and time of when the service was last updated
- version string
- The version of the service
- active_
deployment str - The service active deployment ID
- app_
id str - The app id the service is assigned to
- created_
at str - The date and time of when the service was created
- id str
- The provider-assigned unique ID for this managed resource.
- latest_
deployment str - The service latest deployment ID
- name str
- The service name
- organization_
id str - The organization ID owning the service
- paused_
at str - The date and time of when the service was last updated
- resumed_
at str - The date and time of when the service was last updated
- status str
- The status of the service
- terminated_
at str - The date and time of when the service was last updated
- updated_
at str - The date and time of when the service was last updated
- version str
- The version of the service
- active
Deployment String - The service active deployment ID
- app
Id String - The app id the service is assigned to
- created
At String - The date and time of when the service was created
- id String
- The provider-assigned unique ID for this managed resource.
- latest
Deployment String - The service latest deployment ID
- name String
- The service name
- organization
Id String - The organization ID owning the service
- paused
At String - The date and time of when the service was last updated
- resumed
At String - The date and time of when the service was last updated
- status String
- The status of the service
- terminated
At String - The date and time of when the service was last updated
- updated
At String - The date and time of when the service was last updated
- version String
- The version of the service
Look up Existing Service Resource
Get an existing Service 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?: ServiceState, opts?: CustomResourceOptions): Service
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
active_deployment: Optional[str] = None,
app_id: Optional[str] = None,
app_name: Optional[str] = None,
created_at: Optional[str] = None,
definition: Optional[ServiceDefinitionArgs] = None,
latest_deployment: Optional[str] = None,
messages: Optional[str] = None,
name: Optional[str] = None,
organization_id: Optional[str] = None,
paused_at: Optional[str] = None,
resumed_at: Optional[str] = None,
status: Optional[str] = None,
terminated_at: Optional[str] = None,
updated_at: Optional[str] = None,
version: Optional[str] = None) -> Service
func GetService(ctx *Context, name string, id IDInput, state *ServiceState, opts ...ResourceOption) (*Service, error)
public static Service Get(string name, Input<string> id, ServiceState? state, CustomResourceOptions? opts = null)
public static Service get(String name, Output<String> id, ServiceState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Active
Deployment string - The service active deployment ID
- App
Id string - The app id the service is assigned to
- App
Name string - The app name the service is assigned to
- Created
At string - The date and time of when the service was created
- Definition
Service
Definition - The service deployment definition
- Latest
Deployment string - The service latest deployment ID
- Messages string
- The status messages of the service
- Name string
- The service name
- Organization
Id string - The organization ID owning the service
- Paused
At string - The date and time of when the service was last updated
- Resumed
At string - The date and time of when the service was last updated
- Status string
- The status of the service
- Terminated
At string - The date and time of when the service was last updated
- Updated
At string - The date and time of when the service was last updated
- Version string
- The version of the service
- Active
Deployment string - The service active deployment ID
- App
Id string - The app id the service is assigned to
- App
Name string - The app name the service is assigned to
- Created
At string - The date and time of when the service was created
- Definition
Service
Definition Args - The service deployment definition
- Latest
Deployment string - The service latest deployment ID
- Messages string
- The status messages of the service
- Name string
- The service name
- Organization
Id string - The organization ID owning the service
- Paused
At string - The date and time of when the service was last updated
- Resumed
At string - The date and time of when the service was last updated
- Status string
- The status of the service
- Terminated
At string - The date and time of when the service was last updated
- Updated
At string - The date and time of when the service was last updated
- Version string
- The version of the service
- active
Deployment String - The service active deployment ID
- app
Id String - The app id the service is assigned to
- app
Name String - The app name the service is assigned to
- created
At String - The date and time of when the service was created
- definition
Service
Definition - The service deployment definition
- latest
Deployment String - The service latest deployment ID
- messages String
- The status messages of the service
- name String
- The service name
- organization
Id String - The organization ID owning the service
- paused
At String - The date and time of when the service was last updated
- resumed
At String - The date and time of when the service was last updated
- status String
- The status of the service
- terminated
At String - The date and time of when the service was last updated
- updated
At String - The date and time of when the service was last updated
- version String
- The version of the service
- active
Deployment string - The service active deployment ID
- app
Id string - The app id the service is assigned to
- app
Name string - The app name the service is assigned to
- created
At string - The date and time of when the service was created
- definition
Service
Definition - The service deployment definition
- latest
Deployment string - The service latest deployment ID
- messages string
- The status messages of the service
- name string
- The service name
- organization
Id string - The organization ID owning the service
- paused
At string - The date and time of when the service was last updated
- resumed
At string - The date and time of when the service was last updated
- status string
- The status of the service
- terminated
At string - The date and time of when the service was last updated
- updated
At string - The date and time of when the service was last updated
- version string
- The version of the service
- active_
deployment str - The service active deployment ID
- app_
id str - The app id the service is assigned to
- app_
name str - The app name the service is assigned to
- created_
at str - The date and time of when the service was created
- definition
Service
Definition Args - The service deployment definition
- latest_
deployment str - The service latest deployment ID
- messages str
- The status messages of the service
- name str
- The service name
- organization_
id str - The organization ID owning the service
- paused_
at str - The date and time of when the service was last updated
- resumed_
at str - The date and time of when the service was last updated
- status str
- The status of the service
- terminated_
at str - The date and time of when the service was last updated
- updated_
at str - The date and time of when the service was last updated
- version str
- The version of the service
- active
Deployment String - The service active deployment ID
- app
Id String - The app id the service is assigned to
- app
Name String - The app name the service is assigned to
- created
At String - The date and time of when the service was created
- definition Property Map
- The service deployment definition
- latest
Deployment String - The service latest deployment ID
- messages String
- The status messages of the service
- name String
- The service name
- organization
Id String - The organization ID owning the service
- paused
At String - The date and time of when the service was last updated
- resumed
At String - The date and time of when the service was last updated
- status String
- The status of the service
- terminated
At String - The date and time of when the service was last updated
- updated
At String - The date and time of when the service was last updated
- version String
- The version of the service
Supporting Types
ServiceDefinition, ServiceDefinitionArgs
- Instance
Types List<ServiceDefinition Instance Type> - Name string
- The service name
- Ports
List<Service
Definition Port> - Regions List<string>
- The service deployment regions to deploy to
- Scalings
List<Service
Definition Scaling> - Docker
Service
Definition Docker - Envs
List<Service
Definition Env> - Git
Service
Definition Git - Health
Checks List<ServiceDefinition Health Check> - Routes
List<Service
Definition Route> - Skip
Cache bool - If set to true, the service will be deployed without using the cache
- Type string
- The service type, either WEB or WORKER (default WEB)
- Instance
Types []ServiceDefinition Instance Type - Name string
- The service name
- Ports
[]Service
Definition Port - Regions []string
- The service deployment regions to deploy to
- Scalings
[]Service
Definition Scaling - Docker
Service
Definition Docker - Envs
[]Service
Definition Env - Git
Service
Definition Git - Health
Checks []ServiceDefinition Health Check - Routes
[]Service
Definition Route - Skip
Cache bool - If set to true, the service will be deployed without using the cache
- Type string
- The service type, either WEB or WORKER (default WEB)
- instance
Types List<ServiceDefinition Instance Type> - name String
- The service name
- ports
List<Service
Definition Port> - regions List<String>
- The service deployment regions to deploy to
- scalings
List<Service
Definition Scaling> - docker
Service
Definition Docker - envs
List<Service
Definition Env> - git
Service
Definition Git - health
Checks List<ServiceDefinition Health Check> - routes
List<Service
Definition Route> - skip
Cache Boolean - If set to true, the service will be deployed without using the cache
- type String
- The service type, either WEB or WORKER (default WEB)
- instance
Types ServiceDefinition Instance Type[] - name string
- The service name
- ports
Service
Definition Port[] - regions string[]
- The service deployment regions to deploy to
- scalings
Service
Definition Scaling[] - docker
Service
Definition Docker - envs
Service
Definition Env[] - git
Service
Definition Git - health
Checks ServiceDefinition Health Check[] - routes
Service
Definition Route[] - skip
Cache boolean - If set to true, the service will be deployed without using the cache
- type string
- The service type, either WEB or WORKER (default WEB)
- instance_
types Sequence[ServiceDefinition Instance Type] - name str
- The service name
- ports
Sequence[Service
Definition Port] - regions Sequence[str]
- The service deployment regions to deploy to
- scalings
Sequence[Service
Definition Scaling] - docker
Service
Definition Docker - envs
Sequence[Service
Definition Env] - git
Service
Definition Git - health_
checks Sequence[ServiceDefinition Health Check] - routes
Sequence[Service
Definition Route] - skip_
cache bool - If set to true, the service will be deployed without using the cache
- type str
- The service type, either WEB or WORKER (default WEB)
- instance
Types List<Property Map> - name String
- The service name
- ports List<Property Map>
- regions List<String>
- The service deployment regions to deploy to
- scalings List<Property Map>
- docker Property Map
- envs List<Property Map>
- git Property Map
- health
Checks List<Property Map> - routes List<Property Map>
- skip
Cache Boolean - If set to true, the service will be deployed without using the cache
- type String
- The service type, either WEB or WORKER (default WEB)
ServiceDefinitionDocker, ServiceDefinitionDockerArgs
- Image string
- The Docker image to use to support your service
- Args List<string>
- The Docker args to use
- Command string
- The Docker command to use
- Entrypoints List<string>
- The Docker entrypoint to use
- Image
Registry stringSecret - The Koyeb secret containing the container registry credentials
- Privileged bool
- When enabled, the service container will run in privileged mode. This advanced feature is useful to get advanced system privileges.
- Image string
- The Docker image to use to support your service
- Args []string
- The Docker args to use
- Command string
- The Docker command to use
- Entrypoints []string
- The Docker entrypoint to use
- Image
Registry stringSecret - The Koyeb secret containing the container registry credentials
- Privileged bool
- When enabled, the service container will run in privileged mode. This advanced feature is useful to get advanced system privileges.
- image String
- The Docker image to use to support your service
- args List<String>
- The Docker args to use
- command String
- The Docker command to use
- entrypoints List<String>
- The Docker entrypoint to use
- image
Registry StringSecret - The Koyeb secret containing the container registry credentials
- privileged Boolean
- When enabled, the service container will run in privileged mode. This advanced feature is useful to get advanced system privileges.
- image string
- The Docker image to use to support your service
- args string[]
- The Docker args to use
- command string
- The Docker command to use
- entrypoints string[]
- The Docker entrypoint to use
- image
Registry stringSecret - The Koyeb secret containing the container registry credentials
- privileged boolean
- When enabled, the service container will run in privileged mode. This advanced feature is useful to get advanced system privileges.
- image str
- The Docker image to use to support your service
- args Sequence[str]
- The Docker args to use
- command str
- The Docker command to use
- entrypoints Sequence[str]
- The Docker entrypoint to use
- image_
registry_ strsecret - The Koyeb secret containing the container registry credentials
- privileged bool
- When enabled, the service container will run in privileged mode. This advanced feature is useful to get advanced system privileges.
- image String
- The Docker image to use to support your service
- args List<String>
- The Docker args to use
- command String
- The Docker command to use
- entrypoints List<String>
- The Docker entrypoint to use
- image
Registry StringSecret - The Koyeb secret containing the container registry credentials
- privileged Boolean
- When enabled, the service container will run in privileged mode. This advanced feature is useful to get advanced system privileges.
ServiceDefinitionEnv, ServiceDefinitionEnvArgs
ServiceDefinitionGit, ServiceDefinitionGitArgs
- Branch string
- The GitHub branch to deploy
- Repository string
- The GitHub repository to deploy
- Buildpack
Service
Definition Git Buildpack - Dockerfile
Service
Definition Git Dockerfile - No
Deploy boolOn Push - If set to true, no Koyeb deployments will be triggered when changes are pushed to the GitHub repository branch
- Workdir string
- The directory where your source code is located. If not set, the work directory defaults to the root of the repository.
- Branch string
- The GitHub branch to deploy
- Repository string
- The GitHub repository to deploy
- Buildpack
Service
Definition Git Buildpack - Dockerfile
Service
Definition Git Dockerfile - No
Deploy boolOn Push - If set to true, no Koyeb deployments will be triggered when changes are pushed to the GitHub repository branch
- Workdir string
- The directory where your source code is located. If not set, the work directory defaults to the root of the repository.
- branch String
- The GitHub branch to deploy
- repository String
- The GitHub repository to deploy
- buildpack
Service
Definition Git Buildpack - dockerfile
Service
Definition Git Dockerfile - no
Deploy BooleanOn Push - If set to true, no Koyeb deployments will be triggered when changes are pushed to the GitHub repository branch
- workdir String
- The directory where your source code is located. If not set, the work directory defaults to the root of the repository.
- branch string
- The GitHub branch to deploy
- repository string
- The GitHub repository to deploy
- buildpack
Service
Definition Git Buildpack - dockerfile
Service
Definition Git Dockerfile - no
Deploy booleanOn Push - If set to true, no Koyeb deployments will be triggered when changes are pushed to the GitHub repository branch
- workdir string
- The directory where your source code is located. If not set, the work directory defaults to the root of the repository.
- branch str
- The GitHub branch to deploy
- repository str
- The GitHub repository to deploy
- buildpack
Service
Definition Git Buildpack - dockerfile
Service
Definition Git Dockerfile - no_
deploy_ boolon_ push - If set to true, no Koyeb deployments will be triggered when changes are pushed to the GitHub repository branch
- workdir str
- The directory where your source code is located. If not set, the work directory defaults to the root of the repository.
- branch String
- The GitHub branch to deploy
- repository String
- The GitHub repository to deploy
- buildpack Property Map
- dockerfile Property Map
- no
Deploy BooleanOn Push - If set to true, no Koyeb deployments will be triggered when changes are pushed to the GitHub repository branch
- workdir String
- The directory where your source code is located. If not set, the work directory defaults to the root of the repository.
ServiceDefinitionGitBuildpack, ServiceDefinitionGitBuildpackArgs
- Build
Command string - The command to build your application during the build phase. If your application does not require a build command, leave this field empty
- Privileged bool
- When enabled, the service container will run in privileged mode. This advanced feature is useful to get advanced system privileges.
- Run
Command string - The command to run your application once the built is completed
- Build
Command string - The command to build your application during the build phase. If your application does not require a build command, leave this field empty
- Privileged bool
- When enabled, the service container will run in privileged mode. This advanced feature is useful to get advanced system privileges.
- Run
Command string - The command to run your application once the built is completed
- build
Command String - The command to build your application during the build phase. If your application does not require a build command, leave this field empty
- privileged Boolean
- When enabled, the service container will run in privileged mode. This advanced feature is useful to get advanced system privileges.
- run
Command String - The command to run your application once the built is completed
- build
Command string - The command to build your application during the build phase. If your application does not require a build command, leave this field empty
- privileged boolean
- When enabled, the service container will run in privileged mode. This advanced feature is useful to get advanced system privileges.
- run
Command string - The command to run your application once the built is completed
- build_
command str - The command to build your application during the build phase. If your application does not require a build command, leave this field empty
- privileged bool
- When enabled, the service container will run in privileged mode. This advanced feature is useful to get advanced system privileges.
- run_
command str - The command to run your application once the built is completed
- build
Command String - The command to build your application during the build phase. If your application does not require a build command, leave this field empty
- privileged Boolean
- When enabled, the service container will run in privileged mode. This advanced feature is useful to get advanced system privileges.
- run
Command String - The command to run your application once the built is completed
ServiceDefinitionGitDockerfile, ServiceDefinitionGitDockerfileArgs
- Args List<string>
- The arguments to pass to the Docker command
- Command string
- Override the command to execute on the container
- Dockerfile string
- The location of your Dockerfile relative to the work directory. If not set, the work directory defaults to the root of the repository.
- Entrypoints List<string>
- Override the default entrypoint to execute on the container
- Privileged bool
- When enabled, the service container will run in privileged mode. This advanced feature is useful to get advanced system privileges.
- Target string
- Target build stage: If your Dockerfile contains multi-stage builds, you can choose the target stage to build and deploy by entering its name
- Args []string
- The arguments to pass to the Docker command
- Command string
- Override the command to execute on the container
- Dockerfile string
- The location of your Dockerfile relative to the work directory. If not set, the work directory defaults to the root of the repository.
- Entrypoints []string
- Override the default entrypoint to execute on the container
- Privileged bool
- When enabled, the service container will run in privileged mode. This advanced feature is useful to get advanced system privileges.
- Target string
- Target build stage: If your Dockerfile contains multi-stage builds, you can choose the target stage to build and deploy by entering its name
- args List<String>
- The arguments to pass to the Docker command
- command String
- Override the command to execute on the container
- dockerfile String
- The location of your Dockerfile relative to the work directory. If not set, the work directory defaults to the root of the repository.
- entrypoints List<String>
- Override the default entrypoint to execute on the container
- privileged Boolean
- When enabled, the service container will run in privileged mode. This advanced feature is useful to get advanced system privileges.
- target String
- Target build stage: If your Dockerfile contains multi-stage builds, you can choose the target stage to build and deploy by entering its name
- args string[]
- The arguments to pass to the Docker command
- command string
- Override the command to execute on the container
- dockerfile string
- The location of your Dockerfile relative to the work directory. If not set, the work directory defaults to the root of the repository.
- entrypoints string[]
- Override the default entrypoint to execute on the container
- privileged boolean
- When enabled, the service container will run in privileged mode. This advanced feature is useful to get advanced system privileges.
- target string
- Target build stage: If your Dockerfile contains multi-stage builds, you can choose the target stage to build and deploy by entering its name
- args Sequence[str]
- The arguments to pass to the Docker command
- command str
- Override the command to execute on the container
- dockerfile str
- The location of your Dockerfile relative to the work directory. If not set, the work directory defaults to the root of the repository.
- entrypoints Sequence[str]
- Override the default entrypoint to execute on the container
- privileged bool
- When enabled, the service container will run in privileged mode. This advanced feature is useful to get advanced system privileges.
- target str
- Target build stage: If your Dockerfile contains multi-stage builds, you can choose the target stage to build and deploy by entering its name
- args List<String>
- The arguments to pass to the Docker command
- command String
- Override the command to execute on the container
- dockerfile String
- The location of your Dockerfile relative to the work directory. If not set, the work directory defaults to the root of the repository.
- entrypoints List<String>
- Override the default entrypoint to execute on the container
- privileged Boolean
- When enabled, the service container will run in privileged mode. This advanced feature is useful to get advanced system privileges.
- target String
- Target build stage: If your Dockerfile contains multi-stage builds, you can choose the target stage to build and deploy by entering its name
ServiceDefinitionHealthCheck, ServiceDefinitionHealthCheckArgs
- Grace
Period int - The period in seconds to wait for the instance to become healthy, default is 5s
- Http
Service
Definition Health Check Http - Interval int
- The period in seconds between two health checks, default is 60s
- Restart
Limit int - The number of consecutive failures before attempting to restart the service, default is 3
- Tcp
Service
Definition Health Check Tcp - Timeout int
- The maximum time to wait in seconds before considering the check as a failure, default is 5s
- Grace
Period int - The period in seconds to wait for the instance to become healthy, default is 5s
- Http
Service
Definition Health Check Http - Interval int
- The period in seconds between two health checks, default is 60s
- Restart
Limit int - The number of consecutive failures before attempting to restart the service, default is 3
- Tcp
Service
Definition Health Check Tcp - Timeout int
- The maximum time to wait in seconds before considering the check as a failure, default is 5s
- grace
Period Integer - The period in seconds to wait for the instance to become healthy, default is 5s
- http
Service
Definition Health Check Http - interval Integer
- The period in seconds between two health checks, default is 60s
- restart
Limit Integer - The number of consecutive failures before attempting to restart the service, default is 3
- tcp
Service
Definition Health Check Tcp - timeout Integer
- The maximum time to wait in seconds before considering the check as a failure, default is 5s
- grace
Period number - The period in seconds to wait for the instance to become healthy, default is 5s
- http
Service
Definition Health Check Http - interval number
- The period in seconds between two health checks, default is 60s
- restart
Limit number - The number of consecutive failures before attempting to restart the service, default is 3
- tcp
Service
Definition Health Check Tcp - timeout number
- The maximum time to wait in seconds before considering the check as a failure, default is 5s
- grace_
period int - The period in seconds to wait for the instance to become healthy, default is 5s
- http
Service
Definition Health Check Http - interval int
- The period in seconds between two health checks, default is 60s
- restart_
limit int - The number of consecutive failures before attempting to restart the service, default is 3
- tcp
Service
Definition Health Check Tcp - timeout int
- The maximum time to wait in seconds before considering the check as a failure, default is 5s
- grace
Period Number - The period in seconds to wait for the instance to become healthy, default is 5s
- http Property Map
- interval Number
- The period in seconds between two health checks, default is 60s
- restart
Limit Number - The number of consecutive failures before attempting to restart the service, default is 3
- tcp Property Map
- timeout Number
- The maximum time to wait in seconds before considering the check as a failure, default is 5s
ServiceDefinitionHealthCheckHttp, ServiceDefinitionHealthCheckHttpArgs
- Path string
- The path to use to perform the HTTP health check
- Port int
- The port to use to perform the health check
- Headers
List<Service
Definition Health Check Http Header> - Method string
- An optional HTTP method to use to perform the health check, default is GET
- Path string
- The path to use to perform the HTTP health check
- Port int
- The port to use to perform the health check
- Headers
[]Service
Definition Health Check Http Header - Method string
- An optional HTTP method to use to perform the health check, default is GET
- path String
- The path to use to perform the HTTP health check
- port Integer
- The port to use to perform the health check
- headers
List<Service
Definition Health Check Http Header> - method String
- An optional HTTP method to use to perform the health check, default is GET
- path string
- The path to use to perform the HTTP health check
- port number
- The port to use to perform the health check
- headers
Service
Definition Health Check Http Header[] - method string
- An optional HTTP method to use to perform the health check, default is GET
- path str
- The path to use to perform the HTTP health check
- port int
- The port to use to perform the health check
- headers
Sequence[Service
Definition Health Check Http Header] - method str
- An optional HTTP method to use to perform the health check, default is GET
- path String
- The path to use to perform the HTTP health check
- port Number
- The port to use to perform the health check
- headers List<Property Map>
- method String
- An optional HTTP method to use to perform the health check, default is GET
ServiceDefinitionHealthCheckHttpHeader, ServiceDefinitionHealthCheckHttpHeaderArgs
ServiceDefinitionHealthCheckTcp, ServiceDefinitionHealthCheckTcpArgs
- Port int
- The port to use to perform the health check
- Port int
- The port to use to perform the health check
- port Integer
- The port to use to perform the health check
- port number
- The port to use to perform the health check
- port int
- The port to use to perform the health check
- port Number
- The port to use to perform the health check
ServiceDefinitionInstanceType, ServiceDefinitionInstanceTypeArgs
ServiceDefinitionPort, ServiceDefinitionPortArgs
ServiceDefinitionRoute, ServiceDefinitionRouteArgs
ServiceDefinitionScaling, ServiceDefinitionScalingArgs
- Max int
- The maximum number of instance to use to support your service
- Min int
- The minimal number of instances to use to support your service
- Scopes List<string>
- The regions to apply the scaling configuration
- Targets
List<Service
Definition Scaling Target>
- Max int
- The maximum number of instance to use to support your service
- Min int
- The minimal number of instances to use to support your service
- Scopes []string
- The regions to apply the scaling configuration
- Targets
[]Service
Definition Scaling Target
- max Integer
- The maximum number of instance to use to support your service
- min Integer
- The minimal number of instances to use to support your service
- scopes List<String>
- The regions to apply the scaling configuration
- targets
List<Service
Definition Scaling Target>
- max number
- The maximum number of instance to use to support your service
- min number
- The minimal number of instances to use to support your service
- scopes string[]
- The regions to apply the scaling configuration
- targets
Service
Definition Scaling Target[]
- max int
- The maximum number of instance to use to support your service
- min int
- The minimal number of instances to use to support your service
- scopes Sequence[str]
- The regions to apply the scaling configuration
- targets
Sequence[Service
Definition Scaling Target]
- max Number
- The maximum number of instance to use to support your service
- min Number
- The minimal number of instances to use to support your service
- scopes List<String>
- The regions to apply the scaling configuration
- targets List<Property Map>
ServiceDefinitionScalingTarget, ServiceDefinitionScalingTargetArgs
- Average
Cpus List<ServiceDefinition Scaling Target Average Cpus> - The CPU usage (expressed as a percentage) across all Instances of your Service within a region
- Average
Mems List<ServiceDefinition Scaling Target Average Mem> - The memory usage (expressed as a percentage) across all Instances of your Service within a region
- Requests
Per List<ServiceSeconds Definition Scaling Target Requests Per Second> - The number of concurrent requests per second across all Instances of your Service within a region
- Average
Cpus []ServiceDefinition Scaling Target Average Cpus - The CPU usage (expressed as a percentage) across all Instances of your Service within a region
- Average
Mems []ServiceDefinition Scaling Target Average Mem - The memory usage (expressed as a percentage) across all Instances of your Service within a region
- Requests
Per []ServiceSeconds Definition Scaling Target Requests Per Second - The number of concurrent requests per second across all Instances of your Service within a region
- average
Cpus List<ServiceDefinition Scaling Target Average Cpus> - The CPU usage (expressed as a percentage) across all Instances of your Service within a region
- average
Mems List<ServiceDefinition Scaling Target Average Mem> - The memory usage (expressed as a percentage) across all Instances of your Service within a region
- requests
Per List<ServiceSeconds Definition Scaling Target Requests Per Second> - The number of concurrent requests per second across all Instances of your Service within a region
- average
Cpus ServiceDefinition Scaling Target Average Cpus[] - The CPU usage (expressed as a percentage) across all Instances of your Service within a region
- average
Mems ServiceDefinition Scaling Target Average Mem[] - The memory usage (expressed as a percentage) across all Instances of your Service within a region
- requests
Per ServiceSeconds Definition Scaling Target Requests Per Second[] - The number of concurrent requests per second across all Instances of your Service within a region
- average_
cpus Sequence[ServiceDefinition Scaling Target Average Cpus] - The CPU usage (expressed as a percentage) across all Instances of your Service within a region
- average_
mems Sequence[ServiceDefinition Scaling Target Average Mem] - The memory usage (expressed as a percentage) across all Instances of your Service within a region
- requests_
per_ Sequence[Serviceseconds Definition Scaling Target Requests Per Second] - The number of concurrent requests per second across all Instances of your Service within a region
- average
Cpus List<Property Map> - The CPU usage (expressed as a percentage) across all Instances of your Service within a region
- average
Mems List<Property Map> - The memory usage (expressed as a percentage) across all Instances of your Service within a region
- requests
Per List<Property Map>Seconds - The number of concurrent requests per second across all Instances of your Service within a region
ServiceDefinitionScalingTargetAverageCpus, ServiceDefinitionScalingTargetAverageCpusArgs
- Value int
- The target value of the autoscaling target
- Value int
- The target value of the autoscaling target
- value Integer
- The target value of the autoscaling target
- value number
- The target value of the autoscaling target
- value int
- The target value of the autoscaling target
- value Number
- The target value of the autoscaling target
ServiceDefinitionScalingTargetAverageMem, ServiceDefinitionScalingTargetAverageMemArgs
- Value int
- The target value of the autoscaling target
- Value int
- The target value of the autoscaling target
- value Integer
- The target value of the autoscaling target
- value number
- The target value of the autoscaling target
- value int
- The target value of the autoscaling target
- value Number
- The target value of the autoscaling target
ServiceDefinitionScalingTargetRequestsPerSecond, ServiceDefinitionScalingTargetRequestsPerSecondArgs
- Value int
- The target value of the autoscaling target
- Value int
- The target value of the autoscaling target
- value Integer
- The target value of the autoscaling target
- value number
- The target value of the autoscaling target
- value int
- The target value of the autoscaling target
- value Number
- The target value of the autoscaling target
Package Details
- Repository
- koyeb koyeb/pulumi-koyeb
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
koyeb
Terraform Provider.