<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sanket Saxena</title>
    <description>The latest articles on DEV Community by Sanket Saxena (@sanketsaxena).</description>
    <link>https://dev.to/sanketsaxena</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1141816%2Fef5e3cbe-76f5-4b34-a42f-89d53ead8552.jpeg</url>
      <title>DEV Community: Sanket Saxena</title>
      <link>https://dev.to/sanketsaxena</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sanketsaxena"/>
    <language>en</language>
    <item>
      <title>amazon q cli</title>
      <dc:creator>Sanket Saxena</dc:creator>
      <pubDate>Mon, 16 Jun 2025 07:11:56 +0000</pubDate>
      <link>https://dev.to/sanketsaxena/amazon-q-cli-4pjd</link>
      <guid>https://dev.to/sanketsaxena/amazon-q-cli-4pjd</guid>
      <description></description>
      <category>aws</category>
      <category>cli</category>
      <category>howto</category>
    </item>
    <item>
      <title>amazon nova sonic</title>
      <dc:creator>Sanket Saxena</dc:creator>
      <pubDate>Fri, 23 May 2025 06:09:10 +0000</pubDate>
      <link>https://dev.to/sanketsaxena/amazon-nova-sonic-59p9</link>
      <guid>https://dev.to/sanketsaxena/amazon-nova-sonic-59p9</guid>
      <description></description>
      <category>aws</category>
      <category>cloudcomputing</category>
      <category>cloud</category>
    </item>
    <item>
      <title>My Journey as a Mentor in the "Future AWS Community Builders Mentoring Series"</title>
      <dc:creator>Sanket Saxena</dc:creator>
      <pubDate>Thu, 06 Mar 2025 12:15:25 +0000</pubDate>
      <link>https://dev.to/sanketsaxena/my-journey-as-a-mentor-in-the-future-aws-community-builders-mentoring-series-15go</link>
      <guid>https://dev.to/sanketsaxena/my-journey-as-a-mentor-in-the-future-aws-community-builders-mentoring-series-15go</guid>
      <description>&lt;p&gt;Being an &lt;strong&gt;AWS Community Builder&lt;/strong&gt; has been a great experience for me. It has helped me grow, learn, and connect with amazing people in the AWS community. Recently, I had the opportunity to &lt;strong&gt;join the panel as a mentor&lt;/strong&gt; in the &lt;strong&gt;"Future AWS Community Builders Mentoring Series"&lt;/strong&gt; held at AWS Office Kuala Lumpur,  Malaysia on &lt;strong&gt;12th November 2024&lt;/strong&gt;. This experience allowed me to guide aspiring community builders, answer their queries, and share insights on how this program can benefit their careers.&lt;/p&gt;

&lt;h2&gt;
  
  
  My Experience as a Mentor
&lt;/h2&gt;

&lt;p&gt;During the mentoring session, I had the chance to interact with many enthusiastic attendees who were eager to know more about the program.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8hsgvfv3ihgbzuvibmao.JPG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8hsgvfv3ihgbzuvibmao.JPG" alt="Image description" width="800" height="600"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The moderator asked very interesting questions which all the panelists loved to answer.&lt;br&gt;
Some of the questions were:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Why did you join the AWS Community? &lt;/li&gt;
&lt;li&gt;How has being a part of the AWS Community helped your career?
&lt;/li&gt;
&lt;li&gt;How did you get to know about the CB program? And what did you do to join the program? &lt;/li&gt;
&lt;li&gt;What's the benefit you like the most from the CB program? &lt;/li&gt;
&lt;li&gt;What advice do you have for the audience who is interested in joining the AWS Community Builders program?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I tried to answer all the questions and also try to create a positive impact on the attendees by keeping real-life experiences and benefits.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note: Happy to see a few of the attendees applied and now became the Community Builder this year&lt;/strong&gt; &lt;/p&gt;

&lt;h2&gt;
  
  
  The Impact of Being an AWS Community Builder
&lt;/h2&gt;

