Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
feat(iac): add circuit breaker and timeout to service deployments (#3582)
Will Hutchinson17557f358235
diff --git a/infra/stacks/agent-schedule-service/service.ts b/infra/stacks/agent-schedule-service/service.tsindex 5a377a8f0c..9c023cee99 100644--- a/infra/stacks/agent-schedule-service/service.ts+++ b/infra/stacks/agent-schedule-service/service.ts@@ -221,6 +221,10 @@ export class AgentScheduleService extends pulumi.ComponentResource {subnets: vpc.privateSubnetIds,securityGroups: [serviceSg.id],},+ deploymentCircuitBreaker: {+ enable: true,+ rollback: true,+ },taskDefinitionArgs: {taskRole: {roleArn: this.role.arn,@@ -274,7 +278,9 @@ export class AgentScheduleService extends pulumi.ComponentResource {},desiredCount: 1,},- { parent: this }+ {+ parent: this,+ });this.setupAutoScaling();diff --git a/infra/stacks/authentication-service/service.ts b/infra/stacks/authentication-service/service.tsindex a4ce6d5be6..c4694f2fde 100644--- a/infra/stacks/authentication-service/service.ts+++ b/infra/stacks/authentication-service/service.ts@@ -212,6 +212,10 @@ export class AuthenticationService extends pulumi.ComponentResource {subnets: vpc.privateSubnetIds,securityGroups: [this.serviceSg.id],},+ deploymentCircuitBreaker: {+ enable: true,+ rollback: true,+ },taskDefinitionArgs: {taskRole: {roleArn: this.role.arn,@@ -267,7 +271,9 @@ export class AuthenticationService extends pulumi.ComponentResource {},desiredCount: 1,},- { parent: this }+ {+ parent: this,+ });this.service = service;diff --git a/infra/stacks/cloud-storage-service/cloud-storage-service.ts b/infra/stacks/cloud-storage-service/cloud-storage-service.tsindex 91eddd7bbd..83c763d787 100644--- a/infra/stacks/cloud-storage-service/cloud-storage-service.ts+++ b/infra/stacks/cloud-storage-service/cloud-storage-service.ts@@ -314,6 +314,10 @@ export class CloudStorageService extends pulumi.ComponentResource {subnets: vpc.privateSubnetIds,securityGroups: [this.serviceSg.id],},+ deploymentCircuitBreaker: {+ enable: true,+ rollback: true,+ },taskDefinitionArgs: {taskRole: {roleArn: this.role.arn,@@ -362,7 +366,9 @@ export class CloudStorageService extends pulumi.ComponentResource {},desiredCount: stack === 'prod' ? 3 : 1,},- { parent: this }+ {+ parent: this,+ });this.service = service;diff --git a/infra/stacks/connection-gateway/connection_gateway.ts b/infra/stacks/connection-gateway/connection_gateway.tsindex 13ffafea4d..fac6f338fd 100644--- a/infra/stacks/connection-gateway/connection_gateway.ts+++ b/infra/stacks/connection-gateway/connection_gateway.ts@@ -182,6 +182,10 @@ export class ConnectionGateway extends pulumi.ComponentResource {subnets: vpc.privateSubnetIds,securityGroups: [this.serviceSg.id],},+ deploymentCircuitBreaker: {+ enable: true,+ rollback: true,+ },taskDefinitionArgs: {taskRole: {roleArn: this.role.arn,@@ -230,7 +234,9 @@ export class ConnectionGateway extends pulumi.ComponentResource {},desiredCount: stack === 'prod' ? 3 : 1,},- { parent: this }+ {+ parent: this,+ });this.service = service;diff --git a/infra/stacks/contacts-service/service.ts b/infra/stacks/contacts-service/service.tsindex a38bcc1a20..58a1a95cec 100644--- a/infra/stacks/contacts-service/service.ts+++ b/infra/stacks/contacts-service/service.ts@@ -189,6 +189,10 @@ export class ContactsService extends pulumi.ComponentResource {subnets: vpc.privateSubnetIds,securityGroups: [this.serviceSg.id],},+ deploymentCircuitBreaker: {+ enable: true,+ rollback: true,+ },taskDefinitionArgs: {taskRole: {roleArn: this.role.arn,@@ -247,7 +251,9 @@ export class ContactsService extends pulumi.ComponentResource {},desiredCount: 1,},- { parent: this }+ {+ parent: this,+ });this.service = service;diff --git a/infra/stacks/convert-service/service.ts b/infra/stacks/convert-service/service.tsindex 3ea259a126..f16d0c8a64 100644--- a/infra/stacks/convert-service/service.ts+++ b/infra/stacks/convert-service/service.ts@@ -213,6 +213,10 @@ export class ConvertService extends pulumi.ComponentResource {subnets: vpc.privateSubnetIds,securityGroups: [this.serviceSg.id],},+ deploymentCircuitBreaker: {+ enable: true,+ rollback: true,+ },taskDefinitionArgs: {taskRole: {roleArn: this.role.arn,@@ -267,7 +271,9 @@ export class ConvertService extends pulumi.ComponentResource {},desiredCount: 1,},- { parent: this }+ {+ parent: this,+ });this.service = service;diff --git a/infra/stacks/document-cognition-service/document-cognition-service.ts b/infra/stacks/document-cognition-service/document-cognition-service.tsindex 5625ff4925..d869789e74 100644--- a/infra/stacks/document-cognition-service/document-cognition-service.ts+++ b/infra/stacks/document-cognition-service/document-cognition-service.ts@@ -230,6 +230,10 @@ export class DocumentCognitionService extends pulumi.ComponentResource {subnets: vpc.privateSubnetIds,securityGroups: [this.serviceSg.id],},+ deploymentCircuitBreaker: {+ enable: true,+ rollback: true,+ },taskDefinitionArgs: {taskRole: {roleArn: this.role.arn,@@ -278,7 +282,9 @@ export class DocumentCognitionService extends pulumi.ComponentResource {},desiredCount: stack === 'prod' ? 4 : 1,},- { parent: this }+ {+ parent: this,+ });this.service = service;diff --git a/infra/stacks/email-service/pubsub_workers.ts b/infra/stacks/email-service/pubsub_workers.tsindex 44996c2a36..72c9afada6 100644--- a/infra/stacks/email-service/pubsub_workers.ts+++ b/infra/stacks/email-service/pubsub_workers.ts@@ -87,6 +87,10 @@ export class EmailPubSubWorkers extends pulumi.ComponentResource {subnets: vpc.privateSubnetIds,securityGroups: [this.serviceSg.id],},+ deploymentCircuitBreaker: {+ enable: true,+ rollback: true,+ },taskDefinitionArgs: {taskRole: {roleArn: this.role.arn,@@ -127,7 +131,9 @@ export class EmailPubSubWorkers extends pulumi.ComponentResource {},desiredCount: stack === 'prod' ? 5 : 1,},- { parent: this }+ {+ parent: this,+ });this.service = service;diff --git a/infra/stacks/email-service/service.ts b/infra/stacks/email-service/service.tsindex 082d621950..9cda6d310e 100644--- a/infra/stacks/email-service/service.ts+++ b/infra/stacks/email-service/service.ts@@ -124,6 +124,10 @@ export class EmailService extends pulumi.ComponentResource {subnets: vpc.privateSubnetIds,securityGroups: [this.serviceSg.id],},+ deploymentCircuitBreaker: {+ enable: true,+ rollback: true,+ },taskDefinitionArgs: {taskRole: {roleArn: this.role.arn,@@ -172,7 +176,9 @@ export class EmailService extends pulumi.ComponentResource {},desiredCount: stack === 'prod' ? 3 : 1,},- { parent: this }+ {+ parent: this,+ });this.service = service;diff --git a/infra/stacks/fusion-auth/fusionauth-service.ts b/infra/stacks/fusion-auth/fusionauth-service.tsindex 2e7ccbf721..7c32ebe9d7 100644--- a/infra/stacks/fusion-auth/fusionauth-service.ts+++ b/infra/stacks/fusion-auth/fusionauth-service.ts@@ -126,6 +126,10 @@ export class FusionAuthService extends pulumi.ComponentResource {subnets: vpc.privateSubnetIds,securityGroups: [this.serviceSg.id],},+ deploymentCircuitBreaker: {+ enable: true,+ rollback: true,+ },taskDefinitionArgs: {taskRole: {roleArn: this.role.arn,@@ -159,7 +163,9 @@ export class FusionAuthService extends pulumi.ComponentResource {},desiredCount: stack === 'prod' ? 2 : 1,},- { parent: this }+ {+ parent: this,+ });this.service = service;diff --git a/infra/stacks/image-proxy-service/image-proxy-service.ts b/infra/stacks/image-proxy-service/image-proxy-service.tsindex 06992dce3c..8a50d6928e 100644--- a/infra/stacks/image-proxy-service/image-proxy-service.ts+++ b/infra/stacks/image-proxy-service/image-proxy-service.ts@@ -175,6 +175,10 @@ export class ImageProxyService extends pulumi.ComponentResource {subnets: vpc.privateSubnetIds,securityGroups: [this.serviceSg.id],},+ deploymentCircuitBreaker: {+ enable: true,+ rollback: true,+ },taskDefinitionArgs: {taskRole: {roleArn: this.role.arn,@@ -223,7 +227,9 @@ export class ImageProxyService extends pulumi.ComponentResource {},desiredCount: 1,},- { parent: this }+ {+ parent: this,+ });this.service = service;diff --git a/infra/stacks/mcp-server/mcp-server.ts b/infra/stacks/mcp-server/mcp-server.tsindex 3f9fc733a7..c7805488a0 100644--- a/infra/stacks/mcp-server/mcp-server.ts+++ b/infra/stacks/mcp-server/mcp-server.ts@@ -228,6 +228,10 @@ export class McpServer extends pulumi.ComponentResource {subnets: vpc.privateSubnetIds,securityGroups: [this.serviceSg.id],},+ deploymentCircuitBreaker: {+ enable: true,+ rollback: true,+ },taskDefinitionArgs: {taskRole: {roleArn: this.role.arn,@@ -276,7 +280,9 @@ export class McpServer extends pulumi.ComponentResource {},desiredCount: 1,},- { parent: this }+ {+ parent: this,+ });this.service = service;diff --git a/infra/stacks/notification-service/service.ts b/infra/stacks/notification-service/service.tsindex 2f80e3e4ee..566662f3e3 100644--- a/infra/stacks/notification-service/service.ts+++ b/infra/stacks/notification-service/service.ts@@ -248,6 +248,10 @@ export class NotificationService extends pulumi.ComponentResource {subnets: vpc.privateSubnetIds,securityGroups: [this.serviceSg.id],},+ deploymentCircuitBreaker: {+ enable: true,+ rollback: true,+ },taskDefinitionArgs: {taskRole: {roleArn: this.role.arn,@@ -302,7 +306,9 @@ export class NotificationService extends pulumi.ComponentResource {},desiredCount: 1,},- { parent: this }+ {+ parent: this,+ });this.service = service;diff --git a/infra/stacks/search-processing-service/service.ts b/infra/stacks/search-processing-service/service.tsindex be8e58e967..e9bb69a871 100644--- a/infra/stacks/search-processing-service/service.ts+++ b/infra/stacks/search-processing-service/service.ts@@ -217,6 +217,10 @@ export class SearchProcessingService extends pulumi.ComponentResource {subnets: vpc.privateSubnetIds,securityGroups: [this.serviceSg.id],},+ deploymentCircuitBreaker: {+ enable: true,+ rollback: true,+ },taskDefinitionArgs: {taskRole: {roleArn: this.role.arn,@@ -265,7 +269,9 @@ export class SearchProcessingService extends pulumi.ComponentResource {},desiredCount: 1,},- { parent: this }+ {+ parent: this,+ });this.service = service;diff --git a/infra/stacks/static-file-service/static-file-service.ts b/infra/stacks/static-file-service/static-file-service.tsindex d7b54cc4ef..8378fcb5c9 100644--- a/infra/stacks/static-file-service/static-file-service.ts+++ b/infra/stacks/static-file-service/static-file-service.ts@@ -596,7 +596,10 @@ export class StaticFileService extends pulumi.ComponentResource {desiredCount: 1,tags: this.tags,},- { parent: this, dependsOn: [sqsPolicy, queueQueue] }+ {+ parent: this,+ dependsOn: [sqsPolicy, queueQueue],+ });this.service = service;diff --git a/infra/stacks/unfurl-service/unfurl-service.ts b/infra/stacks/unfurl-service/unfurl-service.tsindex 55d6a8169c..6e350427af 100644--- a/infra/stacks/unfurl-service/unfurl-service.ts+++ b/infra/stacks/unfurl-service/unfurl-service.ts@@ -145,6 +145,10 @@ export class UnfurlService extends pulumi.ComponentResource {subnets: vpc.privateSubnetIds,securityGroups: [this.serviceSg.id],},+ deploymentCircuitBreaker: {+ enable: true,+ rollback: true,+ },taskDefinitionArgs: {taskRole: {roleArn: this.role.arn,@@ -193,7 +197,9 @@ export class UnfurlService extends pulumi.ComponentResource {},desiredCount: 1,},- { parent: this }+ {+ parent: this,+ });this.service = service;