# VPC Flow Logs

Amazon VPC feature for capturing IP traffic information to and from VPC network interfaces as flow log records.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Securing Quick access from corporate networks with AWS PrivateLink

DevFeed: [Securing Quick access from corporate networks with AWS PrivateLink](<https://devfeed.tech/articles/securing-quick-access-from-corporate-networks-with-aws-privatelink-94013.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/machine-learning/securing-quick-access-from-corporate-networks-with-aws-privatelink/>)

Author: Rahul Kulkarni

Published: 2026-10-21T23:38:38Z

Content type: tutorial

Language: en

Sources: [Artificial Intelligence](<https://devfeed.tech/sources/artificial-intelligence.md>)

Topics: [network security](<https://devfeed.tech/topics/network-security.md>), [Amazon VPC](<https://devfeed.tech/topics/amazon-vpc.md>), [Security, Identity, & Compliance](<https://devfeed.tech/topics/security-identity-compliance.md>), [AWS IAM Identity Center](<https://devfeed.tech/topics/aws-iam-identity-center.md>), [identity and access management](<https://devfeed.tech/topics/identity-and-access-management.md>), [Access Control](<https://devfeed.tech/topics/access-control.md>), [AWS IAM](<https://devfeed.tech/topics/aws-iam.md>), [Single sign-on (SSO)](<https://devfeed.tech/topics/sso.md>), [VPC Flow Logs](<https://devfeed.tech/topics/vpc-flow-logs.md>), [Virtual Private Network](<https://devfeed.tech/topics/vpn.md>)

Tags: [advanced-300](<https://devfeed.tech/tags/advanced-300.md>), [amazon](<https://devfeed.tech/tags/amazon.md>), [amazon-quick](<https://devfeed.tech/tags/amazon-quick.md>), [amazon-quick-suite](<https://devfeed.tech/tags/amazon-quick-suite.md>), [analytics](<https://devfeed.tech/tags/analytics.md>), [api](<https://devfeed.tech/tags/api.md>), [api-access](<https://devfeed.tech/tags/api-access.md>), [aws](<https://devfeed.tech/tags/aws.md>), [aws-privatelink](<https://devfeed.tech/tags/aws-privatelink.md>), [compliance](<https://devfeed.tech/tags/compliance.md>), [connect](<https://devfeed.tech/tags/connect.md>), [corporate](<https://devfeed.tech/tags/corporate.md>), [covers](<https://devfeed.tech/tags/covers.md>), [data](<https://devfeed.tech/tags/data.md>), [dns](<https://devfeed.tech/tags/dns.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [identity](<https://devfeed.tech/tags/identity.md>), [internet](<https://devfeed.tech/tags/internet.md>), [networks](<https://devfeed.tech/tags/networks.md>), [policies](<https://devfeed.tech/tags/policies.md>), [public](<https://devfeed.tech/tags/public.md>), [technical-how-to](<https://devfeed.tech/tags/technical-how-to.md>), [with](<https://devfeed.tech/tags/with.md>)

### AI overview

The article describes a private connectivity design for Amazon Quick that depends on an existing Direct Connect or Site-to-Site VPN. It separates user-facing traffic, routed through Quick interface VPC endpoints, from data-fetching traffic, which uses Quick VPC connections and ENIs in the VPC to reach private databases, internal APIs, and supported on-premises sources. Setup includes endpoint DNS, security groups, endpoint policies, an IAM execution role, and optional endpoints for AWS data services. The website endpoint policy must use wildcard Principal, Action, and Resource fields; API endpoint policies can restrict actions, though 13 action-connector and flow APIs are unsupported there. Enforcing VPC endpoint restrictions can make the private route mandatory, but these rules do not restrict public API access, and IAM Identity Center browser sign-in still requires outbound access to public sign-in endpoints. The guide also covers identity-based roles and data controls, monitoring, and validation before enforcement.

### Source excerpt

Learn how to connect on-premises data sources to Amazon Quick privately with AWS PrivateLink, keeping analytics traffic off the public internet. This walkthrough covers VPC endpoints for user and API access, VPC connections for data sources, DNS and endpoint policies, identity federation, and enforcing VPC-endpoint-only access for compliance.

## Cross-account canary routing with Amazon VPC Lattice and Amazon API Gateway

DevFeed: [Cross-account canary routing with Amazon VPC Lattice and Amazon API Gateway](<https://devfeed.tech/articles/cross-account-canary-routing-with-amazon-vpc-lattice-and-amazon-api-gateway-67031.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/networking-and-content-delivery/cross-account-canary-routing-with-amazon-vpc-lattice-and-amazon-api-gateway/>)

Author: Mahmoud Ismail

Published: 2026-10-07T19:16:35Z

Content type: tutorial

Language: en

Sources: [Networking & Content Delivery](<https://devfeed.tech/sources/networking-content-delivery.md>)

Topics: [Amazon API Gateway](<https://devfeed.tech/topics/amazon-api-gateway.md>), [VPC Flow Logs](<https://devfeed.tech/topics/vpc-flow-logs.md>), [blue-green deployment](<https://devfeed.tech/topics/blue-green-deployment.md>), [Deployment Strategies](<https://devfeed.tech/topics/deployment-strategies.md>)

Tags: [amazon-api-gateway](<https://devfeed.tech/tags/amazon-api-gateway.md>), [amazon-vpc](<https://devfeed.tech/tags/amazon-vpc.md>), [amazon-vpc-lattice](<https://devfeed.tech/tags/amazon-vpc-lattice.md>), [canary](<https://devfeed.tech/tags/canary.md>), [canary-deployment](<https://devfeed.tech/tags/canary-deployment.md>), [networking-content-delivery](<https://devfeed.tech/tags/networking-content-delivery.md>), [uncategorized](<https://devfeed.tech/tags/uncategorized.md>)

### AI overview

The article describes a cross-account canary-routing pattern for gradually moving traffic from a monolith to microservices. Amazon API Gateway makes the per-request canary decision, while Amazon VPC Lattice provides cross-account service connectivity. A VPC-attached Lambda function forwards requests to the selected service, and separate APIs can provide independent canary settings for each extracted service.

### Source excerpt

Modernizing a monolith into microservices may require placing each new service in its own AWS account for isolation, independent scaling, and clear ownership. During that migration you hit a hard question: how do you shift a small, precise slice of live traffic from the monolith to a new service in a different account? You need [...]

## Deploy open source Regional availability tools in your VPC

DevFeed: [Deploy open source Regional availability tools in your VPC](<https://devfeed.tech/articles/deploy-open-source-regional-availability-tools-in-your-vpc-64215.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/architecture/deploy-open-source-regional-availability-tools-in-your-vpc/>)

Author: Stefan Janjic

Published: 2026-10-02T17:50:56Z

Content type: tutorial

Language: en

Sources: [AWS Architecture Blog](<https://devfeed.tech/sources/aws-architecture-blog.md>)

Topics: [Availability](<https://devfeed.tech/topics/availability.md>), [VPC Flow Logs](<https://devfeed.tech/topics/vpc-flow-logs.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>)

Tags: [amazon-simple-storage-service-s3](<https://devfeed.tech/tags/amazon-simple-storage-service-s3.md>), [amazon-vpc](<https://devfeed.tech/tags/amazon-vpc.md>), [availability](<https://devfeed.tech/tags/availability.md>), [aws-cloudformation](<https://devfeed.tech/tags/aws-cloudformation.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [intermediate-200](<https://devfeed.tech/tags/intermediate-200.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [technical-how-to](<https://devfeed.tech/tags/technical-how-to.md>)

### AI overview

The article walks through deploying two open-source AWS tools: Capability Insights for AWS, a self-hosted Regional availability dashboard in a VPC, and Workload Analysis, which uses CloudTrail logs and CloudFormation stacks to filter the catalog to services an account uses. The dashboard refreshes daily and supports Regional expansion planning and gap analysis.

### Source excerpt

Deploy AWS Regional availability data as infrastructure you own. Capability Insights for AWS runs a self-hosted dashboard in your VPC that auto-refreshes daily, and Workload Analysis narrows the catalog to the services your account actually runs, so your Regional expansion gap analysis focuses only on what you deploy.

## Simplify VPC Flow Logs with EC2 resource tags and next-hop metadata

DevFeed: [Simplify VPC Flow Logs with EC2 resource tags and next-hop metadata](<https://devfeed.tech/articles/simplify-vpc-flow-logs-with-ec2-resource-tags-and-next-hop-metadata-62930.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/networking-and-content-delivery/simplify-vpc-flow-logs-with-ec2-resource-tags-and-next-hop-metadata/>)

Author: Chaitanya Shah

Published: 2026-09-30T18:11:44Z

Content type: tutorial

Language: en

Sources: [Networking & Content Delivery](<https://devfeed.tech/sources/networking-content-delivery.md>)

Topics: [VPC Flow Logs](<https://devfeed.tech/topics/vpc-flow-logs.md>), [Amazon EC2](<https://devfeed.tech/topics/amazon-ec2.md>), [Amazon VPC](<https://devfeed.tech/topics/amazon-vpc.md>)

Tags: [amazon-ec2](<https://devfeed.tech/tags/amazon-ec2.md>), [amazon-vpc](<https://devfeed.tech/tags/amazon-vpc.md>), [auto-scaling](<https://devfeed.tech/tags/auto-scaling.md>), [aws-transit-gateway](<https://devfeed.tech/tags/aws-transit-gateway.md>), [aws-transit-gateway-network-manager](<https://devfeed.tech/tags/aws-transit-gateway-network-manager.md>), [elastic-load-balancing](<https://devfeed.tech/tags/elastic-load-balancing.md>), [network-monitoring](<https://devfeed.tech/tags/network-monitoring.md>), [network-traffic](<https://devfeed.tech/tags/network-traffic.md>), [networking-content-delivery](<https://devfeed.tech/tags/networking-content-delivery.md>), [security-identity-compliance](<https://devfeed.tech/tags/security-identity-compliance.md>), [uncategorized](<https://devfeed.tech/tags/uncategorized.md>), [vpc-flow-logs](<https://devfeed.tech/tags/vpc-flow-logs.md>)

### AI overview

The post explains how Version 11 of Amazon VPC Flow Logs adds EC2 resource tag embedding and next-hop interface metadata. These fields put resource context in flow records and help users analyze network traffic, trace paths through network resources, and troubleshoot without manually combining separate metadata sources.

### Source excerpt

In this post, we show you how to use Amazon Elastic Compute Cloud (Amazon EC2) resource tags and next-hop metadata, two new capabilities in Version 11 of Amazon Virtual Private Cloud (Amazon VPC) Flow Logs. These fields let you simplify network traffic analysis without building custom enrichment pipelines. Since the introduction of VPC Flow Logs [...]

## From 2 AM alarm to answer: Security Triage with AWS DevOps Agent

DevFeed: [From 2 AM alarm to answer: Security Triage with AWS DevOps Agent](<https://devfeed.tech/articles/from-2-am-alarm-to-answer-security-triage-with-aws-devops-agent-61711.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/mt/from-2-am-alarm-to-answer-security-triage-with-aws-devops-agent/>)

Author: Samir Behara

Published: 2026-09-29T16:11:11Z

Content type: tutorial

Language: en

Sources: [AWS Cloud Operations Blog](<https://devfeed.tech/sources/aws-cloud-operations-blog.md>)

Topics: [Security](<https://devfeed.tech/topics/security.md>), [Security, Identity, & Compliance](<https://devfeed.tech/topics/security-identity-compliance.md>), [Amazon CloudWatch Logs](<https://devfeed.tech/topics/amazon-cloudwatch-logs.md>), [AWS CloudTrail](<https://devfeed.tech/topics/aws-cloudtrail.md>), [AWS IAM](<https://devfeed.tech/topics/aws-iam.md>), [VPC Flow Logs](<https://devfeed.tech/topics/vpc-flow-logs.md>), [Amazon VPC](<https://devfeed.tech/topics/amazon-vpc.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [Amazon EC2](<https://devfeed.tech/topics/amazon-ec2.md>)

Tags: [agent-security](<https://devfeed.tech/tags/agent-security.md>), [amazon-cloudwatch](<https://devfeed.tech/tags/amazon-cloudwatch.md>), [amazon-cloudwatch-logs](<https://devfeed.tech/tags/amazon-cloudwatch-logs.md>), [amazon-sns](<https://devfeed.tech/tags/amazon-sns.md>), [amazon-vpc](<https://devfeed.tech/tags/amazon-vpc.md>), [aws](<https://devfeed.tech/tags/aws.md>), [aws-cloudtrail](<https://devfeed.tech/tags/aws-cloudtrail.md>), [aws-identity-and-access-management-iam](<https://devfeed.tech/tags/aws-identity-and-access-management-iam.md>), [aws-lambda](<https://devfeed.tech/tags/aws-lambda.md>), [incident-response](<https://devfeed.tech/tags/incident-response.md>), [owasp](<https://devfeed.tech/tags/owasp.md>), [owasp-top-10](<https://devfeed.tech/tags/owasp-top-10.md>), [security](<https://devfeed.tech/tags/security.md>), [technical-how-to](<https://devfeed.tech/tags/technical-how-to.md>), [vpc-flow-logs](<https://devfeed.tech/tags/vpc-flow-logs.md>)

### AI overview

The post explains how to route custom Amazon CloudWatch security alarms to AWS DevOps Agent for evidence correlation and triage. It describes a Lambda and SNS forwarding path, IAM permission guardrails, and investigations that gather evidence for human severity judgments. The agent proposes investigations but does not detect threats or perform response actions.

### Source excerpt

Security incident triage usually starts cold. An Amazon CloudWatch alarm fires at 2 a.m. because an AWS Identity and Access Management (IAM) access key just created another access key. The responder spends the first 30 minutes assembling evidence from AWS CloudTrail, Amazon CloudWatch Logs, and Amazon Virtual Private Cloud (Amazon VPC) Flow Logs before deciding [...]

## Detecting multi-stage attacks on AWS: A guide to cross-service signal correlation

DevFeed: [Detecting multi-stage attacks on AWS: A guide to cross-service signal correlation](<https://devfeed.tech/articles/detecting-multi-stage-attacks-on-aws-a-guide-to-cross-service-signal-correlation-4678.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/security/detecting-multi-stage-attacks-on-aws-a-guide-to-cross-service-signal-correlation/>)

Author: Nisha Kashyap

Published: 2026-08-26T17:39:19Z

Content type: article

Language: en

Sources: [AWS Security Blog](<https://devfeed.tech/sources/aws-security-blog.md>)

Topics: [Amazon Web Services](<https://devfeed.tech/topics/aws.md>), [Security](<https://devfeed.tech/topics/security.md>), [Detection engineering](<https://devfeed.tech/topics/detection-engineering.md>), [Amazon CloudWatch Logs](<https://devfeed.tech/topics/amazon-cloudwatch-logs.md>), [AWS CloudTrail](<https://devfeed.tech/topics/aws-cloudtrail.md>), [VPC Flow Logs](<https://devfeed.tech/topics/vpc-flow-logs.md>), [Amazon S3](<https://devfeed.tech/topics/amazon-s3.md>), [data](<https://devfeed.tech/topics/data.md>)

Tags: [advanced-300](<https://devfeed.tech/tags/advanced-300.md>), [amazon-cloudwatch](<https://devfeed.tech/tags/amazon-cloudwatch.md>), [amazon-cloudwatch-logs](<https://devfeed.tech/tags/amazon-cloudwatch-logs.md>), [amazon-guardduty](<https://devfeed.tech/tags/amazon-guardduty.md>), [amazon-route-53](<https://devfeed.tech/tags/amazon-route-53.md>), [amazon-web-services-aws](<https://devfeed.tech/tags/amazon-web-services-aws.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [aws-cloudtrail](<https://devfeed.tech/tags/aws-cloudtrail.md>), [aws-security-hub](<https://devfeed.tech/tags/aws-security-hub.md>), [best-practices](<https://devfeed.tech/tags/best-practices.md>), [cybersecurity](<https://devfeed.tech/tags/cybersecurity.md>), [guide](<https://devfeed.tech/tags/guide.md>), [incident-response](<https://devfeed.tech/tags/incident-response.md>), [logs](<https://devfeed.tech/tags/logs.md>), [s3](<https://devfeed.tech/tags/s3.md>), [security](<https://devfeed.tech/tags/security.md>), [security-blog](<https://devfeed.tech/tags/security-blog.md>), [security-identity-compliance](<https://devfeed.tech/tags/security-identity-compliance.md>), [shared-responsibility-model](<https://devfeed.tech/tags/shared-responsibility-model.md>), [technical-how-to](<https://devfeed.tech/tags/technical-how-to.md>), [threat-detection](<https://devfeed.tech/tags/threat-detection.md>), [vpc-flow-logs](<https://devfeed.tech/tags/vpc-flow-logs.md>)

### AI overview

This article explains how security engineers can detect multi-stage attacks on AWS by correlating signals across services with business context. It presents examples using CloudWatch Logs Insights and discusses expanding the correlations into an automated pipeline.

### Source excerpt

A single alert from one security service tells you something happened. Read that signal alongside activity from other services and your own business context, and you will know whether what happened is part of a multi-stage attack. Consider a short sequence. An identity calls GetCallerIdentity from a source address it hasn't previously used. Within minutes, [...]

## How MCP can help us investigate security incidents faster

DevFeed: [How MCP can help us investigate security incidents faster](<https://devfeed.tech/articles/how-mcp-can-help-us-investigate-security-incidents-faster-57305.md>)

Original publisher: [Read original article](<https://www.thoughtworks.com/insights/blog/leadership/how-MCP-can-help-us-investigate-security-incidents-faster>)

Author: Zichuan Xiong, Paul Rinaldi, Jack Naglieri

Published: 2025-07-09T00:00:00Z

Content type: article

Language: en

Sources: [Thoughtworks Insights](<https://devfeed.tech/sources/thoughtworks-insights.md>)

Topics: [Security](<https://devfeed.tech/topics/security.md>), [Model Context Protocol](<https://devfeed.tech/topics/model-context-protocol.md>), [site-reliability-engineering](<https://devfeed.tech/topics/site-reliability-engineering.md>), [incident](<https://devfeed.tech/topics/incident.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [VPC Flow Logs](<https://devfeed.tech/topics/vpc-flow-logs.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [alert-triage](<https://devfeed.tech/tags/alert-triage.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [iam](<https://devfeed.tech/tags/iam.md>), [iam-roles](<https://devfeed.tech/tags/iam-roles.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [kubernetes-audit-logs](<https://devfeed.tech/tags/kubernetes-audit-logs.md>), [logs](<https://devfeed.tech/tags/logs.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [reliability-engineering](<https://devfeed.tech/tags/reliability-engineering.md>), [security](<https://devfeed.tech/tags/security.md>), [security-incidents](<https://devfeed.tech/tags/security-incidents.md>)

### AI overview

This article argues that security context should become a core part of AI-assisted site reliability engineering. It describes capabilities for investigating security incidents, including cloud change-history inspection, time-based alert correlation, behavioral detection rules, and contextual analysis of activity logs from sources such as VPC Flow Logs and Kubernetes audit logs.

### Source excerpt

How MCP can help us investigate security incidents faster

## How we built reliable log delivery to thousands of unpredictable endpoints

DevFeed: [How we built reliable log delivery to thousands of unpredictable endpoints](<https://devfeed.tech/articles/how-we-built-reliable-log-delivery-to-thousands-of-unpredictable-endpoints-83493.md>)

Original publisher: [Read original article](<https://www.datadoghq.com/blog/engineering/reliable-log-delivery/>)

Author: Gabriel Reid

Published: 2025-06-23T00:00:00Z

Content type: article

Language: en

Sources: [Datadog](<https://devfeed.tech/sources/datadog.md>)

Topics: [log management](<https://devfeed.tech/topics/log-management.md>), [Cloud and systems](<https://devfeed.tech/topics/cloud-and-systems.md>), [VPC Flow Logs](<https://devfeed.tech/topics/vpc-flow-logs.md>)

Tags: [batching](<https://devfeed.tech/tags/batching.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [data-loss](<https://devfeed.tech/tags/data-loss.md>), [latency](<https://devfeed.tech/tags/latency.md>), [log-management](<https://devfeed.tech/tags/log-management.md>)

### AI overview

Datadog describes a log forwarding system that groups records by destination in compressed slice files stored in cloud object storage, then uses planning and shipping services to deliver batches. Failed deliveries are retried with exponential backoff, while adaptive concurrency helps destinations recover without disrupting forwarding to healthy endpoints. The design isolates destination failures and prioritizes newer logs when processing backlogs.

### Source excerpt

Learn how we built Datadog's Log Forwarding system for low-latency, high-throughput delivery to thousands of unreliable third-party endpoints.

## Automate AWS Athena Partitions for Organization CloudTrail Logs and VPC Flow Logs

DevFeed: [Automate AWS Athena Partitions for Organization CloudTrail Logs and VPC Flow Logs](<https://devfeed.tech/articles/automate-aws-athena-partitions-for-organization-cloudtrail-logs-and-vpc-flow-logs-23687.md>)

Original publisher: [Read original article](<https://medium.com/betclic-tech/automate-aws-athena-partitions-for-organization-cloudtrail-logs-and-vpc-flow-logs-2f322291c897?source=rss----7e406d68d94b---4>)

Author: Aurelien Cerveaux

Published: 2022-09-15T06:39:58Z

Content type: article

Language: en

Sources: [Betclic Tech](<https://devfeed.tech/sources/betclic-tech-medium.md>)

Topics: [VPC Flow Logs](<https://devfeed.tech/topics/vpc-flow-logs.md>), [AWS CloudTrail](<https://devfeed.tech/topics/aws-cloudtrail.md>), [table-partitioning](<https://devfeed.tech/topics/table-partitioning.md>), [Amazon DynamoDB](<https://devfeed.tech/topics/amazon-dynamodb.md>), [AWS CloudFormation](<https://devfeed.tech/topics/aws-cloudformation.md>), [AWS Glue](<https://devfeed.tech/topics/aws-glue.md>), [Amazon EventBridge](<https://devfeed.tech/topics/amazon-eventbridge.md>)

Tags: [amazon-s3](<https://devfeed.tech/tags/amazon-s3.md>), [athena](<https://devfeed.tech/tags/athena.md>), [automate](<https://devfeed.tech/tags/automate.md>), [aws](<https://devfeed.tech/tags/aws.md>), [aws-athena](<https://devfeed.tech/tags/aws-athena.md>), [aws-glue](<https://devfeed.tech/tags/aws-glue.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [cloudformation](<https://devfeed.tech/tags/cloudformation.md>), [cloudtrail](<https://devfeed.tech/tags/cloudtrail.md>), [code](<https://devfeed.tech/tags/code.md>), [cost](<https://devfeed.tech/tags/cost.md>), [daily](<https://devfeed.tech/tags/daily.md>), [dynamodb](<https://devfeed.tech/tags/dynamodb.md>), [eventbridge](<https://devfeed.tech/tags/eventbridge.md>), [lambda](<https://devfeed.tech/tags/lambda.md>), [organization](<https://devfeed.tech/tags/organization.md>), [partitions](<https://devfeed.tech/tags/partitions.md>), [query](<https://devfeed.tech/tags/query.md>), [s3](<https://devfeed.tech/tags/s3.md>), [sam](<https://devfeed.tech/tags/sam.md>), [vpc-flow-logs](<https://devfeed.tech/tags/vpc-flow-logs.md>)

### AI overview

The excerpt describes a daily process for creating Athena partitions to reduce scanned data and query costs for organization-wide CloudTrail and VPC Flow Logs stored in S3. The proposed deployment uses CloudFormation and SAM: a shared Lambda creates partitions for different log types, while DynamoDB stores partition names so the system can check whether a partition already exists without querying Athena. Each log type has its own Glue table with an appropriate structure and an EventBridge rule that triggers the Lambda daily with specific input. The excerpt ends while introducing the DynamoDB partition structure, so it does not show the implementation details or the rest of the workflow.

### Source excerpt

This article's goal is to explain how to query efficiently, and at low cost with AWS Athena, AWS CloudTrail logs, or VPC Flow logs by automating the creation of Athena partitions daily. AWS CloudTrail AWS CloudTrail is a service that records all API Calls and Events for AWS Accounts, including details on calls made to your AWS Services and the Console as well. Activated at the Organization level, CloudTrail logs help you in several cases: Simplified Compliance Summarizing Accesses Security Analysis and Troubleshooting Monitoring Users and Resources Activities Governance and Investigation CloudTrail Logs are delivered in an S3 Bucket in JSON format through many small files that make these difficult to operate and request. VPC Flow Logs VPC Flow Logs is a feature that allows you to capture traffic information going to and from your network interfaces in your VPC. It helps you to: Analyze and troubleshoot network issues Determine the direction of your traffic Monitor the traffic Like CloudTrail Logs, Flow Logs are published in an S3 Bucket for all accounts in the Organization. AWS Athena AWS Athena is a query service that permits you to analyze data directly in an Amazon S3. You can create tables in Athena which use AWS Glue Data Catalog and are based on an S3 location. To query efficiently and with less scanned data and optimize the cost, we need to create some partitions. To know more about Tables, Databases, and Catalog in Athena. Automate Partitions Creation In our case, we are using CloudTrail Logs and VPC Flow Logs to detail the solution and the source code. All is done in CloudFormation and using SAM to deploy the Lambda. Global Overview We have several parts to automate the creation of our partitions. A common part containing: The Lambda is used to create partitions concerning different log types A DynamoDB table used to store partition names A specific part for each log type contains: The Glue Table with the proper structure An EventBridge Rule to trigger the