Skip to content

Commit

Permalink
fix: #604 Fix user export
Browse files Browse the repository at this point in the history
  • Loading branch information
mkleszcz committed Jul 24, 2024
1 parent daa164f commit 51ee4de
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/backend/infra/stacks/lib/backendTaskRole.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ export function createBackendTaskRole(
fileUploadsBucket.grantReadWrite(taskRole);
fileUploadsBucket.grantPutAcl(taskRole);

const exportsBucket = s3.Bucket.fromBucketName(
scope,
'ExportsBucket',
EnvComponentsStack.getExportsBucketName(envSettings),
);
exportsBucket.grantReadWrite(taskRole);
exportsBucket.grantPutAcl(taskRole);

const eventBus = events.EventBus.fromEventBusName(
scope,
'WorkersEventBus',
Expand Down
2 changes: 2 additions & 0 deletions packages/backend/infra/stacks/lib/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ export function getBackendEnvironment(
EnvComponentsStack.getWorkersEventBusName(envSettings),
AWS_STORAGE_BUCKET_NAME:
EnvComponentsStack.getFileUploadsBucketName(envSettings),
AWS_EXPORTS_STORAGE_BUCKET_NAME:
EnvComponentsStack.getExportsBucketName(envSettings),
AWS_S3_CUSTOM_DOMAIN: envSettings.domains.cdn,
DB_PROXY_ENDPOINT: Fn.importValue(
MainDatabase.getDatabaseProxyEndpointOutputExportName(envSettings),
Expand Down

0 comments on commit 51ee4de

Please sign in to comment.