Skip to main content

AwsDeploymentAnchorPropertiesSchema

Defines the code a deployment runs and what that code needs.

A runtime reads only the fields it uses. An execution module checks that every field its runtime needs is set and within the runtime's limits, so a field one runtime ignores can still be set.

@group

Anchors/AwsDeployment

Index

Properties

command

command: string[] | null

The command to run, one argument per element, replacing the image's own, or null to keep the image's own command.

cpu

cpu: number | null

The CPU units the code needs, where 1024 units are one vCPU, or null to leave it to the runtime.

image

image: { imageId: string; imageTag: string; kind: ecr } | { kind: uri; uri: string }

The container image the code is in. It is either an image octo publishes into ECR, named by its image and tag, or any other image, named by its URI.

memory

memory: number | null

The memory the code needs in MiB, or null to leave it to the runtime.

ports

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

timeoutInSeconds

timeoutInSeconds: number | null

How long one request may run in seconds, or null to leave it to the runtime.