&lt;p&gt;Joining this program has changed my career in many ways. It has helped me build a strong professional network, gain hands-on experience with AWS services, and contribute to the community in meaningful ways.&lt;/p&gt;

&lt;p&gt;If you have a passion for AWS and love sharing knowledge, I highly encourage you to apply for the AWS Community Builder program. It’s a journey of learning, growing, and giving back to the community.&lt;/p&gt;

&lt;p&gt;Let’s keep building and inspiring others!&lt;/p&gt;

</description>
      <category>awscommunitybuilder</category>
      <category>aws</category>
      <category>mentorship</category>
    </item>
    <item>
      <title>My Experience at AWS Cloud Day Malaysia 2024: A Speaker and Community Advocate’s Perspective</title>
      <dc:creator>Sanket Saxena</dc:creator>
      <pubDate>Sat, 28 Dec 2024 06:14:52 +0000</pubDate>
      <link>https://dev.to/sanketsaxena/my-experience-at-aws-cloud-day-malaysia-2024-a-speaker-and-community-advocates-perspective-1oj5</link>
      <guid>https://dev.to/sanketsaxena/my-experience-at-aws-cloud-day-malaysia-2024-a-speaker-and-community-advocates-perspective-1oj5</guid>
      <description>&lt;p&gt;On October 29, 2024, I had the incredible opportunity to attend and actively participate in AWS Cloud Day Malaysia at the iconic KLCC Convention Center. This event brought together a dynamic mix of cloud enthusiasts, developers, architects, and industry leaders, highlighting the strength of Malaysia’s tech ecosystem.&lt;/p&gt;

&lt;h2&gt;
  
  
  Speaking at the Developer Lounge: “AWS Serverless Design for IoT”
&lt;/h2&gt;

&lt;p&gt;One of the highlights was delivering a talk in the Developer Lounge on “AWS Serverless Design for IoT.” As a passionate advocate for IOT, Networking, and serverless architectures, I was thrilled to share my insights on how AWS’s serverless offerings can revolutionize IoT solutions.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7ihrez922m6t7exf1i1l.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7ihrez922m6t7exf1i1l.jpeg" alt="Speaking on aws cloud day malaysia" width="800" height="797"&gt;&lt;/a&gt;&lt;br&gt;
During the session, I covered:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The fundamentals of AWS IOT Thing, How to connect with AWS IOT Core, AWS Lambda, Amazon API Gateway, and Amazon DynamoDB, and especially about MQTT Protocol.&lt;/li&gt;
&lt;li&gt;Practical design patterns for IoT applications, showcasing how serverless architecture can enhance scalability, cost-efficiency, and ease of management.&lt;/li&gt;
&lt;li&gt;Real-world use cases demonstrating the seamless integration of AWS services in building end-to-end IoT solutions.&lt;/li&gt;
&lt;li&gt;The session was well-received, with engaging discussions and insightful questions from the audience. It was incredibly fulfilling to see attendees leave with actionable takeaways for their IoT projects.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq625rrxbuv1le2hgr001.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq625rrxbuv1le2hgr001.jpg" alt="AWS User Group Malaysia Booth" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Representing AWS User Group Malaysia
&lt;/h2&gt;

&lt;p&gt;As one of the organizers and AWS User Group Leader Malaysia, another highlight of my day was setting up a booth with all my volunteer team to promote &lt;strong&gt;AWS Community Day Malaysia&lt;/strong&gt; on behalf of AWS User Group Malaysia. The booth served as a hub for community members to connect, learn about upcoming events, and explore how the AWS User Group fosters knowledge-sharing and collaboration. Engaging with attendees at the booth was a rewarding experience, as it provided a platform to share the group’s mission and inspire others to join our thriving community.&lt;/p&gt;

&lt;h2&gt;
  
  
  A Heartfelt Thank You
&lt;/h2&gt;

