Skip to content

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?

optional tags: object

Defined in: constructs/microservice.ts:65

Resource tags applied to all child constructs

Index Signature

[key: string]: string


securityGroup?

optional securityGroup: ISecurityGroup

Defined in: constructs/microservice.ts:67

Security group for the service's network interface


vpc?

optional vpc: IVpc

Defined in: constructs/microservice.ts:69

VPC for network placement


eksCluster?

optional eksCluster: ICluster

Defined in: constructs/microservice.ts:71

EKS cluster (required when hostType is EKS)


ecsCluster?

optional ecsCluster: ICluster

Defined in: constructs/microservice.ts:73

ECS cluster (required when hostType is ECS)


logRetentionDays?

optional logRetentionDays: 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?

optional disableService: boolean

Defined in: constructs/microservice.ts:81

Skip creating the runtime service (container build only)


healthCheck?

optional healthCheck: string

Defined in: constructs/microservice.ts:83

Health check path for the load balancer target group


subnetType?

optional subnetType: SubnetType

Defined in: constructs/microservice.ts:85

Subnet type for task placement


listenerPort?

optional listenerPort: number

Defined in: constructs/microservice.ts:87

ALB listener port (default: 80)


containerPort?

optional containerPort: number

Defined in: constructs/microservice.ts:89

Container port the application listens on


createLoadBalancer?

optional createLoadBalancer: boolean

Defined in: constructs/microservice.ts:91

Whether to create an ALB for this service


enableSLO?

optional enableSLO: boolean

Defined in: constructs/microservice.ts:93

Whether to create Application Signals SLOs