AWS::NetworkFirewall::ContainerAssociationResource 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.
5 configurable properties. 3 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
ContainerAssociationName | string | RequiredCreate-only |
ContainerMonitoringConfigurations | Array<ContainerMonitoringConfiguration> | Required |
Type | string | RequiredCreate-only |
Description | string | |
Tags | Array<Tag> |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
ContainerAssociationArn | string | The Amazon Resource Name (ARN) of the container association. |
ResolvedCidrCount | integer | The number of CIDR blocks resolved from the monitored containers. |
Status | string | The current status of the container association. |
A minimal template with required properties and common optional ones.
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"Permissions CloudFormation needs in your IAM role to manage this resource.
network-firewall:CreateContainerAssociationnetwork-firewall:TagResourcenetwork-firewall:DescribeContainerAssociationecs:DescribeClusterseks:DescribeClusterevents:PutRuleevents:PutTargetsiam:CreateServiceLinkedRolenetwork-firewall:DescribeContainerAssociationnetwork-firewall:UpdateContainerAssociationnetwork-firewall:DescribeContainerAssociationnetwork-firewall:TagResourcenetwork-firewall:UntagResourceecs:DescribeClusterseks:DescribeClusterevents:PutRuleevents:PutTargetsevents:DeleteRuleevents:RemoveTargetsnetwork-firewall:DeleteContainerAssociationnetwork-firewall:DescribeContainerAssociationevents:DeleteRuleevents:RemoveTargetsnetwork-firewall:ListContainerAssociationsOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterContainerAssociationArnThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
ContainerAssociationNameType