<?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 Sachinrayarothsg on Medium]]></title>
        <description><![CDATA[Stories by Sachinrayarothsg on Medium]]></description>
        <link>https://medium.com/@sachinrayarothsg?source=rss-1abd797e6404------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Sq3aJWYciDuLwEKW</url>
            <title>Stories by Sachinrayarothsg on Medium</title>
            <link>https://medium.com/@sachinrayarothsg?source=rss-1abd797e6404------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 16:10:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sachinrayarothsg/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 Rest API using AWS API Gateway with EKS Cluster]]></title>
            <link>https://medium.com/@sachinrayarothsg/configure-rest-api-using-aws-api-gateway-with-eks-cluster-a224932be46c?source=rss-1abd797e6404------2</link>
            <guid isPermaLink="false">https://medium.com/p/a224932be46c</guid>
            <dc:creator><![CDATA[Sachinrayarothsg]]></dc:creator>
            <pubDate>Thu, 25 Jul 2024 08:48:34 GMT</pubDate>
            <atom:updated>2024-07-25T08:48:34.356Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Configure Rest API using AWS API Gateway with EKS Cluster</strong></p><p>In this configuration setup, we intend to use the AWS API Gateway, AWS EKS, AWS VPC endpoint and AWS App mesh</p><p><strong>API Gateway: </strong>API Gateway is fully managed AWS service used to creating, publishing and monitoring REST and HTTP API.</p><p><strong>EKS Cluster</strong>: Elastic Kubernetes Service is a AWS Service which eliminates the need of installing, configuring kubernetes cluster. EKS cluster can be configured using two mechanism, Fargate serverless and EC2 instance for scheduling the work loads. This makes easier for maintanence and cluster upgradation. EKS also used OIDC provider to assume role and connect with other AWS service like secret manager, parameter store etc…This is achieved using the role which can be amended as a service account in namespace level.</p><p><strong>AWS VPC Endpoint: </strong>A VPC endpoint is a service that allows you to privately connect your VPC to supported AWS services and VPC endpoint services powered by AWS PrivateLink without requiring an internet gateway, NAT device, VPN connection, or AWS Direct Connect connection. VPC endpoints provide secure and scalable connectivity without exposing traffic to the public internet.</p><p><strong>AWS APP MESH: </strong>AWS App Mesh is a service mesh that provides application-level networking to help manage and monitor microservices running on AWS. It standardizes how your services communicate, giving you end-to-end visibility and helping to ensure high availability for your applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wN8qicGpMmDcf-Ba25vuLw.png" /></figure><p>Aforementioned diagram is the flow to reach the API service through the internet. Below are the steps to accomplish the API gateway service to reach the EKS pod with security implemented.</p><ul><li>Configure a VPC endpoint for execute api-gateway with private DNS enabled</li><li>Create a network load balancer with the targets pointing to the VPC endpoint IPV4 address. For high resiliency, it is recommended to create the Load balancer and VPC endpoint in at least two availability zones.</li><li>Create and setup the EKS Fargate cluster. Schedule the pods which you want to expose to internet. For security purpose, suggest to enable Security group policy in EKS namespace . This has introduced by AWS starting EKS version 1.26 and later.</li><li>Create a namespace where the application resources are not deployed. We will leverage this namespace to host the AWS APP mesh. Configure the envoy container and schedule as a pod with external service creating Network load balancer. We use envoy container with APP_MESH_RESOURCE_CLUSTER enabled to reach the virtual service and virtual nodes.</li><li>Navigate to AWS API gateway console and create a VPC link. The VPC link will require a network load balancer to attach. Attach the network load balancer which got create in the previous step.</li><li>Deploy your API in the api gateway, pointing to VPC link with the amazon integration method. This can be achieved using the terraform or open API specs with components included for api gateway integration.</li><li>Create a custom domain from the gateway console, pointing to the VPC endpoint load balancer created in the first steps.</li><li>Create a SSL for the domain and get it signed by CA.</li></ul><p>Yes, now the API has been exposed using API Gateway with EKS cluster pod using the APP mesh.</p><p>Reference: <a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/welcome.html#:~:text=Amazon%20API%20Gateway%20is%20an,WebSocket%20APIs%20at%20any%20scale">https://docs.aws.amazon.com/apigateway/latest/developerguide/welcome.html#:~:text=Amazon%20API%20Gateway%20is%20an,WebSocket%20APIs%20at%20any%20scale</a>.</p><p><a href="https://docs.aws.amazon.com/app-mesh/">https://docs.aws.amazon.com/app-mesh/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a224932be46c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>