Skip to content

Commit b9736ef

Browse files
dineshSajwandinsajwa
and
dinsajwa
authored
chore(bda): added cors policy to bda buckets (#1058)
* chore(bda): added cors to bda buckets --------- Co-authored-by: dinsajwa <[email protected]>
1 parent 5859c2c commit b9736ef

File tree

1 file changed

+19
-0
lines changed
  • src/patterns/gen-ai/aws-bedrock-data-automation

1 file changed

+19
-0
lines changed

src/patterns/gen-ai/aws-bedrock-data-automation/index.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,25 @@ export class BedrockDataAutomation extends BaseClass {
223223
objectOwnership: s3.ObjectOwnership.BUCKET_OWNER_ENFORCED,
224224
removalPolicy: cdk.RemovalPolicy.DESTROY,
225225
autoDeleteObjects: true,
226+
cors: [
227+
{
228+
allowedMethods: [
229+
s3.HttpMethods.GET,
230+
s3.HttpMethods.POST,
231+
s3.HttpMethods.PUT,
232+
s3.HttpMethods.DELETE,
233+
],
234+
allowedOrigins: ['*'],
235+
allowedHeaders: ['*'],
236+
exposedHeaders: ['x-amz-server-side-encryption',
237+
'x-amz-request-id',
238+
'x-amz-id-2',
239+
'ETag',
240+
'Content-Type',
241+
'Content-Disposition',
242+
'Access-Control-Allow-Origin'],
243+
},
244+
],
226245
});
227246
}
228247
}

0 commit comments

Comments
 (0)