AttiniRunnerJob

The AttiniRunnerJob is a quick and cost-efficient way to run shell commands using a container.

Find detailed information about the Attini::Deploy::Runner type here.

Find information about the Attini Runner architecture here.

Type: AttiniRunnerJob
Properties:
  Runner: String
  Environment: Map<String,String>
  Commands: List<String>

Runner

Type: String

Reference a Attini::Deploy::Runner recourse, find more information here.

Default: Attini default runner

Required: No

Environment

Type: Map<String,String>

This property lets you set environment variables on the Runner.

Example
Type: AttiniRunnerJob
Properties:
  Environment:
    ENV.$: $.environment
    VPC_ID.$: $.output.vpc.id
  Commands:
    - echo ${VPC_ID}

Required: No

Commands

Type: List<String>

List of shell commands that runs the job.

These commands are run with set -eo pipefail configuration so that they fail quickly. To revert this configuration (and ignore errors in your scrips), begin your commands with the line: set +eo pipefail.

Note

These strings can NOT integrate with the payload through Amazon state language using the $. syntax or its intrinsic functions.

If you need these commands to integrate with the payload, see the “Environment” configuration or Attini runner input and output.

Required: Yes

Example
HelloWorldRunner:
  Type: Attini::Deploy::Runner
  Properties:
    TaskDefinitionArn: !Ref RunnerTaskDefinition
    EcsCluster: test
    AwsVpcConfiguration:
      Subnets:
          - "subnet-aaaaaaaa"
          - "subnet-bbbbbbbb"
          - "subnet-cccccccc"
      SecurityGroups:
          - 'sg-11111111'
      assignPublicIp: ENABLED


ExampleDeployment:
  Type: Attini::Deploy::DeploymentPlan
  Properties:
    DeploymentPlan:
      - Name: Step1
        Type: AttiniRunnerJob
        Properties:
          Runner: HelloWorldRunner
          Commands:
            - echo "my shell commands"