storacha / w3infra

🏗️ Infra for the w3up UCAN protocol implementation
Other
17 stars 7 forks source link

fix(consumerTable): new consumer index #438

Closed fforbeck closed 2 days ago

fforbeck commented 3 days ago

By creating a new Global Secondary Index (GSI) with a different name, we avoid any downtime for existing queries that rely on the current consumer index, and we don’t need to worry about temporarily losing data in that index.

This PR introduces the consumerV2 index to the consumerTable and includes the customer attribute in the projection. It also updates the consumerTable.get query to use the new index.

seed-deploy[bot] commented 2 days ago
View stack outputs - **pr438-w3infra-BillingDbStack** Name | Value -- | -- customerTableName | pr438-w3infra-customer egressTrafficTableName | pr438-w3infra-egress-traffic spaceDiffTableName | pr438-w3infra-space-diff spaceSnapshotTableName | pr438-w3infra-space-snapshot usageTable | pr438-w3infra-usage - **pr438-w3infra-BillingStack** Name | Value -- | -- ApiEndpoint | https://upy3rhuqr8.execute-api.us-east-2.amazonaws.com billingCronHandlerURL | https://ug2m4xhaclee7idc7n7wngrloy0rrccs.lambda-url.us-east-2.on.aws/ CustomDomain | https://pr438.billing.web3.storage EgressTrafficQueueURL | https://sqs.us-east-2.amazonaws.com/505595374361/pr438-w3infra-egress-traffic-queue - **pr438-w3infra-CarparkStack** Name | Value -- | -- BucketName | carpark-pr438-0 Region | us-east-2 - **pr438-w3infra-PSAStack** Name | Value -- | -- downloadFunctionURL | https://bdjeunnvn3ajor5mtlzzp2mb740gpffa.lambda-url.us-east-2.on.aws/ hashFunctionURL | https://gjlrergzlpx5pjha67zewe2ohu0rztwv.lambda-url.us-east-2.on.aws/ - **pr438-w3infra-RoundaboutStack** Name | Value -- | -- ApiEndpoint | https://536bi4uyxf.execute-api.us-east-2.amazonaws.com CustomDomain | https://pr438.roundabout.web3.storage - **pr438-w3infra-UcanInvocationStack** Name | Value -- | -- invocationBucketName | invocation-store-pr438-0 taskBucketName | task-store-pr438-0 workflowBucketName | workflow-store-pr438-0 - **pr438-w3infra-UploadApiStack** Name | Value -- | -- ApiEndpoints | ["https://aspcp18pac.execute-api.us-east-2.amazonaws.com","https://0rhillitki.execute-api.us-east-2.amazonaws.com"] CustomDomains | ["https://pr438.up.web3.storage","https://pr438.up.storacha.network"] - **pr438-w3infra-BusStack** - **pr438-w3infra-FilecoinStack** - **pr438-w3infra-IndexerStack** - **pr438-w3infra-ReplicatorStack** - **pr438-w3infra-UcanFirehoseStack** - **pr438-w3infra-UploadDbStack**