[{"data":1,"prerenderedAt":70},["ShallowReactive",2],{"pattern-cloudtrail-streaming-to-opensearch-serverless-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":28,"language":34,"level":35,"meta":36,"patternArch":37,"resources":55,"s3URL":6,"services":64,"stem":65,"testing":66,"videoId":6,"__hash__":69},"patterns\u002Fpatterns\u002Fcloudtrail-streaming-to-opensearch-serverless-cdk.json","Amazon CloudTrail to AWS Lambda to Amazon OpenSearch",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Frupesh-tiwari.json",{"text":13},[14],"cdk deploy","Create an OpenSearch cluster in VPC that receives CloudTrail CloudWatch Logs from Lambda.","json","AWS CDK",{"template":19,"payloads":25},{"repoURL":20,"readmeURL":21,"projectFolder":22,"templateURL":23,"templateFile":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fcloudtrail-streaming-to-opensearch-serverless-cdk","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fcloudtrail-streaming-to-opensearch-serverless-cdk\u002FREADME.md","cloudtrail-streaming-to-opensearch-serverless-cdk","serverless-patterns\u002Fcloudtrail-streaming-to-opensearch-serverless-cdk","stacks\u002Fopensearch_serverless_stack.py",[26],{"headline":27,"payloadURL":27},"",{"headline":29,"text":30},"How it works",[31,32,33],"This project contains a sample AWS CDK template to create Amazon CloudTrail, a CloudWatch Logs Group, AWS Lambda function and Amazon OpenSearch serverless collection.","The EventBridge rule publishes matched events to CloudWatch Logs from CloudTrail.","The Lambda function indexes those logs to Amazon OpenSearch which can be further viewed from the Amazon OpenSearch dashboard.","Python","200",{},{"icon1":38,"icon2":43,"icon3":46,"line1":50,"line2":53},{"x":39,"y":40,"service":41,"label":42},20,50,"cloudtrail","Amazon CloudTrail",{"x":40,"y":40,"service":44,"label":45},"lambda","AWS Lambda",{"x":47,"y":40,"service":48,"label":49},80,"opensearch","Amazon OpenSearch",{"from":51,"to":52,"label":27},"icon1","icon2",{"from":52,"to":54,"label":27},"icon3",{"headline":56,"bullets":57},"Additional resources",[58,61],{"text":59,"link":60},"Ingesting data into Amazon OpenSearch Serverless collections","https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fserverless-clients.html",{"text":62,"link":63},"Fine-grained access control in Amazon OpenSearch Service","https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Ffgac.html",{"from":41,"to":48},"patterns\u002Fcloudtrail-streaming-to-opensearch-serverless-cdk",{"text":67},[68],"See the GitHub repo for detailed testing instructions.","nT0ryT8gxaqCT-RXWinsTsUaED8-zS6ykdPPM3LkiqY",1778927706923]