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