aws.ecs-container-instance

Filters

taggable

Filter ECS resources on arn-format https://docs.aws.amazon.com/AmazonECS/latest/userguide/ecs-resource-ids.html :example:

policies:
    - name: taggable
      resource: ecs-service
      filters:
        - type: taggable
          state: True
properties:
  state:
    type: boolean
  type:
    enum:
    - taggable
required:
- type

Permissions - ecs:ListContainerInstances

Actions

set-state

Updates a container instance to either ACTIVE or DRAINING

example:

policies:
    - name: drain-container-instances
      resource: ecs-container-instance
      actions:
        - type: set-state
          state: DRAINING
properties:
  state:
    enum:
    - DRAINING
    - ACTIVE
    type: string
  type:
    enum:
    - set-state
required:
- type

Permissions - ecs:UpdateContainerInstancesState

update-agent

Updates the agent on a container instance

properties:
  type:
    enum:
    - update-agent
required:
- type

Permissions - ecs:UpdateContainerAgent