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(ci): add in status check collectors to code check jobs (#135)
Will Hutchinsone70959880cfe
diff --git a/.github/workflows/code-check-cloud-storage.yml b/.github/workflows/code-check-cloud-storage.ymlindex b28dd94b7c..70bbded624 100644--- a/.github/workflows/code-check-cloud-storage.yml+++ b/.github/workflows/code-check-cloud-storage.yml@@ -2,16 +2,29 @@ name: cloud storage code checkon:pull_request:branches: [ 'main' ]- paths:- - 'rust/cloud-storage/**'- - .github/workflows/code-check-cloud-storage.ymlconcurrency:group: code-check-cloud-storage-${{ github.ref }}cancel-in-progress: truejobs:+ path-check:+ runs-on: ubuntu-latest+ outputs:+ should_run: ${{ steps.filter.outputs.should_run }}+ steps:+ - uses: actions/checkout@v4+ - uses: dorny/paths-filter@v3+ id: filter+ with:+ filters: |+ should_run:+ - 'rust/cloud-storage/**'+ - .github/workflows/code-check-cloud-storage.yml+check:+ needs: path-check+ if: needs.path-check.outputs.should_run == 'true' && github.event.pull_request.draft == falseruns-on:[runs-on,@@ -21,7 +34,6 @@ jobs:ssh=false,'run-id=${{github.run_id}}',]- if: github.event.pull_request.draft == falseenv:CARGO_TERM_COLOR: alwaysRUSTFLAGS: "-Dwarnings"@@ -41,6 +53,8 @@ jobs:cargo clippytest:+ needs: path-check+ if: needs.path-check.outputs.should_run == 'true' && github.event.pull_request.draft == falseruns-on:[runs-on,@@ -50,7 +64,6 @@ jobs:ssh=false,'run-id=${{github.run_id}}',]- if: github.event.pull_request.draft == falseservices:postgres:image: postgres:16@@ -90,8 +103,9 @@ jobs:cargo testdiff-check:+ needs: path-check+ if: needs.path-check.outputs.should_run == 'true' && github.event.pull_request.draft == falseruns-on: ubuntu-latest- if: github.event.pull_request.draft == falseoutputs:docx-unzip-handler: ${{ steps.changes.outputs.docx-unzip-handler }}worker-trigger: ${{ steps.changes.outputs.worker-trigger }}@@ -170,3 +184,30 @@ jobs:echo "Code changes detected, but new bootstrap.zip for ${{matrix.service}} not found in PR. Please run: just rust/cloud-storage/${{matrix.service}}/build to build and commit bootstrap.zip. Alternatively you can run just rust/cloud-storage/build_lambads to build all lambdas."exit 1fi++ # Collector job that always runs - use this as the required status check+ status-check:+ name: Cloud Storage Status Check+ if: always()+ needs: [path-check, check, test, diff-check, check-lambdas]+ runs-on: ubuntu-latest+ steps:+ - name: Check job results+ run: |+ echo "path-check: ${{ needs.path-check.result }}"+ echo "check: ${{ needs.check.result }}"+ echo "test: ${{ needs.test.result }}"+ echo "diff-check: ${{ needs.diff-check.result }}"+ echo "check-lambdas: ${{ needs.check-lambdas.result }}"++ # Fail if any job failed (skipped and success are both OK)+ if [[ "${{ needs.path-check.result }}" == "failure" ]] || \+ [[ "${{ needs.check.result }}" == "failure" ]] || \+ [[ "${{ needs.test.result }}" == "failure" ]] || \+ [[ "${{ needs.diff-check.result }}" == "failure" ]] || \+ [[ "${{ needs.check-lambdas.result }}" == "failure" ]]; then+ echo "❌ One or more jobs failed"+ exit 1+ fi++ echo "✅ All jobs passed or were skipped"diff --git a/.github/workflows/code-check-infra.yml b/.github/workflows/code-check-infra.ymlindex d8d087fb6f..4208521516 100644--- a/.github/workflows/code-check-infra.yml+++ b/.github/workflows/code-check-infra.yml@@ -2,28 +2,61 @@ name: infra code checkon:pull_request:branches: [ 'main' ]- paths:- - 'rust/cloud-storage/infra/**'- - .github/workflows/code-check-infra.ymlconcurrency:group: code-check-infra-${{ github.ref }}cancel-in-progress: truejobs:- biome-check:+ path-check:runs-on: ubuntu-latest- if: github.event.pull_request.draft == false+ outputs:+ should_run: ${{ steps.filter.outputs.should_run }}steps:- uses: actions/checkout@v4- - uses: actions/setup-node@v4- with:- node-version: 21+ - uses: dorny/paths-filter@v3+ id: filter+ with:+ filters: |+ should_run:+ - 'infra/**'+ - .github/workflows/code-check-infra.yml++ biome-check:+ needs: path-check+ if: needs.path-check.outputs.should_run == 'true' && github.event.pull_request.draft == false+ name: Biome Check+ runs-on: linux-latest-middy+ steps:+ - name: Checkout Repo+ uses: actions/checkout@v4+ with:+ fetch-depth: 0- name: Setup Biomeuses: biomejs/setup-biome@v2with:- # keep this in sync with package.jsonversion: 2.2.6- name: Run Biome+ working-directory: infra+ run: biome ci --changed --no-errors-on-unmatched++ # Collector job that always runs - use this as the required status check+ status-check:+ name: Infra Status Check+ if: always()+ needs: [path-check, biome-check]+ runs-on: ubuntu-latest+ steps:+ - name: Check job resultsrun: |- biome ci infra+ echo "path-check: ${{ needs.path-check.result }}"+ echo "biome-check: ${{ needs.biome-check.result }}"++ # Fail if any job failed (skipped and success are both OK)+ if [[ "${{ needs.path-check.result }}" == "failure" ]] || \+ [[ "${{ needs.biome-check.result }}" == "failure" ]]; then+ echo "❌ One or more jobs failed"+ exit 1+ fi++ echo "✅ All jobs passed or were skipped"diff --git a/.github/workflows/web-app-check-main.yml b/.github/workflows/web-app-check-main.ymlindex ed86ff2024..0b24a87a5e 100644--- a/.github/workflows/web-app-check-main.yml+++ b/.github/workflows/web-app-check-main.yml@@ -3,21 +3,34 @@ on:pull_request:branches:- main- paths:- - 'js/app/package.json'- - 'js/app/bun.lock'- - 'js/app/bunfig.toml'- - 'js/app/packages/**'- - 'js/app/src/**'- - '.github/actions/setup-reqs-web/**'- - '.github/workflows/web-app-check-main.yml'concurrency:group: ${{ github.workflow }}-${{ github.ref }}-checkcancel-in-progress: truejobs:+ path-check:+ runs-on: ubuntu-latest+ outputs:+ should_run: ${{ steps.filter.outputs.should_run }}+ steps:+ - uses: actions/checkout@v4+ - uses: dorny/paths-filter@v3+ id: filter+ with:+ filters: |+ should_run:+ - 'js/app/package.json'+ - 'js/app/bun.lock'+ - 'js/app/bunfig.toml'+ - 'js/app/packages/**'+ - 'js/app/src/**'+ - '.github/actions/setup-reqs-web/**'+ - '.github/workflows/web-app-check-main.yml'+typescript:+ needs: path-check+ if: needs.path-check.outputs.should_run == 'true'name: Typecheckruns-on: linux-latest-beefysteps:@@ -34,6 +47,8 @@ jobs:bun run --bun --silent tsc --project ./packages/app/tsconfig.jsonbiome-check:+ needs: path-check+ if: needs.path-check.outputs.should_run == 'true'name: Biome Checkruns-on: linux-latest-middysteps:@@ -50,6 +65,8 @@ jobs:run: biome ci --changed --no-errors-on-unmatchedtailwind:+ needs: path-check+ if: needs.path-check.outputs.should_run == 'true'name: Theme Hygiene Inspectorruns-on: linux-latest-middysteps:@@ -64,6 +81,8 @@ jobs:run: bun run check-tailwindtest:+ needs: path-check+ if: needs.path-check.outputs.should_run == 'true'name: Testruns-on: linux-latest-middysteps:@@ -76,6 +95,8 @@ jobs:run: bunx vitestcycles:+ needs: path-check+ if: needs.path-check.outputs.should_run == 'true'name: Cycles Import Checkruns-on: linux-latest-middysteps:@@ -90,6 +111,8 @@ jobs:run: biome lint --changed --no-errors-on-unmatched --only=nursery/noImportCyclesbuild:+ needs: path-check+ if: needs.path-check.outputs.should_run == 'true'name: Buildruns-on: linux-latest-middysteps:@@ -100,4 +123,35 @@ jobs:- name: Buildworking-directory: js/apprun: bun run build-++ # Collector job that always runs - use this as the required status check+ status-check:+ name: Web App Status Check+ if: always()+ needs: [path-check, typescript, biome-check, tailwind, test, cycles, build]+ runs-on: ubuntu-latest+ steps:+ - name: Check job results+ run: |+ echo "path-check: ${{ needs.path-check.result }}"+ echo "typescript: ${{ needs.typescript.result }}"+ echo "biome-check: ${{ needs.biome-check.result }}"+ echo "tailwind: ${{ needs.tailwind.result }}"+ echo "test: ${{ needs.test.result }}"+ echo "cycles: ${{ needs.cycles.result }}"+ echo "build: ${{ needs.build.result }}"++ # Fail if any job failed (skipped and success are both OK)+ if [[ "${{ needs.path-check.result }}" == "failure" ]] || \+ [[ "${{ needs.typescript.result }}" == "failure" ]] || \+ [[ "${{ needs.biome-check.result }}" == "failure" ]] || \+ [[ "${{ needs.tailwind.result }}" == "failure" ]] || \+ [[ "${{ needs.test.result }}" == "failure" ]] || \+ [[ "${{ needs.cycles.result }}" == "failure" ]] || \+ [[ "${{ needs.build.result }}" == "failure" ]]; then+ echo "❌ One or more jobs failed"+ exit 1+ fi++ echo "✅ All jobs passed or were skipped"+diff --git a/infra/biome.jsonc b/infra/biome.jsoncindex 5bbd1439a9..dbe7806cc4 100644--- a/infra/biome.jsonc+++ b/infra/biome.jsonc@@ -4,7 +4,7 @@"clientKind": "git","enabled": true,"useIgnoreFile": true,- "defaultBranch": "dev"+ "defaultBranch": "origin/main"},"files": {"includes": [diff --git a/infra/fusion-auth/database.ts b/infra/fusion-auth/database.tsindex 766b217897..888cc80f7e 100644--- a/infra/fusion-auth/database.ts+++ b/infra/fusion-auth/database.ts@@ -1,5 +1,5 @@-import * as pulumi from '@pulumi/pulumi';import * as aws from '@pulumi/aws';+import * as pulumi from '@pulumi/pulumi';import { RDS_PORT, stack } from './resources/shared';type DatabaseArgs = {@@ -26,7 +26,7 @@ export class Database extends pulumi.ComponentResource {constructor(name: string,args: DatabaseArgs,- opts?: pulumi.ComponentResourceOptions,+ opts?: pulumi.ComponentResourceOptions) {super('my:components:RdsDatabase', name, {}, opts);const { dbArgs, publiclyAccessible, tags, vpc } = args;@@ -51,7 +51,7 @@ export class Database extends pulumi.ComponentResource {vpcId: vpc.vpcId,tags,},- { parent: this },+ { parent: this });new aws.vpc.SecurityGroupIngressRule(@@ -65,7 +65,7 @@ export class Database extends pulumi.ComponentResource {securityGroupId: securityGroup.id,tags,},- { parent: this },+ { parent: this });if (publiclyAccessible) {@@ -80,7 +80,7 @@ export class Database extends pulumi.ComponentResource {securityGroupId: securityGroup.id,tags,},- { parent: this },+ { parent: this });}@@ -94,7 +94,7 @@ export class Database extends pulumi.ComponentResource {: vpc.publicSubnetIds,tags,},- { parent: this },+ { parent: this });// For prod we had to snapshot and then encrypt the db.@@ -122,7 +122,7 @@ export class Database extends pulumi.ComponentResource {multiAz: true,tags,},- { parent: this },+ { parent: this });this.endpoint = this.db.endpoint;}diff --git a/infra/fusion-auth/fusionauth-service.ts b/infra/fusion-auth/fusionauth-service.tsindex 6e7e94bcd5..2fa28394d4 100644--- a/infra/fusion-auth/fusionauth-service.ts+++ b/infra/fusion-auth/fusionauth-service.ts@@ -1,12 +1,12 @@-import * as awsx from '@pulumi/awsx';import * as aws from '@pulumi/aws';+import * as awsx from '@pulumi/awsx';import * as pulumi from '@pulumi/pulumi';+import { serviceLoadBalancer } from './resources/load_balancer';import {- stack,BASE_DOMAIN,CLOUD_TRAIL_SNS_TOPIC_ARN,+ stack,} from './resources/shared';-import { serviceLoadBalancer } from './resources/load_balancer';const BASE_NAME = 'fusionauth';@@ -56,7 +56,7 @@ export class FusionAuthService extends pulumi.ComponentResource {clusterName,tags,}: CreateFusionAuthServiceArgs,- opts?: pulumi.ComponentResourceOptions,+ opts?: pulumi.ComponentResourceOptions) {super('my:components:FusionAuthService', name, {}, opts);this.tags = tags;@@ -86,7 +86,7 @@ export class FusionAuthService extends pulumi.ComponentResource {tags: this.tags,managedPolicyArns: [],},- { parent: this },+ { parent: this });// sg@@ -159,7 +159,7 @@ export class FusionAuthService extends pulumi.ComponentResource {},desiredCount: stack === 'prod' ? 2 : 1,},- { parent: this },+ { parent: this });this.service = service;@@ -183,7 +183,7 @@ export class FusionAuthService extends pulumi.ComponentResource {},],},- { parent: this },+ { parent: this });// We only setup auto scaling for prodif (stack === 'prod') {@@ -206,7 +206,7 @@ export class FusionAuthService extends pulumi.ComponentResource {vpcId,tags: this.tags,},- { parent: this },+ { parent: this });const serviceSg = new aws.ec2.SecurityGroup(@@ -217,7 +217,7 @@ export class FusionAuthService extends pulumi.ComponentResource {description: `${BASE_NAME} security group that is attached directly to the service`,tags: this.tags,},- { parent: this },+ { parent: this });new aws.vpc.SecurityGroupIngressRule(@@ -231,7 +231,7 @@ export class FusionAuthService extends pulumi.ComponentResource {ipProtocol: 'tcp',tags: this.tags,},- { parent: this },+ { parent: this });new aws.vpc.SecurityGroupEgressRule(@@ -243,7 +243,7 @@ export class FusionAuthService extends pulumi.ComponentResource {ipProtocol: '-1',tags: this.tags,},- { parent: this },+ { parent: this });// ALB SG rules@@ -258,7 +258,7 @@ export class FusionAuthService extends pulumi.ComponentResource {toPort: 80,tags: this.tags,},- { parent: this },+ { parent: this });new aws.vpc.SecurityGroupIngressRule(@@ -272,7 +272,7 @@ export class FusionAuthService extends pulumi.ComponentResource {toPort: 443,tags: this.tags,},- { parent: this },+ { parent: this });new aws.vpc.SecurityGroupEgressRule(@@ -286,7 +286,7 @@ export class FusionAuthService extends pulumi.ComponentResource {toPort: serviceContainerPort,tags: this.tags,},- { parent: this },+ { parent: this });return { serviceAlbSg, serviceSg };@@ -313,7 +313,7 @@ export class FusionAuthService extends pulumi.ComponentResource {alarmActions: [CLOUD_TRAIL_SNS_TOPIC_ARN],tags: this.tags,},- { parent: this },+ { parent: this });new aws.cloudwatch.MetricAlarm(@@ -336,7 +336,7 @@ export class FusionAuthService extends pulumi.ComponentResource {alarmActions: [CLOUD_TRAIL_SNS_TOPIC_ARN],tags: this.tags,},- { parent: this },+ { parent: this });new aws.cloudwatch.MetricAlarm(@@ -358,7 +358,7 @@ export class FusionAuthService extends pulumi.ComponentResource {alarmActions: [CLOUD_TRAIL_SNS_TOPIC_ARN],tags: this.tags,},- { parent: this },+ { parent: this });}@@ -377,18 +377,20 @@ export class FusionAuthService extends pulumi.ComponentResource {serviceNamespace: 'ecs',tags: this.tags,},- { parent: this },+ { parent: this });- const lbPortion: pulumi.Output<string> = this.lb.arn.apply(arn => {+ const lbPortion: pulumi.Output<string> = this.lb.arn.apply((arn) => {const parts = arn.split(':loadbalancer/');return parts[1];});- const tgPortion: pulumi.Output<string> = this.targetGroup.arn.apply(arn => {- const parts = arn.split(':');- return parts[parts.length - 1];- });+ const tgPortion: pulumi.Output<string> = this.targetGroup.arn.apply(+ (arn) => {+ const parts = arn.split(':');+ return parts[parts.length - 1];+ }+ );const resourceLabel = pulumi.interpolate`${lbPortion}/${tgPortion}`;@@ -410,7 +412,7 @@ export class FusionAuthService extends pulumi.ComponentResource {scaleOutCooldown: 120,},},- { parent: this },+ { parent: this });// Create an Auto Scaling policy for CPU utilization.@@ -430,7 +432,7 @@ export class FusionAuthService extends pulumi.ComponentResource {scaleOutCooldown: 300,},},- { parent: this },+ { parent: this });new aws.appautoscaling.Policy(@@ -449,7 +451,7 @@ export class FusionAuthService extends pulumi.ComponentResource {scaleOutCooldown: 300,},},- { parent: this },+ { parent: this });}}diff --git a/infra/fusion-auth/index.ts b/infra/fusion-auth/index.tsindex 404e248cda..f6ad7fcbb9 100644--- a/infra/fusion-auth/index.ts+++ b/infra/fusion-auth/index.ts@@ -1,9 +1,9 @@-import * as pulumi from '@pulumi/pulumi';-import { config, stack } from './resources/shared';-import { get_coparse_api_vpc } from './resources/vpc';import * as aws from '@pulumi/aws';+import * as pulumi from '@pulumi/pulumi';import { Database } from './database';import { FusionAuthService } from './fusionauth-service';+import { config, stack } from './resources/shared';+import { get_coparse_api_vpc } from './resources/vpc';const tags = {environment: stack,@@ -18,7 +18,7 @@ const password = aws.secretsmanager.getSecretVersionOutput({secretId: config.require('db-password-secret-key'),})- .apply(secret => secret.secretString);+ .apply((secret) => secret.secretString);const database = new Database('fusionauth-db', {publiclyAccessible: stack !== 'prod', // We keep the database publicly accessible in dev to make sure everything is working.@@ -42,7 +42,7 @@ if (stack === 'prod') {} else {// eslint-disable-next-line @typescript-eslint/no-non-null-assertionDATABASE_URL = database.endpoint!.apply(- endpoint => `jdbc:postgresql://${endpoint}/fusionauth`,+ (endpoint) => `jdbc:postgresql://${endpoint}/fusionauth`);}diff --git a/infra/fusion-auth/resources/ecr.ts b/infra/fusion-auth/resources/ecr.tsindex 434df8248e..2490a534ab 100644--- a/infra/fusion-auth/resources/ecr.ts+++ b/infra/fusion-auth/resources/ecr.ts@@ -1,5 +1,5 @@-import * as pulumi from '@pulumi/pulumi';import * as awsx from '@pulumi/awsx';+import * as pulumi from '@pulumi/pulumi';export class EcrImage extends pulumi.ComponentResource {public ecr: awsx.ecr.Repository;@@ -26,7 +26,7 @@ export class EcrImage extends pulumi.ComponentResource {tags: { [key: string]: string };},- opts?: pulumi.ComponentResourceOptions,+ opts?: pulumi.ComponentResourceOptions) {super('my:components:EcrImage', name, {}, opts);this.tags = tags;@@ -38,7 +38,7 @@ export class EcrImage extends pulumi.ComponentResource {forceDelete: true,tags: this.tags,},- { parent: this },+ { parent: this });this.image = new awsx.ecr.Image(imageId,@@ -50,7 +50,7 @@ export class EcrImage extends pulumi.ComponentResource {platform: `${platform.family}/${platform.architecture}`,repositoryUrl: this.ecr.url,},- { parent: this },+ { parent: this });}}diff --git a/infra/fusion-auth/resources/load_balancer.ts b/infra/fusion-auth/resources/load_balancer.tsindex a0833b1b9d..68c6d2ea17 100644--- a/infra/fusion-auth/resources/load_balancer.ts+++ b/infra/fusion-auth/resources/load_balancer.ts@@ -1,6 +1,6 @@import * as aws from '@pulumi/aws';-import * as pulumi from '@pulumi/pulumi';-import { Output } from '@pulumi/pulumi';+import type * as pulumi from '@pulumi/pulumi';+import type { Output } from '@pulumi/pulumi';import { MACRO_SUBDOMAIN_CERT, stack } from './shared';export function serviceLoadBalancer(@@ -27,7 +27,7 @@ export function serviceLoadBalancer(isPrivate?: boolean;tags: { [key: string]: string };idleTimeout?: number;- },+ }) {const targetGroup = new aws.alb.TargetGroup(`${serviceName}-tg-${stack}`,@@ -45,7 +45,7 @@ export function serviceLoadBalancer(},tags,},- { parent },+ { parent });const lb = new aws.lb.LoadBalancer(@@ -66,7 +66,7 @@ export function serviceLoadBalancer(},tags,},- { parent },+ { parent });const listener = new aws.lb.Listener(@@ -85,7 +85,7 @@ export function serviceLoadBalancer(},],},- { parent },+ { parent });new aws.lb.Listener(@@ -106,7 +106,7 @@ export function serviceLoadBalancer(},],},- { parent },+ { parent });return { targetGroup, lb, listener };diff --git a/infra/fusion-auth/resources/shared.ts b/infra/fusion-auth/resources/shared.tsindex b2b96c17f8..cadac04798 100644--- a/infra/fusion-auth/resources/shared.ts+++ b/infra/fusion-auth/resources/shared.ts@@ -1,5 +1,5 @@-import * as pulumi from '@pulumi/pulumi';import * as aws from '@pulumi/aws';+import * as pulumi from '@pulumi/pulumi';export const RDS_PORT = 5432;diff --git a/infra/fusion-auth/resources/vpc.ts b/infra/fusion-auth/resources/vpc.tsindex 64d1cbf63b..fe88f82030 100644--- a/infra/fusion-auth/resources/vpc.ts+++ b/infra/fusion-auth/resources/vpc.ts@@ -19,7 +19,7 @@ const LEGACY_PRIVATE_SUBNETS = [export function get_coparse_api_vpc() {return {vpcId: 'vpc-0c7510191d4fc9263',- privateSubnetIds: LEGACY_PRIVATE_SUBNETS.map(n => n.value),+ 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@@ -29,9 +29,9 @@ export function get_coparse_api_vpc() {}export function coparse_api_vpc_filtered_subnets(az: string[]) {- const result = LEGACY_PRIVATE_SUBNETS.filter(n => az.includes(n.az));+ 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);+ return result.map((n) => n.value);}diff --git a/infra/networking/index.ts b/infra/networking/index.tsindex 17b3788595..fb77edec74 100644--- a/infra/networking/index.ts+++ b/infra/networking/index.ts@@ -1,15 +1,15 @@-import * as pulumi from '@pulumi/pulumi';import * as aws from '@pulumi/aws';import * as awsx from '@pulumi/awsx';+import * as pulumi from '@pulumi/pulumi';// Ensure AWS region is specifiedaws.config.requireRegion();-const stack = pulumi.getStack();+const _stack = pulumi.getStack();// one vpc per stackconst vpc = new awsx.ec2.Vpc('macro-web-vpc');export const vpcId = vpc.vpcId;export const publicSubnetIds = vpc.publicSubnetIds;-export const privateSubnetIds = vpc.privateSubnetIds;\ No newline at end of file+export const privateSubnetIds = vpc.privateSubnetIds;