&lt;p&gt;I am immensely grateful to the &lt;strong&gt;AWS Malaysia team&lt;/strong&gt; for organizing such a phenomenal event and for providing platforms like the Developer Lounge and the AWS User Group booth to contribute meaningfully. It was an honor to represent AWS User Group Malaysia, share my knowledge, and learn from the experiences of others.&lt;/p&gt;

&lt;h2&gt;
  
  
  Looking Ahead
&lt;/h2&gt;

&lt;p&gt;AWS Cloud Day Malaysia 2024 was not just an event; it was an experience that reinforced my belief in the transformative power of cloud technology and the value of community-driven initiatives. I look forward to participating in more such events and continuing to share, learn, and grow with the AWS community.&lt;/p&gt;

&lt;p&gt;If you’d like to connect or discuss more about AWS serverless and IoT, feel free to reach out. Let’s innovate together!&lt;/p&gt;

&lt;p&gt;Linkedin: &lt;a href="//linkedin.com/in/sanketsaxena1"&gt;Sanket Saxena&lt;/a&gt;&lt;/p&gt;

</description>
      <category>awsclouddaymalaysia</category>
      <category>awsiot</category>
      <category>serverlessdesign</category>
      <category>awsusergroupmalaysia</category>
    </item>
    <item>
      <title>Cross-account Lambda to Lambda calling - Same Region</title>
      <dc:creator>Sanket Saxena</dc:creator>
      <pubDate>Wed, 27 Dec 2023 15:47:10 +0000</pubDate>
      <link>https://dev.to/sanketsaxena/cross-account-lambda-to-lambda-calling-same-region-4jh5</link>
      <guid>https://dev.to/sanketsaxena/cross-account-lambda-to-lambda-calling-same-region-4jh5</guid>
      <description>&lt;p&gt;When we are working on a decoupled system that is managed in a Multi-Account environment sometimes we have to call the resources of another account to achieve the goal.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;u&gt;Let's try to understand by a metaphor&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Assume a System (&lt;strong&gt;Content Manager&lt;/strong&gt;) hosted in &lt;strong&gt;Account A&lt;/strong&gt; whose job is to create the movies and publish them to the S3 bucket via calling a LAMBA function. Once the movie is published a catalog will be ready on an S3 bucket.&lt;br&gt;
There is another System (Web App) hosted in &lt;strong&gt;Account B&lt;/strong&gt; which will read the file by scheduling a Lambda and run periodically (&lt;strong&gt;EventBridge Rule&lt;/strong&gt;) to display the movies on their Web Application.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Problem:&lt;/strong&gt;&lt;br&gt;
Both the systems are decoupled (Hosted on different AWS Accounts) and don't have any &lt;strong&gt;real-time&lt;/strong&gt; connection to let each other know about the operations they are performing.&lt;br&gt;
Example: CMS publishing will generate the files that the Web App doesn't know.&lt;/p&gt;

&lt;p&gt;The user can publish the movie which has to start at Midnight and be available on the Web Application for purchase but the EventBridge Rule will be run at 12:30 AM considering the publishing can be completed in 30 minutes. &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;No one can purchase the movie for 30 minutes.&lt;/li&gt;
&lt;li&gt;Someone always has to check the Scheduler runs and completes successfully. &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Solution:&lt;/strong&gt; Call the LAMBDA hosted in the Web App account &lt;strong&gt;(Account B)&lt;/strong&gt; from &lt;strong&gt;(Account A)&lt;/strong&gt; to Create a near real-time connection so the movie publishing and displaying on the web will be quick and ready for purchase.&lt;/p&gt;

