This list provides an overview of all types, values and functions exported from this module. These are not necessarily defined in this module: in some cases, we also re-export items from other modules. When that is the case, we link to the appropriate definition.
-
Type
App -
Function
app -
Type
AppCluster -
Function
new
An app is basically a docker image together with some parameters. You can
deploy multiple apps in an AppCluster. For every app, the appropriate
resources (including a separate load balancer, security group...) will be
created.
type App:
| App
name: String
image: String
port: Int
memory: Int
managedPolicies: List<ManagedPolicy>
logGroupName: Optional<String>
fun{name: String, image: String, logGroupName: Optional<String>, port: Optional<Int>, memory: Optional<Int>, managedPolicies: Optional<List<ManagedPolicy>>} -> App
Constructor to create a new App.
-
name:StringDescriptive name for the application. Lowercase and hyphen is recommended.
-
image:StringName of the docker image.
-
logGroupName:Optional<String>CloudWatch log group name to send logs to.
-
Port on which your docker image listens. Defaults to 8000.
-
Amount of memory available to the image, in MB. Defaults to 256.
-
managedPolicies:Optional<List<ManagedPolicy>>Extra policies your docker image needs (e.g. SQS access). TODO: The use should be able to specify inline policies as well.
type AppCluster:
cluster: Cluster
services: List<Service>
asg: AutoScalingGroup
-
cluster:Cluster -
asg:AutoScalingGroup
fun{name: String, network: Network, apps: List<App>, size: Optional<Int>, keyName: Optional<String>} -> AppCluster
Create a new AppCluster