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
chore: Remove web-services infra (#925)
Will Hutchinson3b78d442ac36
diff --git a/.github/workflows/deploy-web-app-dev-push.yml b/.github/workflows/deploy-web-app-dev-push.ymlindex fd388ceaf9..3f4a04e405 100644--- a/.github/workflows/deploy-web-app-dev-push.yml+++ b/.github/workflows/deploy-web-app-dev-push.yml@@ -13,7 +13,6 @@ jobs:runs-on: ubuntu-latestoutputs:web-app: ${{ steps.changes.outputs.web-app }}- web-services: ${{ steps.changes.outputs.web-services }}steps:- uses: actions/checkout@v4- uses: whutchinson98/[email protected]@@ -22,7 +21,6 @@ jobs:token: ${{ GITHUB.TOKEN }}diff: |web-app: ./infra/stacks/web-app/* ./js/app/packages/* ./js/app/package.json- web-services: ./infra/stacks/web-services/*deploy_web_app:needs: [check-to-deploy]if: ${{ needs.check-to-deploy.outputs.web-app == 'true' }}@@ -40,15 +38,3 @@ jobs:DD_WEB_APP_TOKEN: ${{ secrets.DD_WEB_APP_TOKEN }}SEGMENT_WRITE_KEY: ${{ secrets.SEGMENT_WRITE_KEY_PRODUCTION }}NPMRC_GH_TOKEN: ${{ secrets.NPMRC_GH_TOKEN }}-- deploy_web_services:- needs: [check-to-deploy]- if: ${{ needs.check-to-deploy.outputs.web-services == 'true' }}- uses: ./.github/workflows/deploy-web-services.yml- with:- notify: false- environment: dev- secrets:- AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}- AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}- PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}diff --git a/.github/workflows/deploy-web-services.yml b/.github/workflows/deploy-web-services.ymldeleted file mode 100644index df74f8d74e..0000000000--- a/.github/workflows/deploy-web-services.yml+++ /dev/null@@ -1,66 +0,0 @@-name: Deploy Web Services-on:- workflow_dispatch:- inputs:- environment:- required: true- type: choice- options:- - dev- - prod- description: The environment to build for- notify:- required: false- type: boolean- description: Whether to notify the Slack channel of the deployment completion- workflow_call:- inputs:- environment:- required: true- type: string- description: The environment to build for. (dev, prod)- notify:- required: false- type: boolean- secrets:- AWS_ACCESS_KEY:- required: true- AWS_SECRET_ACCESS_KEY:- required: true- PULUMI_ACCESS_TOKEN:- required: true--concurrency:- group: ${{ github.workflow }}-web-services-${{ inputs.environment }}- # We do not want to cancel a deployment if it's in progress. That could lead to a broken deployment.- cancel-in-progress: false--jobs:- deploy:- runs-on: [runs-on,runner=8cpu-linux-x64,hdd=40,spot=lowest-price,ssh=false,"run-id=${{github.run_id}}"]- env:- CI: "true"- steps:- - uses: actions/checkout@v4- - uses: docker/setup-qemu-action@v3- - uses: docker/setup-buildx-action@v3- - uses: aws-actions/configure-aws-credentials@v4- with:- aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}- aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}- aws-region: us-east-1- - name: Setup- uses: ./.github/actions/setup-reqs-web- with:- npm-rc-token: ${{ secrets.NPMRC_GH_TOKEN }}- - name: Install infra dependencies- run: |- cd infra- bun install- - uses: pulumi/actions@v3- with:- command: up- stack-name: macro-inc/${{ inputs.environment }}- work-dir: ./infra/stacks/web-services- env:- PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}diff --git a/infra/bun.lock b/infra/bun.lockindex e5c6654063..5461d1ca12 100644--- a/infra/bun.lock+++ b/infra/bun.lock@@ -118,7 +118,6 @@"name": "fusion-auth","version": "0.0.0",},-"stacks/link-sharing": {"name": "link-sharing-stack","version": "0.0.0",@@ -194,14 +193,6 @@"@pulumi/synced-folder": "^0.11.1",},},- "stacks/web-services": {- "name": "@macro-inc/infra-web-services",- "dependencies": {- "@pulumi/aws": "^6.0.0",- "@pulumi/awsx": "^2.0.2",- "@pulumi/pulumi": "^3.0.0",- },- },},"overrides": {"ts-node": "10.8.0",@@ -299,8 +290,6 @@"@macro-inc/infra-web-app": ["@macro-inc/infra-web-app@workspace:stacks/web-app"],- "@macro-inc/infra-web-services": ["@macro-inc/infra-web-services@workspace:stacks/web-services"],-"@npmcli/agent": ["@npmcli/[email protected]", "", { "dependencies": { "agent-base": "^7.1.0", "http-proxy-agent": "^7.0.0", "https-proxy-agent": "^7.0.1", "lru-cache": "^10.0.1", "socks-proxy-agent": "^8.0.3" } }, "sha512-OrcNPXdpSl9UX7qPVRWbmWMCSXrcDa2M9DvrbOTj7ao1S4PlqVFYv9/yLKMkrJKZ/V5A/kDBC690or307i26Og=="],"@npmcli/arborist": ["@npmcli/[email protected]", "", { "dependencies": { "@isaacs/string-locale-compare": "^1.1.0", "@npmcli/fs": "^3.1.1", "@npmcli/installed-package-contents": "^2.1.0", "@npmcli/map-workspaces": "^3.0.2", "@npmcli/metavuln-calculator": "^7.1.1", "@npmcli/name-from-folder": "^2.0.0", "@npmcli/node-gyp": "^3.0.0", "@npmcli/package-json": "^5.1.0", "@npmcli/query": "^3.1.0", "@npmcli/redact": "^2.0.0", "@npmcli/run-script": "^8.1.0", "bin-links": "^4.0.4", "cacache": "^18.0.3", "common-ancestor-path": "^1.0.1", "hosted-git-info": "^7.0.2", "json-parse-even-better-errors": "^3.0.2", "json-stringify-nice": "^1.1.4", "lru-cache": "^10.2.2", "minimatch": "^9.0.4", "nopt": "^7.2.1", "npm-install-checks": "^6.2.0", "npm-package-arg": "^11.0.2", "npm-pick-manifest": "^9.0.1", "npm-registry-fetch": "^17.0.1", "pacote": "^18.0.6", "parse-conflict-json": "^3.0.0", "proc-log": "^4.2.0", "proggy": "^2.0.0", "promise-all-reject-late": "^1.0.0", "promise-call-limit": "^3.0.1", "read-package-json-fast": "^3.0.2", "semver": "^7.3.7", "ssri": "^10.0.6", "treeverse": "^3.0.0", "walk-up-path": "^3.0.1" }, "bin": { "arborist": "bin/index.js" } }, "sha512-nWtIc6QwwoUORCRNzKx4ypHqCk3drI+5aeYdMTQQiRCcn4lOOgfQh7WyZobGYTxXPSq1VwV53lkpN/BRlRk08g=="],@@ -709,7 +698,6 @@"ini": ["[email protected]", "", {}, "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA=="],-"ip-address": ["[email protected]", "", { "dependencies": { "jsbn": "1.1.0", "sprintf-js": "^1.1.3" } }, "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g=="],"is-core-module": ["[email protected]", "", { "dependencies": { "hasown": "^2.0.2" } }, "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w=="],@@ -1062,10 +1050,6 @@"@macro-inc/infra-web-app/@pulumi/aws-native": ["@pulumi/[email protected]", "", { "dependencies": { "@pulumi/pulumi": "^3.142.0" } }, "sha512-XvxGif8qkZethAaVivsD+TmCsal22Ws8f9zkj+sz03KdsCX7gnjs4WcqYCCdh6e1vmD0kn9v751BD2eFRWUVJQ=="],- "@macro-inc/infra-web-services/@pulumi/aws": ["@pulumi/[email protected]", "", { "dependencies": { "@pulumi/pulumi": "^3.142.0", "mime": "^2.0.0" } }, "sha512-c9HJiBKwgGWJg8h/mWWyfM7IguDsqzupf/WPD1fsosB1oMCuSoDHr27MxW9DQl6DXnkZRWnWYUIh31Gearwp3Q=="],-- "@macro-inc/infra-web-services/@pulumi/awsx": ["@pulumi/[email protected]", "", { "dependencies": { "@aws-sdk/client-ecs": "^3.405.0", "@pulumi/aws": "^6.66.2", "@pulumi/docker": "^4.6.0", "@pulumi/docker-build": "^0.0.8", "@pulumi/pulumi": "^3.142.0", "@types/aws-lambda": "^8.10.23", "docker-classic": "npm:@pulumi/[email protected]", "mime": "^2.0.0" } }, "sha512-3kUE1J5r+BS25QqL2tQq7mfuCP1CAzGRHUKl+IIl4fQ1K5crI2W7r/FIHfmWResFlBWu5ekS5IfM9fvUHg5ATA=="],-"@npmcli/git/ini": ["[email protected]", "", {}, "sha512-X7rqawQBvfdjS10YU1y1YVreA3SsLrW9dX2CewP2EbBJM4ypVNLDkO5y04gejPwKIY9lR+7r9gn3rFPt/kmWFg=="],"@opentelemetry/instrumentation-grpc/@opentelemetry/semantic-conventions": ["@opentelemetry/[email protected]", "", {}, "sha512-sAay1RrB+ONOem0OZanAR1ZI/k7yDpnOQSQmTMuGImUQb2y8EbSaCJ94FQluM74xoU03vlb2d2U90hZluL6nQg=="],@@ -1134,14 +1118,6 @@"@macro-inc/infra-web-app/@pulumi/aws-native/@pulumi/pulumi": ["@pulumi/[email protected]", "", { "dependencies": { "@grpc/grpc-js": "^1.10.1", "@logdna/tail-file": "^2.0.6", "@npmcli/arborist": "^7.3.1", "@opentelemetry/api": "^1.9", "@opentelemetry/exporter-zipkin": "^1.28", "@opentelemetry/instrumentation": "^0.55", "@opentelemetry/instrumentation-grpc": "^0.55", "@opentelemetry/resources": "^1.28", "@opentelemetry/sdk-trace-base": "^1.28", "@opentelemetry/sdk-trace-node": "^1.28", "@types/google-protobuf": "^3.15.5", "@types/semver": "^7.5.6", "@types/tmp": "^0.2.6", "execa": "^5.1.0", "fdir": "^6.1.1", "google-protobuf": "^3.21.4", "got": "^11.8.6", "ini": "^2.0.0", "js-yaml": "^3.14.0", "minimist": "^1.2.6", "normalize-package-data": "^6.0.0", "picomatch": "^3.0.1", "pkg-dir": "^7.0.0", "require-from-string": "^2.0.1", "semver": "^7.5.2", "source-map-support": "^0.5.6", "tmp": "^0.2.4", "upath": "^1.1.0" }, "peerDependencies": { "ts-node": ">= 7.0.1 < 12", "typescript": ">= 3.8.3 < 6" }, "optionalPeers": ["ts-node", "typescript"] }, "sha512-xTiAcs7LhVOK2mUvTCUOlS7tTtzSh0T+C9pOAOkbpJuAX0GKw+wg7PZZ3qQbqW63fGfCBHs7h27e9d9iyHEC/w=="],- "@macro-inc/infra-web-services/@pulumi/aws/@pulumi/pulumi": ["@pulumi/[email protected]", "", { "dependencies": { "@grpc/grpc-js": "^1.10.1", "@logdna/tail-file": "^2.0.6", "@npmcli/arborist": "^7.3.1", "@opentelemetry/api": "^1.9", "@opentelemetry/exporter-zipkin": "^1.28", "@opentelemetry/instrumentation": "^0.55", "@opentelemetry/instrumentation-grpc": "^0.55", "@opentelemetry/resources": "^1.28", "@opentelemetry/sdk-trace-base": "^1.28", "@opentelemetry/sdk-trace-node": "^1.28", "@types/google-protobuf": "^3.15.5", "@types/semver": "^7.5.6", "@types/tmp": "^0.2.6", "execa": "^5.1.0", "fdir": "^6.1.1", "google-protobuf": "^3.21.4", "got": "^11.8.6", "ini": "^2.0.0", "js-yaml": "^3.14.0", "minimist": "^1.2.6", "normalize-package-data": "^6.0.0", "picomatch": "^3.0.1", "pkg-dir": "^7.0.0", "require-from-string": "^2.0.1", "semver": "^7.5.2", "source-map-support": "^0.5.6", "tmp": "^0.2.4", "upath": "^1.1.0" }, "peerDependencies": { "ts-node": ">= 7.0.1 < 12", "typescript": ">= 3.8.3 < 6" }, "optionalPeers": ["ts-node", "typescript"] }, "sha512-xTiAcs7LhVOK2mUvTCUOlS7tTtzSh0T+C9pOAOkbpJuAX0GKw+wg7PZZ3qQbqW63fGfCBHs7h27e9d9iyHEC/w=="],-- "@macro-inc/infra-web-services/@pulumi/awsx/@pulumi/aws": ["@pulumi/[email protected]", "", { "dependencies": { "@pulumi/pulumi": "^3.142.0", "mime": "^2.0.0" } }, "sha512-5RjRSAhgKycoNIm8ButuFr7m5m6i/0kYxb9ew61ra3JtJdx6KmwQGPrZ/sY/ktR42Hw/F5P8qBudSq3NkqVo2g=="],-- "@macro-inc/infra-web-services/@pulumi/awsx/@pulumi/docker-build": ["@pulumi/[email protected]", "", { "dependencies": { "@pulumi/pulumi": "^3.136.0" } }, "sha512-tS6UUgmDjQ+LVekMXGC/6ND7riY75h3oO9fLiVOrvNafCBumxK+Cjm6ZZ9tUChLYvw6H+rZRExZEhfC8F/SQgQ=="],-- "@macro-inc/infra-web-services/@pulumi/awsx/@pulumi/pulumi": ["@pulumi/[email protected]", "", { "dependencies": { "@grpc/grpc-js": "^1.10.1", "@logdna/tail-file": "^2.0.6", "@npmcli/arborist": "^7.3.1", "@opentelemetry/api": "^1.9", "@opentelemetry/exporter-zipkin": "^1.28", "@opentelemetry/instrumentation": "^0.55", "@opentelemetry/instrumentation-grpc": "^0.55", "@opentelemetry/resources": "^1.28", "@opentelemetry/sdk-trace-base": "^1.28", "@opentelemetry/sdk-trace-node": "^1.28", "@opentelemetry/semantic-conventions": "^1.28", "@pulumi/query": "^0.3.0", "@types/google-protobuf": "^3.15.5", "@types/semver": "^7.5.6", "@types/tmp": "^0.2.6", "execa": "^5.1.0", "fdir": "^6.1.1", "google-protobuf": "^3.5.0", "got": "^11.8.6", "ini": "^2.0.0", "js-yaml": "^3.14.0", "minimist": "^1.2.6", "normalize-package-data": "^6.0.0", "picomatch": "^3.0.1", "pkg-dir": "^7.0.0", "require-from-string": "^2.0.1", "semver": "^7.5.2", "source-map-support": "^0.5.6", "tmp": "^0.2.1", "upath": "^1.1.0" }, "peerDependencies": { "ts-node": ">= 7.0.1 < 12", "typescript": ">= 3.8.3 < 6" }, "optionalPeers": ["ts-node", "typescript"] }, "sha512-5tBGauFC6rAiB5I8Ug6kHBNB1YNmLANT1yy2pXwyMMWXmFc1++sYrZ2QDyVf0cJVtXdFhqw1kw/CxdV4YCHi0Q=="],-"@pulumi/aws-native/@pulumi/pulumi/js-yaml": ["[email protected]", "", { "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" }, "bin": { "js-yaml": "bin/js-yaml.js" } }, "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g=="],"@pulumi/aws-native/@pulumi/pulumi/tmp": ["[email protected]", "", {}, "sha512-nZD7m9iCPC5g0pYmcaxogYKggSfLsdxl8of3Q/oIbqCqLLIO9IAF0GWjX1z9NZRHPiXv8Wex4yDCaZsgEw0Y8w=="],@@ -1187,11 +1163,5 @@"@macro-inc/infra-web-app/@pulumi/aws-native/@pulumi/pulumi/js-yaml": ["[email protected]", "", { "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" }, "bin": { "js-yaml": "bin/js-yaml.js" } }, "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g=="],"@macro-inc/infra-web-app/@pulumi/aws/@pulumi/pulumi/js-yaml": ["[email protected]", "", { "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" }, "bin": { "js-yaml": "bin/js-yaml.js" } }, "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g=="],-- "@macro-inc/infra-web-services/@pulumi/aws/@pulumi/pulumi/js-yaml": ["[email protected]", "", { "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" }, "bin": { "js-yaml": "bin/js-yaml.js" } }, "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g=="],-- "@macro-inc/infra-web-services/@pulumi/awsx/@pulumi/pulumi/js-yaml": ["[email protected]", "", { "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" }, "bin": { "js-yaml": "bin/js-yaml.js" } }, "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g=="],-- "@macro-inc/infra-web-services/@pulumi/awsx/@pulumi/pulumi/tmp": ["[email protected]", "", {}, "sha512-nZD7m9iCPC5g0pYmcaxogYKggSfLsdxl8of3Q/oIbqCqLLIO9IAF0GWjX1z9NZRHPiXv8Wex4yDCaZsgEw0Y8w=="],}}diff --git a/infra/stacks/web-services/.gitignore b/infra/stacks/web-services/.gitignoredeleted file mode 100644index c6958891dd..0000000000--- a/infra/stacks/web-services/.gitignore+++ /dev/null@@ -1,2 +0,0 @@-/bin/-/node_modules/diff --git a/infra/stacks/web-services/Pulumi.dev.yaml b/infra/stacks/web-services/Pulumi.dev.yamldeleted file mode 100644index a121c9e729..0000000000--- a/infra/stacks/web-services/Pulumi.dev.yaml+++ /dev/null@@ -1,3 +0,0 @@-config:- macro-app-infra:jwt_secret_key:- secure: AAABAJEOPon+PTos5KilLwwrLa2FPfCcYdVAeb9xx3EbYvZeul4BywI/ud2KaA8liLk6+IFDvvfKC6IGYarN8A==diff --git a/infra/stacks/web-services/Pulumi.prod.yaml b/infra/stacks/web-services/Pulumi.prod.yamldeleted file mode 100644index e9d7c34d3f..0000000000--- a/infra/stacks/web-services/Pulumi.prod.yaml+++ /dev/null@@ -1,3 +0,0 @@-config:- macro-app-infra:jwt_secret_key:- secure: AAABAFwWmQjd6/0e4m5vU3nkp2wGJV9OMBIP1s0EVhcO9Z6CVZGMqWedzhUBVjxHQFZtXlO7vAFFnCyUDAHK9A==diff --git a/infra/stacks/web-services/Pulumi.yaml b/infra/stacks/web-services/Pulumi.yamldeleted file mode 100644index 73bd236b90..0000000000--- a/infra/stacks/web-services/Pulumi.yaml+++ /dev/null@@ -1,5 +0,0 @@-name: macro-app-infra-runtime: nodejs-description: Core infrastructure for macro web app-config:- aws:region: us-east-1diff --git a/infra/stacks/web-services/README.md b/infra/stacks/web-services/README.mddeleted file mode 100644index b1b8d7de48..0000000000--- a/infra/stacks/web-services/README.md+++ /dev/null@@ -1,73 +0,0 @@-# AWS ECS Deployment with Pulumi--This project uses [Pulumi](https://www.pulumi.com/) with TypeScript to deploy containerized applications (`docx-server` and `pdf-server`) to AWS Elastic Container Service (ECS) and expose them via Application Load Balancers (ALBs).--## Prerequisites--Before you begin, ensure you have the following installed:--- [Node.js](https://nodejs.org/)-- [Pulumi](https://www.pulumi.com/docs/get-started/install/)-- [AWS CLI](https://aws.amazon.com/cli/) configured with your AWS account--## Project Structure--- `index.ts`: The main Pulumi program file that defines the infrastructure as code.-- `Dockerfile` for `docx-server`: Located at `../docx-server/Dockerfile`.-- `Dockerfile` for `pdf-server`: Located at `../pdf-server/pdfreader/Dockerfile`.--## Setup and Deployment--1. **Clone the repository**-- Start by cloning this repository to your local machine.-2. **Install dependencies**-- Navigate to the project directory and install the necessary NPM packages:-- ```bash- yarn install- ```--# Deploying Manually:--### Step 1: Create a Load Balancer--1. **Navigate to the EC2 Dashboard** in the AWS Management Console.-2. **Go to Load Balancers** under the "Load Balancing" section and click **Create Load Balancer**.-3. Choose **Application Load Balancer** or **Network Load Balancer** depending on your needs. Application Load Balancers are well-suited for HTTP/HTTPS applications.-4. **Configure the Load Balancer**:- - Name your load balancer.- - Select internet-facing.- - Choose the VPC where your ECS tasks are running.- - Select at least two availability zones and subnets (ensure these subnets are public if you want the service to be accessible from the internet).-5. **Configure Security Groups** for your load balancer to allow inbound traffic on the ports you need (e.g., 80 for HTTP or 443 for HTTPS).-6. **Configure Routing**:- - Create a new target group.- - Choose the target type as IP addresses (since Fargate uses IP-based targeting).- - Set protocol and port according to your application (e.g., HTTP on port 80).- - Define health checks for your service.-7. **Register Targets**: Skip this step during creation since ECS will manage this part.-8. **Review and Create** the load balancer.--### Step 2: Update ECS Service to Use the Load Balancer--1. **Navigate to the ECS Dashboard** and select your cluster.-2. **Find your service** and click **Update**.-3. In the **Load Balancing** section of the service configuration:- - Choose the load balancer you created.- - Under the load balancer settings, for each container that needs to be accessible, specify the container name and the container port to forward traffic to. Associate it with the target group you created.-4. **Review and update the service**. ECS will redeploy tasks as needed to apply these changes.--### Step 3: Task Definition Networking Configuration--Ensure your task definition's network mode is set to **awsvpc** to allow Fargate tasks to be associated with a network interface.--- If creating a new revision of your task definition, choose the **awsvpc** network mode.-- Specify the task execution IAM role that has permissions to interact with networking resources.--### Step 4: DNS and Service Access--Once your service is updated and tasks are running:--- The **DNS name of the load balancer** can be found in the EC2 Dashboard under the "Load Balancers" section. This DNS name is what you'll use to access your service publicly.diff --git a/infra/stacks/web-services/index.ts b/infra/stacks/web-services/index.tsdeleted file mode 100644index e0ea9475c9..0000000000--- a/infra/stacks/web-services/index.ts+++ /dev/null@@ -1,258 +0,0 @@-import * as aws from '@pulumi/aws';-import * as awsx from '@pulumi/awsx';-import * as pulumi from '@pulumi/pulumi';-import {- DATADOG_API_KEY,- datadogAgentContainer,- fargateLogRouterSidecarContainer,-} from './resources/datadog';-import { domainResources, route53Record } from './resources/domain';-import { serviceImage } from './resources/image';-import { securityGroups } from './resources/securityGroups';-import { serviceAutoScaling, serviceLoadBalancer } from './resources/service';-import { stack } from './resources/shared';-import { get_coparse_api_vpc } from './resources/vpc';--// Ensure AWS region is specified-aws.config.requireRegion();--if (!process.env.CI && stack === 'prod') {- throw new Error(- 'You are trying to deploy to prod without the CI environment variable set'- );-}--const PDF_SERVICE_ALB_IDLE_TIMEOUT = 1000;--export const vpc = get_coparse_api_vpc();--// Create ECS Cluster-const cluster = new aws.ecs.Cluster(`macro-web-services-${stack}`);--const {- pdfServiceDomain,- docxServiceDomain,- hostedZoneId,- certificateValidation,-} = domainResources(stack);--// ------------------------------------------- DOCX SERVER --------------------------------------------const DOCX_SERVICE_ALB_IDLE_TIMEOUT = 1000;-const docxServicePort = 8080;-const docxServiceName = 'docx-service';--const docxServerImage = serviceImage({- stack,- serviceName: docxServiceName,- dockerfilePath: '../../docx-server/',- platform: 'linux/amd64',-});--const docxServerImageUri = docxServerImage.imageUri;--const docxServiceSecurityGroups = securityGroups({- serviceName: `${docxServiceName}-${stack}`,- vpcId: vpc.vpcId,- serviceContainerPort: docxServicePort,-});--const { serviceLB: docxServiceLB, serviceTargetGroup: docxTargetGroup } =- serviceLoadBalancer({- stack,- serviceName: docxServiceName,- servicePort: docxServicePort,- vpc,- securityGroups: docxServiceSecurityGroups,- healthCheckPath: '/ping-docx',- idleTimeout: DOCX_SERVICE_ALB_IDLE_TIMEOUT, // to allow for longer operations such as compare- certificateValidation,- });--const docxService = new awsx.ecs.FargateService(`${docxServiceName}-${stack}`, {- name: `${docxServiceName}-${stack}`,- cluster: cluster.arn,- networkConfiguration: {- subnets: vpc.privateSubnetIds,- securityGroups: [docxServiceSecurityGroups.serviceSg.id],- },- taskDefinitionArgs: {- containers: {- docx_service: {- name: docxServiceName,- image: docxServerImageUri,- cpu: 4096, // (4 vCPU)- memory: 8192, // 8 GB- essential: true,- environment: [],- logConfiguration: {- logDriver: 'awsfirelens',- options: {- Name: 'datadog',- Host: 'http-intake.logs.us5.datadoghq.com',- apikey: DATADOG_API_KEY,- dd_service: `${docxServiceName}-${stack}`,- dd_source: 'fargate',- dd_tags: 'project:cloudstorage',- provider: 'ecs',- },- },- portMappings: [- {- appProtocol: 'http',- name: `${docxServiceName}-tcp-${stack}`,- hostPort: docxServicePort,- containerPort: docxServicePort,- targetGroup: docxTargetGroup,- },- ],- },- log_router: fargateLogRouterSidecarContainer,- datadog_agent: datadogAgentContainer,- },- },- desiredCount: stack === 'prod' ? 3 : 1,-});--serviceAutoScaling({- stack,- serviceName: docxServiceName,- clusterName: cluster.name,- fargateServiceName: docxService.service.name,- minCapacity: stack === 'prod' ? 3 : 1,- maxCapacity: stack === 'prod' ? 15 : 5,-});--route53Record({- stack,- serviceName: docxServiceName,- hostedZoneId,- serviceDomain: docxServiceDomain,- serviceLB: docxServiceLB,-});--// ------------------------------------------- PDF SERVER --------------------------------------------const pdfServicePort = 4567;-const pdfServiceName = 'pdf-service';--const pdfServerImage = serviceImage({- stack,- serviceName: pdfServiceName,- dockerfilePath: '../../pdf-server/pdfreader/',- platform: 'linux/amd64',-});--export const pdfServerImageUri = pdfServerImage.imageUri;-export const pdfServerImageUrn = pdfServerImage.urn;--const pdfServiceSecurityGroups = securityGroups({- serviceName: `${pdfServiceName}-${stack}`,- vpcId: vpc.vpcId,- serviceContainerPort: pdfServicePort,-});--const { serviceLB: pdfServerLB, serviceTargetGroup: pdfTargetGroup } =- serviceLoadBalancer({- stack,- serviceName: pdfServiceName,- servicePort: pdfServicePort,- vpc,- securityGroups: pdfServiceSecurityGroups,- healthCheckPath: '/ping',- idleTimeout: PDF_SERVICE_ALB_IDLE_TIMEOUT, // to allow for longer operations, such as tested on FAR.pdf- certificateValidation,- });--const pdfService = new awsx.ecs.FargateService(`${pdfServiceName}-${stack}`, {- name: pdfServiceName,- cluster: cluster.arn,- networkConfiguration: {- subnets: vpc.privateSubnetIds,- securityGroups: [pdfServiceSecurityGroups.serviceSg.id],- },- taskDefinitionArgs: {- containers: {- pdf_service: {- name: pdfServiceName,- image: pdfServerImageUri,- cpu: 2048, // (2 vCPU)- memory: 4096, // 4 GB- essential: true,- environment: [- // Sets the max heap size for the service in megabytes- {- name: 'JAVA_OPTS',- // It is recommended to leave at least 10-20% of the available- // system memory for other processes to better avoid Out of- // Memory Exceptions- value: '-Xmx6144m',- },- {- // Maximum number of threads to allow in the pool- name: 'THREAD_MAX',- value: '8',- },- {- // Minimum number of threads to allow in the pool- name: 'THREAD_MIN',- value: '3',- },- {- // Idle timeout for a thread in miliseconds- name: 'THREAD_IDLE_MILLIS',- value: '30000',- },- ],- logConfiguration: {- logDriver: 'awsfirelens',- options: {- Name: 'datadog',- Host: 'http-intake.logs.us5.datadoghq.com',- apikey: DATADOG_API_KEY,- dd_service: `${pdfServiceName}-${stack}`,- dd_source: 'fargate',- dd_tags: 'project:cloudstorage',- provider: 'ecs',- },- },- portMappings: [- {- appProtocol: 'http',- name: `${pdfServiceName}-tcp-${stack}`,- hostPort: pdfServicePort,- containerPort: pdfServicePort,- targetGroup: pdfTargetGroup,- },- ],- },- log_router: fargateLogRouterSidecarContainer,- datadog_agent: datadogAgentContainer,- },- },- desiredCount: stack === 'prod' ? 3 : 1,-});--serviceAutoScaling({- stack,- serviceName: pdfServiceName,- clusterName: cluster.name,- fargateServiceName: pdfService.service.name,- minCapacity: stack === 'prod' ? 3 : 1,- maxCapacity: stack === 'prod' ? 15 : 5,-});--export const pdfFargateServiceName = pdfService.service.name;--// ------------------------------------------- ALIAS STUFF ---------------------------------------------const pdfServiceAliasRecord = route53Record({- stack,- serviceName: pdfServiceName,- hostedZoneId,- serviceDomain: pdfServiceDomain,- serviceLB: pdfServerLB,-});--export const pdfServiceUrl = pulumi.interpolate`https://${pdfServiceDomain}`;-export const docxServiceUrl = pulumi.interpolate`https://${docxServiceDomain}`;--export const pdfServiceAliasRecordName = pdfServiceAliasRecord.name;diff --git a/infra/stacks/web-services/package.json b/infra/stacks/web-services/package.jsondeleted file mode 100644index cf067e3d8a..0000000000--- a/infra/stacks/web-services/package.json+++ /dev/null@@ -1,11 +0,0 @@-{- "name": "@macro-inc/infra-web-services",- "packageManager": "bun",- "private": true,- "main": "index.ts",- "dependencies": {- "@pulumi/aws": "^6.0.0",- "@pulumi/awsx": "^2.0.2",- "@pulumi/pulumi": "^3.0.0"- }-}diff --git a/infra/stacks/web-services/resources/datadog.ts b/infra/stacks/web-services/resources/datadog.tsdeleted file mode 100644index ff56e79e1b..0000000000--- a/infra/stacks/web-services/resources/datadog.ts+++ /dev/null@@ -1,52 +0,0 @@-import * as aws from '@pulumi/aws';--export const DATADOG_API_KEY = aws.secretsmanager- .getSecretVersionOutput({- secretId: 'datadog-api-key',- })- .apply((secret) => secret.secretString);--export const fargateLogRouterSidecarContainer = {- essential: true,- image: 'amazon/aws-for-fluent-bit:latest',- name: 'log_router',- firelensConfiguration: {- type: 'fluentbit',- options: {- 'config-file-type': 'file',- 'config-file-value': '/fluent-bit/configs/parse-json.conf',- 'enable-ecs-log-metadata': 'true',- },- },- environment: [- {- name: 'ECS_FARGATE',- value: 'true',- },- {- name: 'DD_API_KEY',- value: DATADOG_API_KEY,- },- ],- memoryReservation: 50,-};--export const datadogAgentContainer = {- name: 'datadog-agent',- image: 'public.ecr.aws/datadog/agent:latest',- environment: [- {- name: 'ECS_FARGATE',- value: 'true',- },- {- name: 'DD_SITE',- value: 'us5.datadoghq.com',- },- {- name: 'DD_API_KEY',- value: DATADOG_API_KEY,- },- ],- memoryReservation: 256,-};diff --git a/infra/stacks/web-services/resources/domain.ts b/infra/stacks/web-services/resources/domain.tsdeleted file mode 100644index 1d6cb88820..0000000000--- a/infra/stacks/web-services/resources/domain.ts+++ /dev/null@@ -1,92 +0,0 @@-import * as aws from '@pulumi/aws';-import type { ApplicationLoadBalancer } from '@pulumi/awsx/lb';--export function domainResources(stack: string) {- const domain = 'macro.com';- const pdfServiceDomain =- stack === 'dev' ? `pdf-service-dev.${domain}` : `pdf-service.${domain}`;- const docxServiceDomain =- stack === 'dev' ? `docx-service-dev.${domain}` : `docx-service.${domain}`;-- const certificate = new aws.acm.Certificate(- `macro-services-certificate-${stack}`,- {- domainName: pdfServiceDomain,- subjectAlternativeNames: [docxServiceDomain],- validationMethod: 'DNS',- }- );-- const hostedZoneId = aws.route53- .getZone({ name: domain })- .then((zone) => zone.zoneId);-- const pdfServiceValidationRecord = new aws.route53.Record(- `pdf-service-validation-record-${stack}`,- {- name: certificate.domainValidationOptions[0].resourceRecordName,- type: certificate.domainValidationOptions[0].resourceRecordType,- records: [certificate.domainValidationOptions[0].resourceRecordValue],- zoneId: hostedZoneId,- ttl: 60,- }- );-- const docxServiceValidationRecord = new aws.route53.Record(- `docx-service-validation-record-${stack}`,- {- name: certificate.domainValidationOptions[1].resourceRecordName,- type: certificate.domainValidationOptions[1].resourceRecordType,- records: [certificate.domainValidationOptions[1].resourceRecordValue],- zoneId: hostedZoneId,- ttl: 60,- }- );-- const certificateValidation = new aws.acm.CertificateValidation(- `macro-services-certificate-validation-${stack}`,- {- certificateArn: certificate.arn,- validationRecordFqdns: [- pdfServiceValidationRecord.fqdn,- docxServiceValidationRecord.fqdn,- ],- },- { dependsOn: [pdfServiceValidationRecord, docxServiceValidationRecord] }- );- return {- pdfServiceDomain,- docxServiceDomain,- hostedZoneId,- certificateValidation,- };-}--type Route53RecordArgs = {- stack: string;- serviceName: string;- hostedZoneId: Promise<string>;- serviceDomain: string;- serviceLB: ApplicationLoadBalancer;-};--export function route53Record({- stack,- serviceName,- hostedZoneId,- serviceDomain,- serviceLB,-}: Route53RecordArgs) {- return new aws.route53.Record(`${serviceName}-alias-record-${stack}`, {- name: serviceDomain,- type: 'A',- zoneId: hostedZoneId,- aliases: [- {- name: serviceLB.loadBalancer.dnsName,- zoneId: serviceLB.loadBalancer.zoneId,- evaluateTargetHealth: true,- },- ],- });-}diff --git a/infra/stacks/web-services/resources/image.ts b/infra/stacks/web-services/resources/image.tsdeleted file mode 100644index cb05ec99e9..0000000000--- a/infra/stacks/web-services/resources/image.ts+++ /dev/null@@ -1,23 +0,0 @@-import * as awsx from '@pulumi/awsx';--type ServiceImageArgs = {- stack: string;- serviceName: string;- dockerfilePath: string;- platform: string;-};--export function serviceImage({- stack,- serviceName,- dockerfilePath,- platform,-}: ServiceImageArgs) {- const serviceRepo = new awsx.ecr.Repository(`${serviceName}-repo-${stack}`);- const serviceImage = new awsx.ecr.Image(`${serviceName}-image-${stack}`, {- context: dockerfilePath,- platform,- repositoryUrl: serviceRepo.url,- });- return serviceImage;-}diff --git a/infra/stacks/web-services/resources/securityGroups.ts b/infra/stacks/web-services/resources/securityGroups.tsdeleted file mode 100644index 4849641ac3..0000000000--- a/infra/stacks/web-services/resources/securityGroups.ts+++ /dev/null@@ -1,72 +0,0 @@-import * as aws from '@pulumi/aws';-import type { Output } from '@pulumi/pulumi';-import { stack } from './shared';--type SecurityGroupArgs = {- serviceName: string;- vpcId: Output<string> | string;- serviceContainerPort: number;-};--export function securityGroups({- serviceName,- vpcId,- serviceContainerPort,-}: SecurityGroupArgs) {- // Application Load Balancer SG- const serviceAlbSg = new aws.ec2.SecurityGroup(- `${serviceName}-alb-sg-${stack}`,- {- name: `${serviceName}-alb-sg-${stack}`,- description: `${serviceName} application load balancer security group`,- vpcId,- }- );- const serviceSg = new aws.ec2.SecurityGroup(`${serviceName}-sg-${stack}`, {- name: `${serviceName}-sg-${stack}`,- vpcId,- description: `${serviceName} security group that is attached directly to the service`,- });- // Service SG rules- new aws.vpc.SecurityGroupIngressRule(`${serviceName}-alb-in-${stack}`, {- securityGroupId: serviceSg.id,- description: 'Allow inbound traffic from the services ALB',- referencedSecurityGroupId: serviceAlbSg.id,- fromPort: serviceContainerPort,- toPort: serviceContainerPort,- ipProtocol: 'tcp',- });- new aws.vpc.SecurityGroupEgressRule(`${serviceName}-all-out-${stack}`, {- securityGroupId: serviceSg.id,- description: 'Allow all outbound',- cidrIpv4: '0.0.0.0/0',- ipProtocol: '-1',- });- // ALB SG rules- new aws.vpc.SecurityGroupIngressRule(`${serviceName}-http-${stack}`, {- securityGroupId: serviceAlbSg.id,- description: 'Allow inbound HTTP traffic',- cidrIpv4: '0.0.0.0/0',- fromPort: 80,- ipProtocol: 'tcp',- toPort: 80,- });- new aws.vpc.SecurityGroupIngressRule(`${serviceName}-https-${stack}`, {- securityGroupId: serviceAlbSg.id,- description: 'Allow inbound HTTPS traffic',- cidrIpv4: '0.0.0.0/0',- fromPort: 443,- ipProtocol: 'tcp',- toPort: 443,- });- new aws.vpc.SecurityGroupEgressRule(`${serviceName}-out-service-${stack}`, {- description: 'Allow traffic to the service security group',- securityGroupId: serviceAlbSg.id,- referencedSecurityGroupId: serviceSg.id,- fromPort: serviceContainerPort,- ipProtocol: 'tcp',- toPort: serviceContainerPort,- });-- return { serviceAlbSg, serviceSg };-}diff --git a/infra/stacks/web-services/resources/service.ts b/infra/stacks/web-services/resources/service.tsdeleted file mode 100644index 4519b8c41e..0000000000--- a/infra/stacks/web-services/resources/service.ts+++ /dev/null@@ -1,144 +0,0 @@-import * as aws from '@pulumi/aws';-import type { CertificateValidation } from '@pulumi/aws/acm';-import * as awsx from '@pulumi/awsx';-import type { Output } from '@pulumi/pulumi';-import * as pulumi from '@pulumi/pulumi';--type ServiceLoadBalancerArgs = {- stack: string;- serviceName: string;- servicePort: number;- vpc: {- vpcId: Output<string> | string;- publicSubnetIds: Output<string[]> | string[];- privateSubnetIds: Output<string[]> | string[];- };- securityGroups: {- serviceAlbSg: aws.ec2.SecurityGroup;- serviceSg: aws.ec2.SecurityGroup;- };- healthCheckPath: string;- idleTimeout: number;- certificateValidation: CertificateValidation;-};--type ServiceAutoScalingArgs = {- stack: string;- serviceName: string;- clusterName: Output<string>;- fargateServiceName: Output<string>;- minCapacity: number;- maxCapacity: number;-};--export function serviceLoadBalancer({- stack,- serviceName,- servicePort,- vpc,- securityGroups,- healthCheckPath,- idleTimeout,- certificateValidation,-}: ServiceLoadBalancerArgs) {- const serviceTargetGroup = new aws.alb.TargetGroup(- `${serviceName}-tg-${stack}`,- {- name: `${serviceName}-tg-${stack}`,- port: servicePort,- protocol: 'HTTP',- targetType: 'ip',- vpcId: vpc.vpcId,- healthCheck: {- path: healthCheckPath,- protocol: 'HTTP',- },- }- );-- const serviceLB = new awsx.lb.ApplicationLoadBalancer(- `${serviceName}-alb-${stack}`,- {- accessLogs: {- bucket: 'macro-alb-logging',- enabled: stack === 'prod',- prefix: `${serviceName}-${stack}`,- },- internal: true,- subnetIds: vpc.privateSubnetIds,- securityGroups: [securityGroups.serviceAlbSg.id],- idleTimeout,- listener: {- port: 443,- protocol: 'HTTPS',- certificateArn: certificateValidation.certificateArn,- defaultActions: [- {- type: 'forward',- targetGroupArn: serviceTargetGroup.arn,- },- ],- sslPolicy: 'ELBSecurityPolicy-TLS13-1-2-2021-06',- },- }- );- return { serviceLB, serviceTargetGroup };-}--export function serviceAutoScaling({- stack,- serviceName,- clusterName,- fargateServiceName,- minCapacity,- maxCapacity,-}: ServiceAutoScalingArgs) {- // Create a scalable target for the Fargate service to attach the scaling policies.- const serviceScalableTarget = new aws.appautoscaling.Target(- `macro-${serviceName}-service-scalable-target-${stack}`,- {- maxCapacity,- minCapacity,- resourceId: pulumi.interpolate`service/${clusterName}/${fargateServiceName}`,- scalableDimension: 'ecs:service:DesiredCount',- serviceNamespace: 'ecs',- }- );-- // Create an Auto Scaling policy for CPU utilization.- new aws.appautoscaling.Policy(- `macro-${serviceName}-scaling-policy-cpu-${stack}`,- {- policyType: 'TargetTrackingScaling',- resourceId: serviceScalableTarget.resourceId,- scalableDimension: serviceScalableTarget.scalableDimension,- serviceNamespace: serviceScalableTarget.serviceNamespace,- targetTrackingScalingPolicyConfiguration: {- targetValue: 70.0,- predefinedMetricSpecification: {- predefinedMetricType: 'ECSServiceAverageCPUUtilization',- },- scaleInCooldown: 100,- scaleOutCooldown: 300,- },- }- );-- new aws.appautoscaling.Policy(- `macro-${serviceName}-scaling-policy-memory-${stack}`,- {- policyType: 'TargetTrackingScaling',- resourceId: serviceScalableTarget.resourceId,- scalableDimension: serviceScalableTarget.scalableDimension,- serviceNamespace: serviceScalableTarget.serviceNamespace,- targetTrackingScalingPolicyConfiguration: {- targetValue: 70.0,- predefinedMetricSpecification: {- predefinedMetricType: 'ECSServiceAverageMemoryUtilization',- },- scaleInCooldown: 100,- scaleOutCooldown: 300,- },- }- );-}diff --git a/infra/stacks/web-services/resources/shared.ts b/infra/stacks/web-services/resources/shared.tsdeleted file mode 100644index 615b961cd3..0000000000--- a/infra/stacks/web-services/resources/shared.ts+++ /dev/null@@ -1,22 +0,0 @@-import * as aws from '@pulumi/aws';-import * as pulumi from '@pulumi/pulumi';--// eslint-disable-next-line @typescript-eslint/no-non-null-assertion-export const awsRegion = aws.config.region!;-if (!awsRegion) {- throw new Error('AWS region not specified');-}--export const project = pulumi.getProject();-export const stack = pulumi.getStack();--export const config = new pulumi.Config();--export const MACRO_ORG_NAME = 'macro-inc';-export const BASE_DOMAIN = 'macro.com';--export const MACRO_SUBDOMAIN_CERT =- 'arn:aws:acm:us-east-1:569036502058:certificate/a75b1b07-534c-44e1-b59b-fa5f74fd8069';--export const CLOUD_TRAIL_SNS_TOPIC_ARN =- 'arn:aws:sns:us-east-1:569036502058:CloudTrailSNS';diff --git a/infra/stacks/web-services/resources/vpc.ts b/infra/stacks/web-services/resources/vpc.tsdeleted file mode 100644index cce486b5f2..0000000000--- a/infra/stacks/web-services/resources/vpc.ts+++ /dev/null@@ -1,58 +0,0 @@-import * as pulumi from '@pulumi/pulumi';-import { stack } from './shared';--const MACRO_ORG_NAME = 'macro-inc';-const PULUMI_NETWORKING_STACK = 'macro-core-networking';-const networkingStack = new pulumi.StackReference('vpc-stack', {- name: `${MACRO_ORG_NAME}/${PULUMI_NETWORKING_STACK}/${stack}`,-});--export function get_vpc() {- return {- vpcId: networkingStack.getOutput('vpcId').apply((v) => v as string),- privateSubnetIds: networkingStack- .getOutput('privateSubnetIds')- .apply((v) => v as string[]),- publicSubnetIds: networkingStack- .getOutput('publicSubnetIds')- .apply((v) => v as string[]),- };-}--const LEGACY_PRIVATE_SUBNETS = [- {- name: 'private-subnet3',- value: 'subnet-03c3753c5342f434e',- az: 'us-east-1c',- },- {- name: 'private-subnet4',- value: 'subnet-0e2530cd19536fe10',- az: 'us-east-1b',- },- {- name: 'private-subnet6',- value: 'subnet-0306dce66c915072a',- az: 'us-east-1a',- },-];--export function get_coparse_api_vpc() {- return {- vpcId: 'vpc-0c7510191d4fc9263',- privateSubnetIds: LEGACY_PRIVATE_SUBNETS.map((n) => n.value),- publicSubnetIds: [- 'subnet-0911c0ebea104055d', // CoparseApiOrganizationVPCStack/coparse-api-vpc/public-dataSubnet1- 'subnet-0269c74c37f76ddab', // CoparseApiOrganizationVPCStack/coparse-api-vpc/public-dataSubnet2- 'subnet-042a406ca5480af5d', // public-subnet3- ],- };-}--export function coparse_api_vpc_filtered_subnets(az: string[]) {- const result = LEGACY_PRIVATE_SUBNETS.filter((n) => az.includes(n.az));- if (result.length === 0) {- throw new Error('no valid subnets after filter');- }- return result.map((n) => n.value);-}diff --git a/infra/stacks/web-services/tsconfig.json b/infra/stacks/web-services/tsconfig.jsondeleted file mode 100644index ab65afa613..0000000000--- a/infra/stacks/web-services/tsconfig.json+++ /dev/null@@ -1,18 +0,0 @@-{- "compilerOptions": {- "strict": true,- "outDir": "bin",- "target": "es2016",- "module": "commonjs",- "moduleResolution": "node",- "sourceMap": true,- "experimentalDecorators": true,- "pretty": true,- "noFallthroughCasesInSwitch": true,- "noImplicitReturns": true,- "forceConsistentCasingInFileNames": true- },- "files": [- "index.ts"- ]-}diff --git a/js/app/packages/core/constant/servers.ts b/js/app/packages/core/constant/servers.tsindex 8db33acc26..76915a2ee1 100644--- a/js/app/packages/core/constant/servers.ts+++ b/js/app/packages/core/constant/servers.ts@@ -1,6 +1,5 @@const serverHostLocal: Servers = {'auth-service': 'http://localhost:8084',- 'docx-service': 'http://localhost:34512','pdf-service': 'http://localhost:4567','document-storage-service': 'http://localhost:8083','organization-service': 'todo',@@ -23,7 +22,6 @@ const devServerSuffix = import.meta.env.MODE === 'development' ? '-dev' : '';const serverHostRemote = {'auth-service': `https://auth-service${devServerSuffix}.macro.com`,- 'docx-service': `https://docx-service${devServerSuffix}.macro.com`,'pdf-service': `https://pdf-service${devServerSuffix}.macro.com`,'document-storage-service': `https://cloud-storage${devServerSuffix}.macro.com`,'websocket-service': `wss://services${devServerSuffix}.macro.com`,