&lt;h2&gt;
  
  
  Account A -Where the Lambda calling originates
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Create an IAM Role in Account A:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In the IAM console, create a new role.&lt;/li&gt;
&lt;li&gt;Choose the type of trusted entity as AWS service, and select Lambda as the use case.&lt;/li&gt;
&lt;li&gt;Attach a policy that allows the Lambda function to assume roles in the other account.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;2. Assume the Role in Lambda Function:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In your Lambda function code, use the AWS SDK to assume the role that was created in step 1.&lt;/li&gt;
&lt;li&gt;Obtain temporary security credentials (STS) after assuming the role.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;3. Invoke Lambda in Account B:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use the temporary security credentials to invoke the Lambda function in Account B.&lt;/li&gt;
&lt;li&gt;Ensure the Lambda function in Account B has the necessary IAM role and policies allowing the invocation from Account A.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Account B - Where the Lambda is invoked
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Create an IAM Role in Account B:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In the IAM console, create a new role.&lt;/li&gt;
&lt;li&gt;Define a trust relationship that allows the role to be assumed by the account in which the Lambda function in Account A resides.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;2. Define IAM Policies for Lambda Execution:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Attach policies to the IAM role in Account B that allow the Lambda function to execute.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;3. Configure Trust Relationship in Lambda Execution Role:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Edit the trust relationship of the Lambda execution role to allow Account A's IAM role to assume the role.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;4. Ensure Lambda Function Permissions:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Ensure that the Lambda function in Account B has the necessary IAM role and policies allowing invocation by Account A.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;By following the above steps, you establish secure cross-account access.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Ensure that both accounts have the appropriate permissions and trust relationships configured.&lt;/p&gt;

&lt;p&gt;Reference: &lt;br&gt;
&lt;a href="https://docs.aws.amazon.com/step-functions/latest/dg/tutorial-access-cross-acct-resources.html" rel="noopener noreferrer"&gt;AWS Documentation&lt;/a&gt;&lt;br&gt;
&lt;a href="https://repost.aws/knowledge-center/lambda-function-assume-iam-role" rel="noopener noreferrer"&gt;re:Post knowledge center&lt;/a&gt;&lt;/p&gt;

</description>
      <category>awslambda</category>
      <category>crossaccountlambda</category>
      <category>lambdarole</category>
      <category>awscrossaccount</category>
    </item>
    <item>
      <title>Concept of Cache HIT and Cache MISS: In-Memory Cache</title>
      <dc:creator>Sanket Saxena</dc:creator>
      <pubDate>Sat, 21 Oct 2023 06:32:43 +0000</pubDate>
      <link>https://dev.to/sanketsaxena/cache-hit-and-cache-miss-in-memory-cache-c21</link>
      <guid>https://dev.to/sanketsaxena/cache-hit-and-cache-miss-in-memory-cache-c21</guid>
      <description>&lt;p&gt;&lt;em&gt;“Caching is the concept of saving commonly/ frequently used data in memory and using them on behalf of the actual data source when the same types of operations or data are requested.”&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Two key terms in the world of caching are "Cache Hit" and "Cache Miss." Here we will see a super simple analogy to understand the concept of &lt;strong&gt;Cache HIT&lt;/strong&gt; and &lt;strong&gt;Cache MISS&lt;/strong&gt; in terms of In-Memory Cache. &lt;/p&gt;

&lt;p&gt;You can assume you are using AWS ElastiCache or AWS DynamoDB DAX for better understanding.&lt;/p&gt;

&lt;h2&gt;
  
  
  Analogy
&lt;/h2&gt;

