Skip to content

ecs

EcsCluster (AwsResource)

Attributes:

Name Type Description
cluster_arn str

The ARN of the ECS cluster.

cluster_id str

The ID of the cluster.

cluster_name str

The name of the cluster.

service_list List[EcsService]

The list of services attached to this cluster.

event_target_list List[CloudWatchEventTarget]

The list of CloudWatchEventTargets associated with this cluster.

is_container_insights_enabled bool

Indication if Container Insights enabled for this cluster or not.

custom_invalidation(self) inherited

A list of manual reasons why this resource should be invalidated

exclude_from_invalidation(self) inherited

A list of attributes that should be excluded from the invalidation process

ClusterStatus (Enum)

An enumeration.

LaunchType (str, Enum)

An enumeration.

NetworkMode (Enum)

An enumeration.

EcsService (NetworkEntity, INetworkConfiguration, IEcsInstance)

Attributes:

Name Type Description
name

The name of the service.

launch_type LaunchType

The launch type of the service.

network_conf_list List[NetworkConfiguration]

The list of network configurations set under this service.

elb_list List[LoadBalancingConfiguration]

The load balancing configuration defined under this service.

task_definition_arn str

The ARN of the task definition associated with the service.

cluster_name str

The name of the cluster this service belongs to.

custom_invalidation(self) inherited

A list of manual reasons why this resource should be invalidated

exclude_from_invalidation(self) inherited

A list of attributes that should be excluded from the invalidation process

EcsTarget (NetworkEntity, INetworkConfiguration, IEcsInstance)

Attributes:

Name Type Description
name

Cloudrail naming for the ECS target.

target_id str

The ID of the target.

launch_type LaunchType

The launch type of the target.

cluster_arn str

The cluster this target belongs to.

role_arn str

The ARN of the IAM Role used with this target.

network_conf_list List[NetworkConfiguration]

A list of network configurations.

task_definition_arn str

The ARN of the task definition the target is a part of.

cluster_name str

The name of the cluster the target belongs to.

custom_invalidation(self) inherited

A list of manual reasons why this resource should be invalidated

exclude_from_invalidation(self) inherited

A list of attributes that should be excluded from the invalidation process

ContainerDefinition dataclass

ContainerDefinition(container_name: str, image: str, port_mappings: List[cloudrail.knowledge.context.aws.resources.ecs.ecs_task_definition.PortMappings] = )

EcsTaskDefinition (AwsResource)

Attributes:

Name Type Description
task_arn str

The ARN of the task definition.

family str

The family the definition is a part of.

revision str

The revision of the task definition.

task_role_arn str

The IAM Role used by the task.

execution_role_arn str

The IAM Role used to execute the task.

network_mode NetworkMode

The network mode to use with this task.

container_definitions

A list (potentially empty) of container definitions.

iam_role Optional[Role]

The actual IAM Role referenced by execution_role_arn.

efs_volume_data

The EFS configuration in the task, if one is configured.

is_volume_efs bool

True if there is EFS configured.

custom_invalidation(self) inherited

A list of manual reasons why this resource should be invalidated

exclude_from_invalidation(self) inherited

A list of attributes that should be excluded from the invalidation process

EfsVolume dataclass

EfsVolume(volume_name: str, efs_id: str, encrypt_efs_in_transit: bool)

PortMappings dataclass

PortMappings(container_port: int, host_port: int, protocol: cloudrail.knowledge.context.ip_protocol.IpProtocol)

LoadBalancingConfiguration dataclass

Details about the load balancing connection to an ECS Service.