AWS::NetworkFirewall::ContainerAssociation

NetworkFirewall ContainerAssociation

Resource type definition for AWS::NetworkFirewall::ContainerAssociation. A container association monitors container lifecycle events in your Amazon ECS or Amazon EKS clusters and resolves running container addresses for use in Network Firewall rules.

Properties

5 configurable properties. 3 required. Click a row to see details.

Filter:
PropertyTypeFlags
ContainerAssociationName
string
RequiredCreate-only
ContainerMonitoringConfigurations
Array<ContainerMonitoringConfiguration>
Required
Type
string
RequiredCreate-only
Description
string
Tags
Array<Tag>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
ContainerAssociationArnstringThe Amazon Resource Name (ARN) of the container association.
ResolvedCidrCountintegerThe number of CIDR blocks resolved from the monitored containers.
StatusstringThe current status of the container association.

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::NetworkFirewall::ContainerAssociation

Resources:
  MyResource:
    Type: AWS::NetworkFirewall::ContainerAssociation
    Properties:
      ContainerAssociationName: "my-containerassociationname"
      Type: "ECS"
      ContainerMonitoringConfigurations: []
      Tags:
        - Key: Environment
          Value: Production
      Description: !Ref "AWS::StackName"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

network-firewall:CreateContainerAssociationnetwork-firewall:TagResourcenetwork-firewall:DescribeContainerAssociationecs:DescribeClusterseks:DescribeClusterevents:PutRuleevents:PutTargetsiam:CreateServiceLinkedRole

read

network-firewall:DescribeContainerAssociation

update

network-firewall:UpdateContainerAssociationnetwork-firewall:DescribeContainerAssociationnetwork-firewall:TagResourcenetwork-firewall:UntagResourceecs:DescribeClusterseks:DescribeClusterevents:PutRuleevents:PutTargetsevents:DeleteRuleevents:RemoveTargets

delete

network-firewall:DeleteContainerAssociationnetwork-firewall:DescribeContainerAssociationevents:DeleteRuleevents:RemoveTargets

list

network-firewall:ListContainerAssociations

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceNetworkFirewall
Properties8
Required3
TaggingSupported
Primary IDContainerAssociationArn

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

ContainerAssociationNameType

External Links