&lt;p&gt;Think about a classroom having some Students and a Teacher.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CACHE MISS&lt;/strong&gt; &lt;br&gt;
&lt;strong&gt;Step 1&lt;/strong&gt;: One of the students asks a question about which the Teacher was not confident or didn't know the answer.&lt;br&gt;
&lt;strong&gt;Step 2&lt;/strong&gt;: The teacher checks it on the Internet to get the answer.&lt;br&gt;
&lt;strong&gt;Step 3&lt;/strong&gt;: The teacher responds to the student who asks this question.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpna1j9e2w82d0saxhin9.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpna1j9e2w82d0saxhin9.jpg" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CACHE HIT&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Step 4&lt;/strong&gt;: The next day another student asks the SAME question to the teacher and this time the teacher knows the answer because the Answer was saved &lt;strong&gt;&lt;em&gt;in his Memory&lt;/em&gt;&lt;/strong&gt;.&lt;br&gt;
&lt;strong&gt;Step 5&lt;/strong&gt;: The teacher responds to the student who asks this question without going to check on the Internet.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fryhf7c0gep9hzimrskc8.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fryhf7c0gep9hzimrskc8.jpg" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the above example:&lt;br&gt;
Students are the &lt;strong&gt;USERS&lt;/strong&gt; | The teacher is the &lt;strong&gt;CACHE&lt;/strong&gt; | Internet is the &lt;strong&gt;SOURCE&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Now Technically
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;CACHE MISS&lt;/strong&gt;&lt;br&gt;
Whenever your application requests data and If the data doesn't exist in the cache or has expired, your application requests the data from your data store. Your data store then returns the data to your application. Your application next writes the data received from the store to the cache. This is known as &lt;strong&gt;&lt;em&gt;Cache Miss&lt;/em&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxf1tp86eoc7skfv4hz4e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxf1tp86eoc7skfv4hz4e.png" alt="Image description" width="800" height="472"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CACHE HIT&lt;/strong&gt;&lt;br&gt;
Whenever your application requests data, it first requests the In-Memory cache. If the data exists in the cache and is current, Cache returns the data to your application. This is known as a &lt;strong&gt;&lt;em&gt;Cache Hit&lt;/em&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxjcqlqezfmw16cyygfjf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxjcqlqezfmw16cyygfjf.png" alt="Image description" width="800" height="482"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;IMPORTANT&lt;/strong&gt;: There is a concept of &lt;strong&gt;ADD TTL&lt;/strong&gt; to the cached data means when the data is written to the cache it has a TTL value example: 12hrs which means after 12hrs the cached data will be removed from the cache and the request for that data will again direct to the SOURCE.&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Exploring the Power of AWS EC2 Instance Connect Endpoint</title>
      <dc:creator>Sanket Saxena</dc:creator>
      <pubDate>Sat, 21 Oct 2023 05:29:43 +0000</pubDate>
      <link>https://dev.to/sanketsaxena/exploring-the-power-of-aws-ec2-instance-connect-endpoint-4go3</link>
      <guid>https://dev.to/sanketsaxena/exploring-the-power-of-aws-ec2-instance-connect-endpoint-4go3</guid>
      <description>&lt;p&gt;&lt;strong&gt;&lt;em&gt;Access EC2 with Temporary Credentials&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Before starting about EC2 Instance connect I would like you to assume that you have an Amazon EC2 Instance (Linux) launched in a private subnet (private IP address).&lt;/p&gt;

&lt;p&gt;Ideally, if you want to connect to this EC2 instance you will have two choices below:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Bastion Host&lt;/li&gt;
&lt;li&gt;VPN&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The problem with the above two choices is introducing a new service in your infrastructure and then paying for it and doing the maintenance, patching, etc.&lt;/p&gt;

&lt;p&gt;AWS announced a feature where you can connect to your instances launched in a private subnet using Amazon EC2 Instance connect Endpoint.&lt;/p&gt;

&lt;p&gt;Note: When writing this article this feature is available only for the Amazon Linux and Unbuntu AMI only.&lt;/p&gt;

&lt;p&gt;EC2 Instance Connect comes preinstalled on the following AMIs:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Amazon Linux 2 2.0.20190618 or later&lt;br&gt;
Ubuntu 20.04 or later&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What is AWS EC2 Instance Connect?
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;AWS EC2 Instance Connect Endpoint&lt;/em&gt; is a powerful feature provided by Amazon Web Services (AWS) that enhances the security and accessibility of EC2 instances. By leveraging this feature, users can establish secure connections to their instances without exposing SSH ports to the public internet.&lt;/p&gt;

&lt;p&gt;AWS EC2 Instance Connect Endpoint acts as a bridge between the AWS Management Console and the EC2 instances, facilitating secure SSH connections. It provides a dedicated endpoint for managing SSH access to instances, ensuring a streamlined and secure connection experience.&lt;/p&gt;

