Skip to content

feat(bda): added cors policy to bda buckets #1058

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Apr 4, 2025
19 changes: 19 additions & 0 deletions src/patterns/gen-ai/aws-bedrock-data-automation/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,25 @@ export class BedrockDataAutomation extends BaseClass {
objectOwnership: s3.ObjectOwnership.BUCKET_OWNER_ENFORCED,
removalPolicy: cdk.RemovalPolicy.DESTROY,
autoDeleteObjects: true,
cors: [
{
allowedMethods: [
s3.HttpMethods.GET,
s3.HttpMethods.POST,
s3.HttpMethods.PUT,
s3.HttpMethods.DELETE,
],
allowedOrigins: ['*'],
allowedHeaders: ['*'],
exposedHeaders: ['x-amz-server-side-encryption',
'x-amz-request-id',
'x-amz-id-2',
'ETag',
'Content-Type',
'Content-Disposition',
'Access-Control-Allow-Origin'],
},
],
});
}
}
Expand Down
Loading