Skip to main content

AwsDeploymentModuleSchema

AwsDeploymentModuleSchema is the input schema for the AwsDeploymentModule module: the code a deployment runs, and what that code needs.

The code is a container image: either image and imageTag, naming a tag octo publishes into ECR, or imageUri, naming any other image. Every other field is what the code needs from whatever runs it, and the execution module checks the ones its runtime uses.

@group

Modules/Deployment/AwsDeployment

@see

AwsDeploymentModule to learn more about the AwsDeploymentModule module.

Index

Properties

optionalcommand

command?: string[] | null = null

The command to run, replacing the image's own, one argument per element, e.g. ['node', 'main.js'].

optionalcpu

cpu?: number | null = null

The CPU units the code needs, where 1024 units are one vCPU. ECS needs it; Lambda derives CPU from memory.

deploymentTag

deploymentTag: string

A unique tag to identify this deployment version.

optionalimage

image?: Image | null = null

The ECR image whose published tag the deployment runs. Set it with imageTag.

optionalimageTag

imageTag?: string | null = null

The tag of image the deployment runs, e.g. 0.0.1.

optionalimageUri

imageUri?: string | null = null

The URI of an image octo does not publish, e.g. docker.io/nginx:1.27. Only ECS runs it.

optionalmemory

memory?: number | null = null

The memory the code needs, in MiB.

optionalports

The ports the code listens on. See AwsDeploymentAnchorPortSchema for options.

server

server: Server

The server whose code this is.

optionaltimeoutInSeconds

timeoutInSeconds?: number | null = null

How long one request may run, in seconds. Lambda needs it.