Skip to content

Run Tasks in ECS Stage/Prod #2351

@terrywbrady

Description

@terrywbrady

How to run a task against ECS

  • CodePipeline (DEV stacks only)
  • Event Bridge --> CodePipeline (DEV stacks only)
  • Event Bridge --> ECS Run Task
  • Admin Tool --> ECS Run Task

What does Run Task do?

  • Runs a container in a VPC
    • Can override the entrypoing
  • Container performs a finite task and terminates
  • Logs to CloudWatch or OpenSearch
  • Does NOT have an awareness of ServiceDiscovery

Calling Run Task

  • must specify VPC
  • must specify subnets
  • must specify security group
  • Tasks are built with an Execution Role/Task Role just like our services

What image should we use

Tasks Needed

Scheduled

  • Run consistency checks (multiple Admin API calls)
  • Start DEV stack
  • Shutdown DEV stack
  • Clean Access Queue
  • Clean Ingest Queue?
  • Clean ingest folders
  • Cycle containers - to pull in the latest builds
  • Backup LDAP
  • Backup ZK

On Demand

  • Run Admin Tool unit tests (multiple Admin API calls)
  • Scale up service
  • Scale down service

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions