File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ import * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';
1414import * as elbv2 from "aws-cdk-lib/aws-elasticloadbalancingv2" ;
1515import * as elbv2_actions from "aws-cdk-lib/aws-elasticloadbalancingv2-actions" ;
1616import { SqsEventSource } from 'aws-cdk-lib/aws-lambda-event-sources' ;
17+ import * as cloudtrail from "aws-cdk-lib/aws-cloudtrail" ;
18+
1719
1820import path = require( "path" ) ;
1921
@@ -47,6 +49,11 @@ export class BaseInfraStack extends cdk.Stack {
4749 throw new Error ( 'Unsupported CDK_DEFAULT_REGION specified' )
4850 } ;
4951
52+ // Trail for logging AWS API events
53+ const trail = new cloudtrail . Trail ( this , 'myCloudTrail' , {
54+ managementEvents : cloudtrail . ReadWriteType . ALL
55+ } ) ;
56+
5057 const indexName = process . env . AOSS_INDEX_NAME || 'rag-oai-index' ;
5158 console . log ( `AOSS_INDEX_NAME: ${ indexName } ` ) ;
5259 this . aossIndexName = indexName ;
You can’t perform that action at this time.
0 commit comments