<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Bhartia Naina on Medium]]></title>
        <description><![CDATA[Stories by Bhartia Naina on Medium]]></description>
        <link>https://medium.com/@bhartia_naina?source=rss-8baedcffa75c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Bhartia Naina on Medium</title>
            <link>https://medium.com/@bhartia_naina?source=rss-8baedcffa75c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 09:59:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bhartia_naina/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Configure AWS CloudFront with Origin Access Control]]></title>
            <link>https://medium.com/@bhartia_naina/configure-aws-cloudfront-with-origin-access-control-f15ec7b09859?source=rss-8baedcffa75c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f15ec7b09859</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[content-delivery-network]]></category>
            <category><![CDATA[access-control-origin]]></category>
            <category><![CDATA[aws-cloudfront]]></category>
            <dc:creator><![CDATA[Bhartia Naina]]></dc:creator>
            <pubDate>Sat, 01 Jun 2024 12:20:16 GMT</pubDate>
            <atom:updated>2024-06-01T12:20:16.026Z</atom:updated>
            <content:encoded><![CDATA[<p>AWS CloudFront is a fast content delivery network (CDN) service provided by Amazon Web Services (AWS). It securely delivers data, videos, applications, and APIs to customers globally with low latency and high transfer speeds.</p><p>In this blog, we will be creating AWS CloudFront with Origin Access Control which will be used to restrict access to our content and force all requests to come through CloudFront instead of coming directly to a s3 bucket.</p><p><strong>High Level Steps:</strong></p><ol><li>Create an S3 Bucket: Enable public access and upload an image to the bucket.</li><li>Create a CloudFront distribution: Test the distribution is working.</li><li>Remove Public Access: Update the bucket policy to remove public access from the bucket and only allow CloudFront to access the contents of the bucket and also enable the block public access settings.</li><li>Create an Origin Access Control: Add the Origin Access Control to our CloudFront Origin.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/393/1*2hSptJ81kMqLC3F7-YGOzA.png" /></figure><p><strong>Detailed steps:</strong></p><p><strong>Step 1: Create an S3 Bucket: Enable public access and upload an image to the bucket.</strong></p><p>Navigate to the AWS Console. Search for S3. Click on “Create Bucket”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Muld_uGNxcrWsPmpLU3Uvg.png" /></figure><p>Give a bucket name. Here I have chosen “mycforigin-1245”.<br>Region: us-east-1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*8QHPG6-7qabpzsw_qAVmcQ.png" /></figure><p>Scroll down and remove the “Block Public Access settings” for this bucket.<br>Acknowledge your settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*_rA0XAQ9nFjMiBxLV7u-0Q.png" /></figure><p>Scroll down to the bottom and click “Create Bucket”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*K6Oa2xLifIPnMolvtILmjw.png" /></figure><p>Select your bucket Name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ftS6VMvI6Ya5z5cTZ54AOg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gv3U5X7iCIAz8y-vltrElw.png" /></figure><p>Select “Permissions”. Scroll down to “Bucket Policy” and select Edit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z6RUFwksamxaiYPHi7MXuQ.png" /></figure><p>Copy the below policy in the Editor:</p><p>{<br> “Id”: “Policy1675245969017”,<br> “Version”: “2012–10–17”,<br> “Statement”: [<br> {<br> “Sid”: “Stmt1675245966980”,<br> “Action”: [<br> “s3:GetObject”<br> ],<br> “Effect”: “Allow”,<br> “Resource”: “arn:aws:s3:::YOUR-BUCKET-NAME/*”,<br> “Principal”: “*”<br> }<br> ]<br>}</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6izF3_lhXXdXyQ4Szp7VVQ.png" /></figure><p>Update your Bucket Name in Line 11.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P0ru80igsBIfWFRuNF8Zsg.png" /></figure><p>Note: /* in line 11 means that the policy will apply to all the contents in the bucket.</p><p>Scroll down and click “Save Changes”.</p><p>Now, we will upload an image file in our bucket.</p><p>Select “Objects” in the bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RWua_s3y61zNlLPzwnQJPw.png" /></figure><p>Click on “Upload”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*GdmTRxaSbhxlYm-OsP6ltQ.png" /></figure><p>Select “Add files”. Browse the file you want to upload.<br>Scroll down and select “Upload”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*6Yl_w8CU4IVfZl8ap7aspQ.png" /></figure><p>You should see the message “ Upload Successful”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r1Xuyt4Cw29myVxydPedkA.png" /></figure><p>Select “Close” to close this page.</p><p>Step 2: Create a CloudFront distribution and test if it is working.</p><p>Navigate to AWS CloudFront dashboard. Click “Create a CloudFront distribution”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*25YH4GYZMg0ZQRIaSnKmtg.png" /></figure><p>Select the origin as the s3 bucket we just created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*Pk4r1RMbH-CY0lZleZPcHw.png" /></figure><p>Scroll down to the bottom leaving all the settings as default and click “Create Distribution”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*xe9r47zE4BXJRZPmF8XTSQ.png" /></figure><p>You should see this message “Successfully created new distribution” once it is created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g3yXDVh715WVAN8OV-Kibg.png" /></figure><p>Go back to the CloudFront console, select your distribution domain name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PUbFXPqPrpcsXOzdD2AXmg.png" /></figure><p>Paste the domain name in the browser in a different tab and add your file name (image file that you uploaded) like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*smOTlvEmJns1gvwzs8eVOQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*powmk6p6-vIWuV8vZTovFA.png" /></figure><p>Hit Enter and you should be able to see the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZDkW4th2glyh0vf__bGlVg.png" /></figure><p>But we have public access enabled on our bucket and we want all traffic to come through CloudFront URL. So we will remove the public access settings now.</p><p><strong>Step 3: Update the bucket policy to remove public access from the bucket and only allow CloudFront to access the contents of the bucket and also enable the block public access settings.</strong></p><p>Navigate to the s3 bucket. Select “Permissions”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2HpxeAa-gJcciBbZl_JFQQ.png" /></figure><p>Under Block Public Access, click “Edit”. Select “Block All Public Access” and click “Save Changes”.</p><p>Confirm the changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*qy6toY4CExpAkNnn_Xh13w.png" /></figure><p>Now, we will update the bucket policy. <br>Remove the existing policy and paste the policy given below:</p><p>{<br> “Version”: “2012–10–17”,<br> “Statement”: {<br> “Sid”: “AllowCloudFrontServicePrincipalReadOnly”,<br> “Effect”: “Allow”,<br> “Principal”: {<br> “Service”: “cloudfront.amazonaws.com”<br> },<br> “Action”: “s3:GetObject”,<br> “Resource”: “arn:aws:s3:::YOUR-BUCKET-NAME/*”,<br> “Condition”: {<br> “StringEquals”: {<br> “AWS:SourceArn”: “ARN-OF-YOUR-CF-DISTRIBUTION”<br> }<br> }<br> }<br>}</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*HEQBHURGu9qxkElCQxI4dA.png" /></figure><p>Update the bucket name in line 10 and CloudFront distribution name in line 13.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZIvydgIWT645ZCKpaoEmcA.png" /></figure><p>The above policy will allow access to the contents of the s3 bucket only through CloudFront Distribution.<br>Scroll down and click “Save Changes”.</p><p>These 2 changes in our s3 bucket have removed public access from the bucket.</p><p><strong>Step 4: Create an Origin Access Control and add the Origin Access Control to our CloudFront Origin.</strong></p><p>Navigate to the CloudFront console and select “Origin access” under “Security” on the left.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qjfRkS2gK3Kv9H8apOtkNA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zs-nxWDirwK_iWIFidKn1Q.png" /></figure><p>Click “Create control setting”.<br>Give it a name and leave all settings as default and click “Create”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*1S1nNWNlI5jSi5HIAnCY3w.png" /></figure><p>Now we will add the origin access control to our origin.</p><p>Navigate to the CloudFront distribution. Select “Origins”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*engj0FiKmiWEpBUFCiwyLg.png" /></figure><p>Select your origin using the radio button and click “Edit”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*43ALAJlF0Op7AEAXPkAytw.png" /></figure><p>Under “Origin Access”, select “Origin access control settings (recommended)” and select the Origin Access Point we created earlier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*LDWANyxbi5SE-ujCLciNMA.png" /></figure><p>Click “Create new OAC”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*QJozL_WljEm0CWcHGY5SUg.png" /></figure><p>Click “Create”. Save your changes.<br>Once the deployment is complete, navigate to the CloudFront Distribution tab and copy the distribution domain name and paste it in the browser with a forward slash followed by the name of the image file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yVieA1ZuWWf1Khyc7EgR3Q.png" /></figure><p>Hit Enter and you should see the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pG7_XT-9qTxW-6RN3TWLow.png" /></figure><p>This is the way Origin Access Control(OAC) is used to restrict access to the contents of a s3 bucket so that all users must use the CloudFront URL instead of a direct S3 URL. This allows us to remove public access from our bucket configuration. CloudFront can speed up the delivery of your static content to viewers around the world.</p><p>Hope this detailed blog has been helpful to you. I would be delighted to receive your feedback, suggestions, and expressions of appreciation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f15ec7b09859" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scheduling Automated Tasks using EventBridge and AWS Config]]></title>
            <link>https://medium.com/@bhartia_naina/scheduling-automated-tasks-using-eventbridge-and-aws-config-b20216ef624e?source=rss-8baedcffa75c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b20216ef624e</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-eventbridge]]></category>
            <category><![CDATA[aws-config]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Bhartia Naina]]></dc:creator>
            <pubDate>Wed, 20 Dec 2023 16:21:47 GMT</pubDate>
            <atom:updated>2023-12-20T16:21:47.139Z</atom:updated>
            <content:encoded><![CDATA[<p>AWS EventBridge is a fully-managed event bus service provided by Amazon Web Services (AWS). It enables you to connect various applications using events (data from one application notifying another about a change) in a serverless architecture. EventBridge simplifies the development of event-driven applications by allowing you to build decoupled and scalable systems.<br>AWS Config is a service provided by Amazon Web Services (AWS) that enables you to assess, audit, and evaluate the configurations of your AWS resources. It helps you ensure compliance with your organization’s policies, track changes to resources over time, and troubleshoot operational issues related to configurations.</p><p>EventBridge can detect an automated task when AWS Config detects a compliance change.</p><p>In this blog post, you will get to know about the process of setting up an EventBridge rule designed to receive notifications from AWS Config whenever it identifies a noncompliant resource. Subsequently, this rule will initiate an SNS notification to deliver an email alert. The entire process is illustrated step by step in the AWS Console, complete with detailed instructions and accompanying screenshots for clarity.</p><h3>Objective:</h3><ol><li><strong>Create an AWS Config rule:</strong> Our rule will check that all EC2 Instances are created without a public IP Address.</li><li><strong>Create an SNS Topic: </strong>We’ll subscribe to the topic using our email address.</li><li><strong>Configure an EventBridge Rule:</strong> Our EventBridge rule will trigger an SNS notification whenever a <em>Config rule compliance change</em> event is detected.</li><li><strong>Test our Setup: </strong>Create an EC2 Instance with a public IP Address and see if we receive a notification.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*zQVN-qeJB5FR973IXNXCaw.png" /></figure><p><strong>Step 1: Create an AWS Config Rule</strong></p><p>In the AWS Console, under Services, select “Config”. Make sure you are operating in <em>Northern Virginia </em>region. If you havent configured Config before, click on “1-click setup”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3lXUT_4MLUnOftZMn7jltA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CxjyZAOsVBB4YCawkweH_Q.png" /></figure><p>Hit on <em>Confirm</em> button.</p><p>Select <em>Rules</em> in the left hand menu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*69nxcvC5HTL38LCJZUKvEg.png" /></figure><p>Click on “<em>Add Rule</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eLMOWNlkdeFz_5XW3SLgPw.png" /></figure><p>Select rule type: Add AWS Managed Rule</p><p>Scroll down and type “<em>no-public</em>” in the search bar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-phg-njfgECQ85fs94aFew.png" /></figure><p>Select “<em>ec2-instance-no-public-ip</em>”. Scroll down and hit <em>Next</em>.</p><p>You will see the Configure Rule page. If you want, you can customize the rule name and description. Here, I am sticking to the default ones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v67EcKH0_KBKrIvLpl0S5w.png" /></figure><p>Scroll down to the Evaluation Mode. <br>Choose “Resources” under Scope of Changes. <br>Under “Resources”, leave EC2 Instance as default.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QNYAlIjoSDbw-PNg80DynQ.png" /></figure><p>We dont need to define any parameters. Scroll down and Click Next.</p><p>Review all your options in the next step and hit “Save”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qTmb-EpHmyikOIkxlzp8DQ.png" /></figure><p>You can see the rule created under “<em>Rules</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ajPhfCGNcvzMWP-YGre9xQ.png" /></figure><p><strong>Step 2: Create an SNS Topic.</strong></p><p>Search for “SNS” under <em>Services</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r61OkxYWvD94U0tMehDk_Q.png" /></figure><p>Select “Topics” on the left hand menu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NVaPZ0dZMW68lUcLgnxlkA.png" /></figure><p>You should see the below page. Select “<em>Create Topic</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8nuDeUsLrjIciVWhMyfdNQ.png" /></figure><p><strong>Type:</strong> Standard [To send and Email Notification, we need to choose <em>Standard </em>Topic].<br><strong>Name/Display Name:</strong> Any name of your choice. Here I have given “Non-Compliant-EC2Instances”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*fnMjWjKzIR7WDuUPMLLtnw.png" /></figure><p>Scroll down to the bottom and click “<em>Create Topic</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*FN9ekCS6KJzT70cJ4G1LRQ.png" /></figure><p>You should see the topic just created under “<em>Topics</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Tl1GSFlK3o3amFcgmjFzw.png" /></figure><p>Now we need to subscribe our email address to our topic. Select “<em>Subscriptions</em>” in the left hand menu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NP8yZ6UpQMfkLhtD-ZlseQ.png" /></figure><p>Select “<em>Create Subscription</em>”.</p><p>Select your topic under “<em>Topic ARN</em>”.<br><strong>Protocol:</strong> Email<br><strong>Endpoint:</strong> Here you can add your email address. This email address will receive the notifications. You will need to confirm the subscription by checking the email and clicking the link.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*Q7ywPuMGBHbsnzs2boVbRg.png" /></figure><p>After clicking on “<em>Create Subscription</em>”, you should see the created subscription.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NiP0f5Kd439_k4CbxqqMrQ.png" /></figure><p>Confirm the subscription from your email.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*STrfK1YJrmDSEJfBnHgCvA.png" /></figure><p>You should see the confirmation as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*rmLAq29BevPPkOHIQSVErA.png" /></figure><p><strong>Step 3: Create EventBridge Rule.</strong></p><p>Under Services, select “<em>EventBridge</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*CcHGmb73dh1ZimEazkYxRA.png" /></figure><p>Select “<em>EventBridge Rule</em>” and select “<em>Create rule</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7FPYgcDViEQVyHChHgk2sw.png" /></figure><p>Name: Give any name of your choice. Here I am giving “EC2InstanceComplianceRule”.</p><p><strong>Event Bus:</strong> Default<br><strong>Rule Type:</strong> Rule with an event pattern</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*w0ltAOyEpfYaqo_CGRMnCQ.png" /></figure><p>Hit <em>Next</em>.</p><p><strong>Event Source:</strong> AWS Event</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*TSAGBcLIYjPnku93UBZDRA.png" /></figure><p><strong>Creation Method:</strong> Use pattern from<br><strong>Event source:</strong> AWS Services<br><strong>AWS Service: </strong>Config<br><strong>Event Type:</strong> Config Rules Compliance Change<br>Leave the rest as default and hit <em>Next.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*RyibXGI2_BpxBcwZLEo_jg.png" /></figure><p>Under Targets, select the following:<br><strong>Target types:</strong> AWS service<br><strong>Select a target:</strong> SNS Topic<br><strong>Topic:</strong> Select the topic you created.<br>Hit <em>Next.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*CArKxepD-Wl6VdmO8n8ONQ.png" /></figure><p>Tags are completely optional. Hit <em>Next.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*n46Myewg9vsafDjn8idfeA.png" /></figure><p>Review your options and click “<em>Create Rule</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*oezff3jKYqIPxDG7VHBKtw.png" /></figure><p>You should see the EventBridge rule created under <em>Rules</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CoQH23huZAIo-K3iV8PTuA.png" /></figure><p><strong>Step 4: Test that everything is working.</strong></p><p>Lets launch an EC2 Instance.<br>Select EC2 under <em>Services</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*amSjUeCcMnmdWaKaLigLvg.png" /></figure><p>Click on “<em>Launch Instance</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7W__Rsq9XFdWHO4xBIx4RQ.png" /></figure><p>Assign an instance name of your choice.<br>Select an AMI. Here I have chosen “<em>Amazon Linux 2023 AMI</em>” which is free tier eligible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*aw4kMlMPl7KwZ-XUVEq9nQ.png" /></figure><p><strong>Instance Type:</strong> t2.micro<br><strong>Key Pair:</strong> Proceed without a key pair.<br>Under <em>Network Settings</em>, ensure that <em>Auto-assign public IP</em> is set to “Enabled”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*SqonbljFV7ke62yCeCGtGw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NEGw1E0RElanQe-0tuI1Cw.png" /></figure><p>Hit “<em>Launch instance</em>”.<br>You can see the launched instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NEGw1E0RElanQe-0tuI1Cw.png" /></figure><p>Navigate to AWS Config. Under <em>Rules</em>, you should see 1 compliant resource.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*--Z0CvJZ-NYK4RvnbgBNqQ.png" /></figure><p>If you open the rule, you should be able to see the details of the non compliant resource i.e. EC2 Instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-kHG1PFtajJp-ARZ36eOjg.png" /></figure><p>You will also get notified on the email you subscribed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*u-4Yn56x1VWOoLbGAzBBPA.png" /></figure><p>Our testing has now concluded. Upon identifying the EC2 Instance with a public IP, EventBridge initiated an SNS notification, which was then sent via email.</p><p>Hope this detailed blog has been helpful to you. I would be delighted to receive your feedback, suggestions, and expressions of appreciation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b20216ef624e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>