Skip to content

Creates a Network Firewall container association

Description

Creates a Network Firewall container association. The association monitors container lifecycle events in your Amazon ECS or Amazon EKS clusters and resolves running container addresses for use in firewall rules.

Usage

networkfirewall_create_container_association(ContainerAssociationName,
  Description, Type, ContainerMonitoringConfigurations, Tags)

Arguments

  • ContainerAssociationName

    [required] The descriptive name of the container association. You can't change the name of a container association after you create it.

  • Description

    A description of the container association.

  • Type

    [required] The type of containers to monitor. You can't change the container type after creation. Valid values:

    • ECS - Amazon Elastic Container Service
    • EKS - Amazon Elastic Kubernetes Service
  • ContainerMonitoringConfigurations

    [required] The monitoring configurations for the container association. Each configuration specifies an Amazon ECS or Amazon EKS cluster to monitor and optional attribute filters to narrow which containers are tracked.

  • Tags

    The key:value pairs to associate with the resource.

Value

A list with the following syntax:

list(
  ContainerAssociationName = "string",
  ContainerAssociationArn = "string",
  Description = "string",
  Type = "ECS"|"EKS",
  ContainerMonitoringConfigurations = list(
    list(
      ClusterArn = "string",
      AttributeFilters = list(
        list(
          Key = "string",
          Value = "string"
        )
      )
    )
  ),
  Status = "ACTIVE"|"CREATING"|"DELETING"|"UPDATING",
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  ),
  UpdateToken = "string"
)

Request syntax

svc$create_container_association(
  ContainerAssociationName = "string",
  Description = "string",
  Type = "ECS"|"EKS",
  ContainerMonitoringConfigurations = list(
    list(
      ClusterArn = "string",
      AttributeFilters = list(
        list(
          Key = "string",
          Value = "string"
        )
      )
    )
  ),
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)