One Observability Workshop v3.0.0
One Observability Workshop / constructs/ecs-service / EcsServiceProperties
Interface: EcsServiceProperties¶
Defined in: constructs/ecs-service.ts:64
Properties for configuring an ECS-hosted microservice.
Extends MicroserviceProperties with ECS-specific settings for task sizing, observability sidecars, and log routing.
Extends¶
Extended by¶
PayForAdoptionServicePropertiesPetSearchServicePropertiesPetFoodPropertiesListAdoptionsServiceProperties
Properties¶
cpu¶
cpu:
number
Defined in: constructs/ecs-service.ts:66
CPU units for the task (256, 512, 1024, 2048, 4096)
memoryLimitMiB¶
memoryLimitMiB:
number
Defined in: constructs/ecs-service.ts:68
Memory limit in MiB for the task
desiredTaskCount¶
desiredTaskCount:
number
Defined in: constructs/ecs-service.ts:70
Number of desired task instances
cloudMapNamespace?¶
optionalcloudMapNamespace:IPrivateDnsNamespace
Defined in: constructs/ecs-service.ts:72
Cloud Map namespace for service discovery registration
openSearchCollection?¶
optionalopenSearchCollection:OpenSearchCollection| {collectionArn:string;collectionEndpoint:string; }
Defined in: constructs/ecs-service.ts:74
OpenSearch Serverless collection for direct log ingestion
openSearchPipeline?¶
optionalopenSearchPipeline:OpenSearchPipeline| {pipelineEndpoint:string;pipelineArn?:string;pipelineRoleArn?:string; }
Defined in: constructs/ecs-service.ts:85
OpenSearch ingestion pipeline for log routing When provided, logs will be sent to the pipeline instead of directly to OpenSearch Mutually exclusive with openSearchCollection
additionalEnvironment?¶
optionaladditionalEnvironment:object
Defined in: constructs/ecs-service.ts:93
Extra environment variables merged into the application container
Index Signature¶
[key: string]: string
enableCloudWatchAgent?¶
optionalenableCloudWatchAgent:boolean
Defined in: constructs/ecs-service.ts:98
Enable CloudWatch agent sidecar for application signals and OTLP traces When enabled, adds a CloudWatch agent container that listens on port 4317
cloudWatchAgentTraceMode?¶
optionalcloudWatchAgentTraceMode:CloudWatchAgentTraceMode
Defined in: constructs/ecs-service.ts:103
CloudWatch agent trace collection mode
Default¶
hostType¶
hostType:
HostType
Defined in: constructs/microservice.ts:53
Where the service runs: ECS, EKS, or None (AgentCore)
Inherited from¶
MicroserviceProperties.hostType
computeType¶
computeType:
ComputeType
Defined in: constructs/microservice.ts:55
Compute backing: Fargate or EC2
Inherited from¶
MicroserviceProperties.computeType
tags?¶
optionaltags:object
Defined in: constructs/microservice.ts:57
Resource tags applied to all child constructs
Index Signature¶
[key: string]: string
Inherited from¶
securityGroup?¶
optionalsecurityGroup:ISecurityGroup
Defined in: constructs/microservice.ts:59
Security group for the service's network interface
Inherited from¶
MicroserviceProperties.securityGroup
vpc?¶
optionalvpc:IVpc
Defined in: constructs/microservice.ts:61
VPC for network placement
Inherited from¶
eksCluster?¶
optionaleksCluster:ICluster
Defined in: constructs/microservice.ts:63
EKS cluster (required when hostType is EKS)
Inherited from¶
MicroserviceProperties.eksCluster
ecsCluster?¶
optionalecsCluster:ICluster
Defined in: constructs/microservice.ts:65
ECS cluster (required when hostType is ECS)
Inherited from¶
MicroserviceProperties.ecsCluster
logRetentionDays?¶
optionallogRetentionDays:RetentionDays
Defined in: constructs/microservice.ts:67
Default Log Retention
Inherited from¶
MicroserviceProperties.logRetentionDays
name¶
name:
string
Defined in: constructs/microservice.ts:69
Service name used for resource naming and identification
Inherited from¶
repositoryURI¶
repositoryURI:
string
Defined in: constructs/microservice.ts:71
ECR repository URI for the container image
Inherited from¶
MicroserviceProperties.repositoryURI
disableService?¶
optionaldisableService:boolean
Defined in: constructs/microservice.ts:73
Skip creating the runtime service (container build only)
Inherited from¶
MicroserviceProperties.disableService
healthCheck?¶
optionalhealthCheck:string
Defined in: constructs/microservice.ts:75
Health check path for the load balancer target group
Inherited from¶
MicroserviceProperties.healthCheck
subnetType?¶
optionalsubnetType:SubnetType
Defined in: constructs/microservice.ts:77
Subnet type for task placement
Inherited from¶
MicroserviceProperties.subnetType
listenerPort?¶
optionallistenerPort:number
Defined in: constructs/microservice.ts:79
ALB listener port (default: 80)
Inherited from¶
MicroserviceProperties.listenerPort
containerPort?¶
optionalcontainerPort:number
Defined in: constructs/microservice.ts:81
Container port the application listens on
Inherited from¶
MicroserviceProperties.containerPort
createLoadBalancer?¶
optionalcreateLoadBalancer:boolean
Defined in: constructs/microservice.ts:83
Whether to create an ALB for this service
Inherited from¶
MicroserviceProperties.createLoadBalancer
enableSLO?¶
optionalenableSLO:boolean
Defined in: constructs/microservice.ts:85
Whether to create Application Signals SLOs