&lt;p&gt;Features:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Improved Security&lt;/li&gt;
&lt;li&gt;Simplified Access Management&lt;/li&gt;
&lt;li&gt;Streamlined Connection Process&lt;/li&gt;
&lt;li&gt;No Bastion Host Required&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5nyx6rfp7nbpbuvi4ziv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5nyx6rfp7nbpbuvi4ziv.png" alt="Image description" width="800" height="681"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Connect to your Linux Instance using Amazon EC2 Instance Connect Endpoint (Browser-based AWS Console)
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open the Amazon EC2 console at &lt;a href="https://console.aws.amazon.com/ec2/" rel="noopener noreferrer"&gt;https://console.aws.amazon.com/ec2/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;In the navigation pane, choose Instances.&lt;/li&gt;
&lt;li&gt;Select the instance and see the details pane containing the information about the instance.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Refer to the below screen where you can see the Pubic IPV4 address is empty and the instance has only a private IP address.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgs0rl6zas7tm044b7vlp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgs0rl6zas7tm044b7vlp.png" alt="Image description" width="800" height="369"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click on &lt;strong&gt;Connect&lt;/strong&gt; will redirect to the EIC section.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1b42l8230iduxk5ux8xi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1b42l8230iduxk5ux8xi.png" alt="Image description" width="800" height="728"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Choose the option Connect using the EC2 Instance Connect Endpoint.&lt;/p&gt;

&lt;p&gt;Username: ec2-user (default username)&lt;/p&gt;

&lt;p&gt;Max tunnel duration (seconds): 3600 (up to your requirement)&lt;/p&gt;

&lt;p&gt;EC2 Instance Connect Endpoint: Click on the textbox will ask you to create an endpoint (click on that link)&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;From the Create Endpoint section you can:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Enter the name of the Endpoint.&lt;/p&gt;

&lt;p&gt;Select EC2 Instance Connect Endpoint.&lt;/p&gt;

&lt;p&gt;Select the VPC and then select the Security group and the Subnet.&lt;/p&gt;

&lt;p&gt;Click on &lt;strong&gt;Create&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvicfysb1snmiuxxu2scm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvicfysb1snmiuxxu2scm.png" alt="Image description" width="800" height="821"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Once the Endpoint is created select that endpoint from the EC2 Instance Connect section and click on Connect and &lt;strong&gt;see the magic&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2zua742t351xv9sf1pti.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2zua742t351xv9sf1pti.png" alt="Image description" width="800" height="722"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Oops, what is this? why my instance is unable to connect?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fioz12enx8w1n0qia5xj1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fioz12enx8w1n0qia5xj1.png" alt="Image description" width="800" height="165"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you also face this issue please go to the Security group of the instance and check if the SSH is allowed in the Inbound rule or not.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff5yy2dqejzp7yrye4e1m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff5yy2dqejzp7yrye4e1m.png" alt="Image description" width="800" height="221"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If not please add the rule. For this example, I have allowed 0.0.0.0/0 but practically you should assign the valid CIDR range or IP address for SSH.&lt;/p&gt;

&lt;p&gt;Save the rules.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwlo9lc368w7ase0xadpj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwlo9lc368w7ase0xadpj.png" alt="Image description" width="800" height="232"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Connect again to the Instance and &lt;strong&gt;WOW!&lt;/strong&gt; you can connect your EC2 Instance using Amazon EC2 Instance Connect Endpoint.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk83l0uh5zqfxelws8o0w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk83l0uh5zqfxelws8o0w.png" alt="Image description" width="800" height="384"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy to see this!!&lt;/p&gt;

&lt;p&gt;Thank you for reading this article.&lt;/p&gt;

</description>
      <category>awsec2</category>
      <category>ec2instanceconnect</category>
      <category>vpcendpoint</category>
    </item>
  </channel>
</rss>
