One Observability Workshop v3.0.0
One Observability Workshop / constructs/microservice / MicroserviceProperties
Interface: MicroserviceProperties¶
Defined in: constructs/microservice.ts:59
Common properties shared by all microservice constructs (ECS, EKS, and AgentCore).
Extended by¶
Properties¶
hostType¶
hostType:
HostType
Defined in: constructs/microservice.ts:61
Where the service runs: ECS, EKS, or None (AgentCore)
computeType¶
computeType:
ComputeType
Defined in: constructs/microservice.ts:63
Compute backing: Fargate or EC2
tags?¶
optionaltags:object
Defined in: constructs/microservice.ts:65
Resource tags applied to all child constructs
Index Signature¶
[key: string]: string
securityGroup?¶
optionalsecurityGroup:ISecurityGroup
Defined in: constructs/microservice.ts:67
Security group for the service's network interface
vpc?¶
optionalvpc:IVpc
Defined in: constructs/microservice.ts:69
VPC for network placement
eksCluster?¶
optionaleksCluster:ICluster
Defined in: constructs/microservice.ts:71
EKS cluster (required when hostType is EKS)
ecsCluster?¶
optionalecsCluster:ICluster
Defined in: constructs/microservice.ts:73
ECS cluster (required when hostType is ECS)
logRetentionDays?¶
optionallogRetentionDays:RetentionDays
Defined in: constructs/microservice.ts:75
Default Log Retention
name¶
name:
string
Defined in: constructs/microservice.ts:77
Service name used for resource naming and identification
repositoryURI¶
repositoryURI:
string
Defined in: constructs/microservice.ts:79
ECR repository URI for the container image
disableService?¶
optionaldisableService:boolean
Defined in: constructs/microservice.ts:81
Skip creating the runtime service (container build only)
healthCheck?¶
optionalhealthCheck:string
Defined in: constructs/microservice.ts:83
Health check path for the load balancer target group
subnetType?¶
optionalsubnetType:SubnetType
Defined in: constructs/microservice.ts:85
Subnet type for task placement
listenerPort?¶
optionallistenerPort:number
Defined in: constructs/microservice.ts:87
ALB listener port (default: 80)
containerPort?¶
optionalcontainerPort:number
Defined in: constructs/microservice.ts:89
Container port the application listens on
createLoadBalancer?¶
optionalcreateLoadBalancer:boolean
Defined in: constructs/microservice.ts:91
Whether to create an ALB for this service
enableSLO?¶
optionalenableSLO:boolean
Defined in: constructs/microservice.ts:93
Whether to create Application Signals SLOs