Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » AWS/Azure/OpenShift » AWS Flow Logs IAM Role Setup
  • Screenshot 2020 05 13 at 22.49.32
    Fix for a boot image was not found for HyperV Virtual Machine Virtualization
  • images 5 3
    How to uninstall AWS CLI in Windows AWS/Azure/OpenShift
  • Featured Image
    Remote WMI Connection: How to enable or disable WMI Traffic Using Firewall UI Windows
  • Veeam V11
    What’s new in Veeam Backup and replication v11? Backup
  • Dockerize NodeJS Application
    Dockerizing a NodeJs Express Application Automation
  • Ec2 Instance
    How to create an EC2 Instance AWS/Azure/OpenShift
  • M365 Users
    Manage MS365 Accounts with PowerShell Microsoft Exchange/Office/365
  • Error during connect in the default daemon configuration on Windows
    Preparation failed: The docker client must be run with elevated privileges Version Control System

AWS Flow Logs IAM Role Setup

Posted on 09/03/201818/12/2025 Christian By Christian No Comments on AWS Flow Logs IAM Role Setup
AWS Flow Logs

In this article, we shall discuss “AWS Flow Logs IAM Role Setup” To effectively monitor traffic within your VPC, subnet, or network interface using flow logs, it’s crucial to have the required permissions to create AWS Flow Logs roles. Please, see Logon Failure Reasons for Windows Event Viewer, how to Add and Remove Multiple Virtual Desktops in Windows, and KDC reply did not match expectations while getting initial credential.

However, this role enables the creation of flow logs for VPCs, subnets, or network traffic, ensuring comprehensive monitoring across all network interfaces within the designated VPC or subnet.

To enhance your AWS environment, create an AWS Flow Logs Role. However, This role ensures the efficient publishing of flow log data to a dedicated log group in CloudWatch Logs, with each network interface having its unique log stream.

Also, see How to add servers to the Trusted Hosts list, and Preparation failed: Error during connect in the default daemon configuration on Windows, the docker client must be run with elevated privileges.

Create an IAM role

To create an IAM role for flow logs, open the IAM console at https://console.aws.amazon.com/iam/.

In the navigation pane, choose Roles, Create role. Under Select type of trusted entity, choose AWS service (EC2, lambda and others) and select EC2 (Allow EC2 instance to call AWS services on your behalf)

IAM Role

Choose Next: Permissions. On the attached permissions policies, Do not select anything and (click on Next: Review.

Network Monitoring

Enter a name for your role; for example, Chris-Flow-Logs-Role, and optionally provide a description. Choose Create role.

Cloud Security
AWS Flow Logs

Please, see Creating IAM Users, Adding MFA and Policies on AWS, How to prevent emails from going into a junk folder in Office365, and Administer Cisco ASA: Mastering CLI Management.

Add Policy

Moreover, After successfully creating the AWS Flow Logs Role, select its name and click to open it.

Under Permissions, choose to add inline policy. Choose the JSON tab as shown below

IAM Role

Nonetheless Navigate to this URL and copy the IAM Roles for Flow logs. Copy the IAM roles for flow logs and paste in the window as shown below

{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents",
"logs:DescribeLogGroups",
"logs:DescribeLogStreams"
],
"Effect": "Allow",
"Resource": "*"
}
]
}

– Choose Review policy.
– Enter a name for your policy, and then choose to Create policy.
– and then choose to Create policy.
– In the section, IAM Roles for Flow Logs created previously (i.e, click on the role)
–  In the section, IAM Roles for Flow Logs created previously,
– choose Trust relationships

To optimize network monitoring. Start by editing the trust relationship, then proceed to delete the existing policy document.

Copy and paste in the new trust relationship policy from https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/flow-logs.html#flow-logs-iam

{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Principal": {
"Service": "vpc-flow-logs.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}

Please, see Creating Profiles for your AWS Access Credentials for AWS Toolkit in Visual Studio, and MFA on Root Account: Create a User on AWS and Register MFA.

Update Trust Policy

When you are done, choose Update Trust Policy.

Note: On the Summary page, take note of the Role ARN for your role. You need this ARN when you create your flow log. To create a flow log, view flog and delete flow log, pls follow this URL below.

I hope you found this article on AWS Flow Logs IAM Role Setup very useful. Please, feel free to leave a comment below.

5/5 - (1 vote)

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
AWS/Azure/OpenShift Tags:AWS, AWS Flow Logs IAM Role Setup, Flow logs

Post navigation

Previous Post: Upgrade ManageEngine Password Manager Pro
Next Post: Access EC2 Linux Instance via the Password

Related Posts

  • S3 Bucket 1
    How to delete AWS S3 Bucket and Objects via  AWS CLI from Linux AWS/Azure/OpenShift
  • images
    Fix the Synchronization service scheduler is suspended AWS/Azure/OpenShift
  • kubernetes
    Create and monitor Apps using the Azure Kubernetes Service manifest AWS/Azure/OpenShift
  • amazon ec2 multiple ips 1
    What to note before assigning Multiple IPs’ to an Instance AWS/Azure/OpenShift
  • image 10
    How to use Microsoft SQL Server Management Studio to Export and Import your MsSQL database from Azure to local computer AWS/Azure/OpenShift
  • How to backup Azure VIM 3
    How to backup Azure VM with VM Settings AWS/Azure/OpenShift

More Related Articles

S3 Bucket 1 How to delete AWS S3 Bucket and Objects via  AWS CLI from Linux AWS/Azure/OpenShift
images Fix the Synchronization service scheduler is suspended AWS/Azure/OpenShift
kubernetes Create and monitor Apps using the Azure Kubernetes Service manifest AWS/Azure/OpenShift
amazon ec2 multiple ips 1 What to note before assigning Multiple IPs’ to an Instance AWS/Azure/OpenShift
image 10 How to use Microsoft SQL Server Management Studio to Export and Import your MsSQL database from Azure to local computer AWS/Azure/OpenShift
How to backup Azure VIM 3 How to backup Azure VM with VM Settings AWS/Azure/OpenShift

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • Screenshot 2020 05 13 at 22.49.32
    Fix for a boot image was not found for HyperV Virtual Machine Virtualization
  • images 5 3
    How to uninstall AWS CLI in Windows AWS/Azure/OpenShift
  • Featured Image
    Remote WMI Connection: How to enable or disable WMI Traffic Using Firewall UI Windows
  • Veeam V11
    What’s new in Veeam Backup and replication v11? Backup
  • Dockerize NodeJS Application
    Dockerizing a NodeJs Express Application Automation
  • Ec2 Instance
    How to create an EC2 Instance AWS/Azure/OpenShift
  • M365 Users
    Manage MS365 Accounts with PowerShell Microsoft Exchange/Office/365
  • Error during connect in the default daemon configuration on Windows
    Preparation failed: The docker client must be run with elevated privileges Version Control System

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,839 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.