Skip to content

Commit

Permalink
fix: add event bus permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed May 19, 2023
1 parent 16ee9d9 commit b062982
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions stacks/replicator-stack.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ export function ReplicatorStack({ stack, app }) {
REPLICATOR_BUCKET_PUBLIC_URL: process.env.R2_CARPARK_BUCKET_PUBLIC_URL || '',
EVENT_BUS_ARN: eventBus.eventBusArn
},
permissions: ['s3:*'],
permissions: [
's3:*',
'events:*',
eventBus
],
handler: 'functions/replicator.handler',
timeout: 15 * 60,
}
Expand All @@ -58,7 +62,11 @@ export function ReplicatorStack({ stack, app }) {
REPLICATOR_BUCKET_PUBLIC_URL: process.env.R2_SATNAV_BUCKET_PUBLIC_URL || '',
EVENT_BUS_ARN: eventBus.eventBusArn
},
permissions: ['s3:*'],
permissions: [
's3:*',
'events:*',
eventBus
],
handler: 'functions/replicator.handler',
timeout: 15 * 60,
}
Expand Down

0 comments on commit b062982

Please sign in to comment.