Skip to main content

Container

Use the Container node for running a script that is packaged in a container to remediate an incident. To do so, you need to create an ECR that contains a docker image.

Many scripts (such as Bash, Python scripts) and code in containers are used when remediating problems in the infrastructure. This integration supports executing these scripts in Spot’s workflows and connects these scripts to other services available in Spot Connect.

The container images used in this action node need to be set up according to https://aws.amazon.com/blogs/aws/new-for-aws-lambda-container-image-support/.

Additionally, the target account role needs to have its Trust Relationships updated to allow access to the AWS lambda service, and an updated Condition clause as shown.

The Container integration lets you:

  • Configure a container registry.
  • Pick a Docker image and version that is available in the registry.
  • Pass any input to the Docker image in a text box. The input is directly passed as input when running the container.
  • Enter resource requirements for the container
  • CPU (specified in CPU units).
  • MEM (specified in MB)

Container Node

Input

ParameterDescriptionRequired
Target Account AliasSelect a Target account alias to be used to perform given operationTrue
RepositoryECR repository with container imagesTrue
Container imageContainer image digestTrue
Entry PointEntry point to application, e.g., path to executeFalse
CommandList of command line argumentsFalse
Working directoryAlternative working directoryFalse
Memory SizeRequest memory for lambda execution (> 128M)False
TimeoutReduce execution timeout if different from the default 15 minutesFalse
S3 bucketS3 bucket for storing outputFalse

Output

ParameterTypeDescription
outputStringOutput from container image
logStringLog output from customer lambda invocation
bucketStringS3 bucket for output if specified
keyStringS3 object key for output if bucket was specified

Action Example

Input

container-1

Output

container-2