Skip to content

Commit

Permalink
fix(seedrun): missing env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
fforbeck committed Oct 25, 2024
1 parent 5fd8afb commit a6fb7a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stacks/billing-stack.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,5 +211,5 @@ export function BillingStack ({ stack, app }) {
EgressTrafficQueueURL: egressTrafficQueue.queueUrl
})

return { billingCron }
return { billingCron, egressTrafficQueue }
}
7 changes: 6 additions & 1 deletion stacks/upload-api-stack.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
import { StartingPosition, FilterCriteria, FilterRule } from 'aws-cdk-lib/aws-lambda'
import { UploadDbStack } from './upload-db-stack.js'
import { BillingDbStack } from './billing-db-stack.js'
import { BillingStack } from './billing-stack.js'
import { CarparkStack } from './carpark-stack.js'
import { FilecoinStack } from './filecoin-stack.js'
import { UcanInvocationStack } from './ucan-invocation-stack.js'
Expand Down Expand Up @@ -45,9 +46,10 @@ export function UploadApiStack({ stack, app }) {
const { carparkBucket } = use(CarparkStack)
const { allocationTable, storeTable, uploadTable, delegationBucket, delegationTable, revocationTable, adminMetricsTable, spaceMetricsTable, consumerTable, subscriptionTable, rateLimitTable, pieceTable, privateKey, contentClaimsPrivateKey } = use(UploadDbStack)
const { invocationBucket, taskBucket, workflowBucket, ucanStream } = use(UcanInvocationStack)
const { customerTable, spaceDiffTable, spaceSnapshotTable, stripeSecretKey } = use(BillingDbStack)
const { customerTable, spaceDiffTable, spaceSnapshotTable, egressTrafficTable, stripeSecretKey } = use(BillingDbStack)
const { pieceOfferQueue, filecoinSubmitQueue } = use(FilecoinStack)
const { blockAdvertPublisherQueue, blockIndexWriterQueue } = use(IndexerStack)
const { egressTrafficQueue } = use(BillingStack)

// Setup API
const customDomains = process.env.HOSTED_ZONES?.split(',').map(zone => getCustomDomain(stack.stage, zone))
Expand Down Expand Up @@ -82,6 +84,7 @@ export function UploadApiStack({ stack, app }) {
pieceTable,
spaceDiffTable,
spaceSnapshotTable,
egressTrafficTable,
carparkBucket,
invocationBucket,
taskBucket,
Expand All @@ -91,6 +94,7 @@ export function UploadApiStack({ stack, app }) {
filecoinSubmitQueue,
blockAdvertPublisherQueue,
blockIndexWriterQueue,
egressTrafficQueue,
],
environment: {
DID: process.env.UPLOAD_API_DID ?? '',
Expand Down Expand Up @@ -119,6 +123,7 @@ export function UploadApiStack({ stack, app }) {
FILECOIN_SUBMIT_QUEUE_URL: filecoinSubmitQueue.queueUrl,
BLOCK_ADVERT_PUBLISHER_QUEUE_URL: blockAdvertPublisherQueue.queueUrl,
BLOCK_INDEX_WRITER_QUEUE_URL: blockIndexWriterQueue.queueUrl,
EGRESS_TRAFFIC_QUEUE_URL: egressTrafficQueue.queueUrl,
NAME: pkg.name,
VERSION: pkg.version,
COMMIT: git.commmit,
Expand Down

0 comments on commit a6fb7a5

Please sign in to comment.