<?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 Sureshpasam on Medium]]></title>
        <description><![CDATA[Stories by Sureshpasam on Medium]]></description>
        <link>https://medium.com/@sureshpasam94?source=rss-2e8bf5305470------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Ko72D1pFyJSr2iFf</url>
            <title>Stories by Sureshpasam on Medium</title>
            <link>https://medium.com/@sureshpasam94?source=rss-2e8bf5305470------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 06:23:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sureshpasam94/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[Three-Tier Architecture E-commerce application on AWS EKS — 8 Services, and 2 Databases of Robot…]]></title>
            <link>https://medium.com/@sureshpasam94/three-tier-architecture-e-commerce-application-on-aws-eks-8-services-and-2-databases-of-robot-e9e24a87c292?source=rss-2e8bf5305470------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9e24a87c292</guid>
            <category><![CDATA[aws-eks]]></category>
            <category><![CDATA[aws-ec2]]></category>
            <dc:creator><![CDATA[Sureshpasam]]></dc:creator>
            <pubDate>Sat, 13 Jul 2024 17:45:05 GMT</pubDate>
            <atom:updated>2024-07-13T17:45:05.903Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Three-Tier Architecture </strong>E-commerce application <strong>on AWS EKS — 8 Services, and 2 Databases of Robot Shop</strong></h3><h3>Demystifying E-commerce Three-Tier Architecture on AWS EKS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aYtElTZEY8JQbrnH4sBkKg.png" /></figure><h3>Introduction:</h3><p>Join us on a journey to dive into the intricacies of deploying an E-commerce Three-Tier application on AWS EKS through a practical and insightful demonstration.</p><p><strong>Prerequisites:</strong></p><ol><li>Create Ec2 Instance</li><li>Configure AWS CLI — <a href="https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html">Install or update to the latest version of the AWS CLI — AWS Command Line Interface (amazon.com)</a></li><li>Install Docker — Refer <a href="https://docs.docker.com/engine/install/ubuntu/">https://docs.docker.com/engine/install/ubuntu/</a></li><li>Install kubectl — Refer <a href="https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/">https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/</a></li><li>Install eksctl — Refer <a href="https://eksctl.io/installation/">https://eksctl.io/installation/</a></li><li>Install Helm — Refer <a href="https://helm.sh/docs/intro/install/">Helm | Installing Helm</a></li></ol><p>Repo: <a href="https://github.com/sureshpasam/three-tier-architecture-demo/blob/master/EKS/02-eks-cluster-setup.md">three-tier-architecture-demo/EKS/02-eks-cluster-setup.md at master · sureshpasam/three-tier-architecture-demo (github.com)</a></p><h3>Unveiling the Three-Tier Architecture Model</h3><p>Delve into the components and design of the three-tier architecture model with a practical walkthrough of the ‘robot shop’ demo project. This project showcases the integration of microservices, databases, and front-end functionalities, providing a real-world insight into the architecture’s implementation.</p><h3>Understanding the E-commerce Project’s Origin and Design</h3><p>Explore the origins of the demo project and gain insights into the high-level design of the entire architecture. Learn about the responsibilities of the frontend and backend layers in coordinating information from the database and presenting detailed product information to users.</p><ol><li>Create EC2 Instance</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0QZ61C6NYq99fPkJUrny5Q.png" /></figure><p>2. Install Required packages in the EC2 Instance</p><pre>sudo apt update -y<br>sudo apt install unzip -y</pre><p>Install AWS CLI</p><pre>curl &quot;https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip&quot; -o &quot;awscliv2.zip&quot;<br>unzip awscliv2.zip<br>sudo ./aws/install</pre><p>After install check aws version</p><pre>aws --version</pre><p>Configure AWS account in aws cli, get your access key and secret key on aws account</p><pre>aws configure</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GrHyqZc0YSIcMvHUNvhqAQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*eeD149dFahc_TlffP-0MTA.png" /></figure><p>3. Install kubectl</p><pre>curl -LO https://dl.k8s.io/release/v1.30.0/bin/linux/amd64/kubectl<br>curl -LO &quot;https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256&quot;<br>echo &quot;$(cat kubectl.sha256)  kubectl&quot; | sha256sum --check<br>sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl<br>kubectl version --client</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/1*0jjilTJGjZCZXD-n-OBaxA.png" /></figure><p>4. Install EKSCTL</p><pre># for ARM systems, set ARCH to: `arm64`, `armv6` or `armv7`<br>ARCH=amd64<br>PLATFORM=$(uname -s)_$ARCH<br><br>curl -sLO &quot;https://github.com/eksctl-io/eksctl/releases/latest/download/eksctl_$PLATFORM.tar.gz&quot;<br><br># (Optional) Verify checksum<br>curl -sL &quot;https://github.com/eksctl-io/eksctl/releases/latest/download/eksctl_checksums.txt&quot; | grep $PLATFORM | sha256sum --check<br><br>tar -xzf eksctl_$PLATFORM.tar.gz -C /tmp &amp;&amp; rm eksctl_$PLATFORM.tar.gz<br><br>sudo mv /tmp/eksctl /usr/local/bin<br>eksctl version</pre><p>5. Install Helm — use below any of the scripts</p><pre> curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3<br>$ chmod 700 get_helm.sh<br>$ ./get_helm.sh</pre><pre>curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg &gt; /dev/null<br>sudo apt-get install apt-transport-https --yes<br>echo &quot;deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main&quot; | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list<br>sudo apt-get update<br>sudo apt-get install helm</pre><h3><strong>Create EKS Cluster below command</strong></h3><pre>eksctl create cluster --name demo-cluster-three-tier-1 --region us-east-1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LrXnOHu-xBJGQEc047hAWQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ePE38xRgghI8EnJGmSaJrA.png" /></figure><h3><strong>Commands to configure IAM OIDC provider</strong></h3><p>Use Cluser name = demo-cluster-three-tier-1</p><pre>export cluster_name=&lt;CLUSTER-NAME&gt;<br>oidc_id=$(aws eks describe-cluster --name $cluster_name --query &quot;cluster.identity.oidc.issuer&quot; --output text | cut -d &#39;/&#39; -f 5) </pre><p><strong>Check if there is an IAM OIDC provider configured already</strong></p><pre>aws iam list-open-id-connect-providers | grep $oidc_id | cut -d &quot;/&quot; -f4<br>eksctl utils associate-iam-oidc-provider --cluster $cluster_name --approve</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BGSBNLWwBSCFVPDKmKAtGQ.png" /></figure><h3>Configuring the ALB — application load balancer — why ALB is my exposing the application external world</h3><ul><li>Creating the IAM Policy and Roles</li></ul><p>Download the I AM Policy Json</p><pre>curl -O https://raw.githubusercontent.com/kubernetes-sigs/aws-load-balancer-controller/v2.5.4/docs/install/iam_policy.json</pre><p>Create IAM Policy</p><pre>aws iam create-policy \<br>    --policy-name AWSLoadBalancerControllerIAMPolicy \<br>    --policy-document file://iam_policy.json</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*6QskpPJAGH-3k4SgKbuAJQ.png" /></figure><p>Create IAM Role</p><pre>eksctl create iamserviceaccount \<br>  --cluster=&lt;your-cluster-name&gt; \<br>  --namespace=kube-system \<br>  --name=aws-load-balancer-controller \<br>  --role-name AmazonEKSLoadBalancerControllerRole \<br>  --attach-policy-arn=arn:aws:iam::&lt;your-aws-account-id&gt;:policy/AWSLoadBalancerControllerIAMPolicy \<br>  --approve</pre><p>Successfully created the service account for EKS cluster</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6z17SeQQID4GA-oZ2bsxMA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CVrepiweb7eEfy8FxT-0pQ.png" /></figure><h3>Implement ALB Controller</h3><h4><strong>Add helm charts in your repo and update the repo to EKS</strong></h4><pre>helm repo add eks https://aws.github.io/eks-charts<br>helm repo update eks</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*2dxvzp9fvRYvKicEOphopw.png" /></figure><p><strong>Update the VPC_ID in the following command after retrieving the VPC ID from EKS</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*fy67Gy7x-6I1bgHefQ-Adw.png" /></figure><p>Install Helm</p><pre>helm install aws-load-balancer-controller eks/aws-load-balancer-controller -n kube-system --set clusterName=demo-cluster-three-tier-1 --set serviceAccount.create=false --set serviceAccount.name=aws-load-balancer-controller --set region=us-east-1 --set vpcId=&lt;add VPC Id from EKS cluster&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5jkfyXhxE6m1xk2Zkxu4aQ.png" /></figure><h4><strong>Verify that the deployments are running.</strong></h4><pre>kubectl get deployment -n kube-system aws-load-balancer-controller</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*uZyYmB7LxyfhFD3ASx33tQ.png" /></figure><h3>EBS CSI Plugin configuration</h3><p>The Amazon EBS CSI Plugin Requires IAM Permissions for AWS API Calls on Behalf of Your Cluster.</p><p>Create an IAM Role and Attach a Policy for Cluster: [Your Cluster Name]. AWS provides an AWS Managed Policy, or you can craft a Custom Policy. Use the following command to create an IAM role and attach the AWS Managed Policy; ensure to replace ‘my-cluster’ with your cluster’s name. This command deploys an AWS CloudFormation stack, establishing an IAM role and linking the IAM policy to it.</p><pre>eksctl create iamserviceaccount \<br>    --name ebs-csi-controller-sa \<br>    --namespace kube-system \<br>    --cluster &lt;YOUR-CLUSTER-NAME&gt; \<br>    --role-name AmazonEKS_EBS_CSI_DriverRole \<br>    --role-only \<br>    --attach-policy-arn arn:aws:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy \<br>    --approve</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wYZzyPKvMedE3w1Mf1u-8w.png" /></figure><h4>Run the following command. Replace with the name of your cluster, with your account ID.</h4><pre>eksctl create addon --name aws-ebs-csi-driver --cluster &lt;YOUR-CLUSTER-NAME&gt; --service-account-role-arn arn:aws:iam::&lt;AWS-ACCOUNT-ID&gt;:role/AmazonEKS_EBS_CSI_DriverRole --force</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6XzzYfP22Pk_NyS5bAg3Zw.png" /></figure><h3>Deploy the Project to the Helm chart-&gt; Clone repo and navigate to EKS/Helm folder- Establish new namespace</h3><pre>https://github.com/sureshpasam/three-tier-architecture-demo/tree/master/EKS/helm</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*d3UvYIAfigUU0Cu9XIwvxw.png" /></figure><h4>Establish new namespace</h4><pre>$ kubectl create ns robot-shop<br><br>$ helm install robot-shop --namespace robot-shop .</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Usy5lerD7sgUAbgrwB0zWA.png" /></figure><p><strong>Check all pods running in the namespace</strong></p><pre>kubectl get pods -n robot-shop</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*LPzdSqvOItwPDPRg3kojYg.png" /></figure><p>Check all the services in the kubernates EKS cluster</p><pre>kubectl get svc<br>kubectl get sc -n robot-shop</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lDASYfDC7DLbfiMt3edXxQ.png" /></figure><p><strong>Exposing the application external world using ingress controller</strong></p><ul><li><strong>Create ingress control</strong></li></ul><pre>kubectl apply -f ingress.yaml</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KicssjdEgqR4bs_IEa1bpQ.png" /></figure><p>Check application is expose to external world or not with ALB</p><pre>kubectl get ingress -n robot-shop</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g-Xvggsq9F84d9Nl3nTIFA.png" /></figure><p><strong>Navigate to AWS Console, Locate EC2, and Access Load Balancers — Copy DNS k8s-robotsho-web-e57ee8c7ce-b8542abbce2838ab.elb.us-east-1.amazonaws.com</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*DfDcSVbBYJDOPgmygeypNQ.png" /></figure><p>Successfully deployed th application</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qZuoj8pmiiT3moYRHKMC_g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HPc_aGQZri4Vnc4D8k4cCw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mOq5_hYqbg55SGSFcQqnJg.png" /></figure><h3>Destroy the infrastacture:</h3><pre>eksctl delete cluster --name demo-cluster-three-tier-1 --region us-east-1</pre><h3>Conclusion:</h3><p>Embark on your journey to understanding and deploying an E-commerce Three-Tier application on AWS EKS, equipped with invaluable knowledge and insights.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9e24a87c292" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering EKS: Deploying Real-Time Apps with Kubernetes, Fargate]]></title>
            <link>https://medium.com/@sureshpasam94/mastering-eks-deploying-real-time-apps-with-kubernetes-fargate-48f69b2546a2?source=rss-2e8bf5305470------2</link>
            <guid isPermaLink="false">https://medium.com/p/48f69b2546a2</guid>
            <category><![CDATA[aws-eks]]></category>
            <category><![CDATA[fargate]]></category>
            <dc:creator><![CDATA[Sureshpasam]]></dc:creator>
            <pubDate>Fri, 05 Jul 2024 18:56:45 GMT</pubDate>
            <atom:updated>2024-07-05T18:56:45.769Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction:</h3><p>Join us on an exciting journey to explore EKS and deploy applications on AWS’ EKS platform. Get ready to simplify cluster setup and enhance your DevOps skills!</p><p>Prerequisites:</p><ol><li>Create Ec2 Instance</li><li>Configure AWS CLI — <a href="https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html">Install or update to the latest version of the AWS CLI — AWS Command Line Interface (amazon.com)</a></li><li>Install Docker — Refer <a href="https://docs.docker.com/engine/install/ubuntu/">https://docs.docker.com/engine/install/ubuntu/</a></li><li>Install kubectl — Refer <a href="https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/">https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/</a></li><li>Install eksctl — Refer <a href="https://eksctl.io/installation/">https://eksctl.io/installation/</a></li></ol><p>Repo: <a href="https://github.com/sureshpasam/aws-devops-zero-to-hero/blob/main/day-22/installing-eks.md">https://github.com/sureshpasam/aws-devops-zero-to-hero/blob/main/day-22/installing-eks.md</a></p><h3>Understanding EKS: The Managed Kubernetes Offering</h3><p>EKS streamlines the setup of a high available Kubernetes cluster on AWS, sparing you from manual control plane management. Learn how users interact with applications on worker nodes via the control plane.</p><h3>EKS Features and Benefits</h3><p>Discover how EKS manages control plane components, ensuring high availability. Explore the seamless integration of worker nodes with the control plane for a stable cluster environment.</p><h3>Deploying Apps on EKS Cluster</h3><p>From creating pods to deploying applications using Cube CTL, delve into exposing applications using different modes like Cluster IP, Node Port, and the powerful Ingress resource for user access.</p><ol><li>Create EKS cluster with Fargate instance using below command</li></ol><p>eksctl create cluster — name demo-cluster — region us-east-1 — fargate</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*J8iVnmKHH-UpwNedZaA6pw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*17uUL_t6zP17YKLVlauNOw.png" /></figure><p>2. #Configuring kubectl for EKS- below command<br>aws eks update-kubeconfig — name demo-cluster — region ap-south-1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*YcIM4OC58Wc0oAWG24onxQ.png" /></figure><p>3. Create fargate profiels for the deployment of the 2048 application<br><strong>eksctl create fargateprofile \<br> — cluster demo-cluster \<br> — region us-east-1 \<br> — name alb-sample-app \<br> — namespace game-2048</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*FMcurg4hE0Vyn81L51xlOA.png" /></figure><p>go and check the eks cluster aws console</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JYEOOYWY1wbekK5rXgUvug.png" /></figure><p>3. Deploy the deployment, service and Ingress<br>kubectl apply -f <a href="https://raw.githubusercontent.com/kubernetes-sigs/aws-load-balancer-controller/v2.5.4/docs/examples/2048/2048_full.yaml">https://raw.githubusercontent.com/kubernetes-sigs/aws-load-balancer-controller/v2.5.4/docs/examples/2048/2048_full.yaml</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AspcGlkSACWbSkbxWdTMLA.png" /></figure><p>Name space, service of cluster and ingress controllers are created</p><p>4. check pods are running or not</p><p>kubectl get pods -n game-2048</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*uGc1LlE-gBjPqAyA7xdBHQ.png" /></figure><p>Check cluster is running which service</p><p>kubectl get svc -n &lt;name of namespace [game-2048]&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*1zGgcpa8UiJWCNaO510Seg.png" /></figure><p>Check ingress Resource created or not — given namespace</p><p>kubectl get ingress -n game-2048</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/462/1*imu5NS9V-xUDsLHsm1y1WA.png" /></figure><p>4. <strong>Commands to configure IAM OIDC provider, </strong>Check if there is an IAM OIDC provider configured already</p><p>eksctl utils associate-iam-oidc-provider — cluster $cluster_name — approve</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*JTNc4a_s4x6XjfuHELe5hQ.png" /></figure><p>5. How to setup alb add on- ALB Controller -&gt;Pod-&gt;Access AWS Services such as ALB</p><p><strong>Download IAM policy</strong></p><p>curl -O <a href="https://raw.githubusercontent.com/kubernetes-sigs/aws-load-balancer-controller/v2.5.4/docs/install/iam_policy.json">https://raw.githubusercontent.com/kubernetes-sigs/aws-load-balancer-controller/v2.5.4/docs/install/iam_policy.json</a></p><p><strong>Created IAM Policy</strong></p><p>aws iam create-policy \<br> — policy-name AWSLoadBalancerControllerIAMPolicy \<br> — policy-document file://iam_policy.json</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/1*u7FZspB2ke64bQd5lik2yA.png" /></figure><p><strong>Created I am Role:</strong></p><p>eksctl create iamserviceaccount \<br> — cluster=&lt;your-cluster-name&gt; \<br> — namespace=kube-system \<br> — name=aws-load-balancer-controller \<br> — role-name AmazonEKSLoadBalancerControllerRole \<br> — attach-policy-arn=arn:aws:iam::&lt;your-aws-account-id&gt;:policy/AWSLoadBalancerControllerIAMPolicy \<br> — approve</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1SvIg-sjd4RSN-mYghNCNw.png" /></figure><p>6. Install helm in your EC2 Instance</p><p>$ curl -fsSL -o get_helm.sh <a href="https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3">https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3</a><br>$ chmod 700 get_helm.sh<br>$ ./get_helm.sh</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*uuWyeuogUcmBZQiJ0lptyw.png" /></figure><p>7. Deploy ALB controller to EKS</p><p>Add helm repo</p><p>helm repo add eks <a href="https://aws.github.io/eks-charts">https://aws.github.io/eks-charts</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*j9htdToOeuS_XbwpH5OH6A.png" /></figure><p>update the repo:<br>helm repo update eks</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*DKfOkfP0OZj69gkk6nMdaQ.png" /></figure><p>8. Install <strong>ALB in the service to cluster</strong></p><p>helm install aws-load-balancer-controller eks/aws-load-balancer-controller -n kube-system \<br> — set clusterName=&lt;Cluster-name&gt; \<br> — set serviceAccount.create=false \<br> — set serviceAccount.name=aws-load-balancer-controller \<br> — set region=&lt;Region&gt; \<br> — set vpcId=&lt;VPC-ID&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*1LdnTRrIY_aLF6ic9jqh7A.png" /></figure><p>Verify the application on the EKS cluster ALB</p><p>kubectl get deployment -n kube-system aws-load-balancer-controller</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*LC8qxwB9W43XU3Fv73MlSg.png" /></figure><p>Goto EC2 instance — open the load balancer</p><p>copy and paste the DNS in chrome</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_sGKhwRrrFbY6qBaxvsY8g.png" /></figure><h3>Ingress Controller Magic</h3><p>Dive into the world of Ingress controllers like nginx and F5, which support load balancers for efficient routing. Get insights on using Helm charts and manifests to deploy Ingress controllers.</p><h3>Installation and Configuration</h3><p>Learn how to set up Cube CTL and EK CTL to interact with EKS quickly. Discover the process of installing EKS on Mac via Brew, configuring AWS CLI, and necessary worker node configurations.</p><h3>Troubleshooting and Optimization</h3><p>Uncover common issues related to service accounts and deployments on EKS. Explore solutions for handling errors and optimizing the Ingress controller for seamless load balancer management.</p><h3>Conclusion:</h3><p>Master EKS with hands-on experience and a deeper understanding of deploying applications efficiently. Enhance your DevOps skills and enjoy simplified cluster management on AWS.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48f69b2546a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploy Simple application on the ECS using ECR.]]></title>
            <link>https://medium.com/@sureshpasam94/deploy-simple-application-on-the-ecs-using-ecr-c6110007874c?source=rss-2e8bf5305470------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6110007874c</guid>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[aws-ecr]]></category>
            <category><![CDATA[aws-ecs]]></category>
            <dc:creator><![CDATA[Sureshpasam]]></dc:creator>
            <pubDate>Fri, 28 Jun 2024 05:33:10 GMT</pubDate>
            <atom:updated>2024-06-28T05:33:10.816Z</atom:updated>
            <content:encoded><![CDATA[<p>#AWS #AWS Devops #Devops</p><h3>Introduction:</h3><p>Are you ready to dive into the world of AWS container orchestration? In today’s video, we’ll explore the fundamentals of ECS and its comparison with other container orchestration solutions. Let’s unravel the mysteries behind ECS and gain valuable insights into how it revolutionizes the world of DevOps. Buckle up for an enlightening journey!</p><h3>Understanding the Basics</h3><p>Before delving into ECS, it’s crucial to grasp the fundamentals of containerization and Kubernetes. Containers play a vital role in modern software development, providing a lightweight, portable, and efficient environment for deploying applications. Therefore, understanding the core concepts of containers and their orchestration is pivotal for comprehending ECS. Think of it as laying the groundwork for building the ECS skyscraper!</p><h3>ECS vs. Other Orchestration Environments</h3><p>Imagine being in a debate where ECS, EKS, and Kubernetes walk into a bar! In this section, we’ll explore scenario-based interview questions regarding ECS and how it stacks up against other container orchestration environments. We’ll uncover the strengths and limitations, enabling you to grasp the unique value proposition of ECS in the competitive landscape.</p><ol><li>Create EC2 Instance and push your image to the AWS ECR</li></ol><p>Step by Step process mentioned in the below blog</p><p><a href="https://medium.com/@sureshpasam94/push-docker-image-ec2-to-aws-ecr-repo-aws-aws-ecr-awsdevops-dc0878495201">https://medium.com/@sureshpasam94/push-docker-image-ec2-to-aws-ecr-repo-aws-aws-ecr-awsdevops-dc0878495201</a></p><p>2. Goto ECS and Create cluster below configration</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*vgu3fLLnX4WGLh-DnAoDzw.png" /></figure><p>click on create — Created cluster displaying below screenshot</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1YxJhEEZfpurziSjvdxKcA.png" /></figure><p>3. Create tasks definition below configration -likes pod.yaml for k8s</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1_RxlSXe8VN_ZmHsY1oYRg.png" /></figure><p><strong>Name : Container Name</strong></p><p><strong>URI: Is your ECR URI link</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*ql7QgyPphufVHKGSwu98qg.png" /></figure><p>4.Click on Create Definition</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mvbfu8mGOv3skhbmEQWt7A.png" /></figure><p>Once Task Definition is Active State</p><p>5 Create RUN Task under the Created definition</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kfI29BGryPpzdJcw7axC7g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KF22nFmccXpt_tilnkJb2w.png" /></figure><p>5. Once run task — your application is running on the ECS Container</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lc-tRI7OVWxxc1vj9aEAAA.png" /></figure><h3>Unraveling AWS ECS: The Inside Story</h3><p>Let’s peel back the layers and understand the core workings of ECS. You’ll discover the magic behind ECS’s task definition, services, and clusters, which form the building blocks of this AWS container orchestration solution. We’ll explore its distinctive features and delve into real-world examples to bring clarity to its practical implementation.</p><h3>ECS: The AWS Perspective</h3><p>Dive deeper into the realm of ECS and its exclusive ties with AWS. Unveil the reasons behind ECS being restricted to the AWS ecosystem and the implications of this exclusivity. Gain a deeper understanding of how ECS fits into the broader AWS infrastructure, shedding light on its compatibility and limitations when compared to other platforms.</p><h3>The Allure of Kubernetes</h3><p>Why is Kubernetes stealing the spotlight in the world of container orchestration? Uncover the open-source nature of Kubernetes and how it has empowered a thriving community of contributors, resulting in continuous evolution and innovation. We’ll dissect Kubernetes’s remarkable features and its unparalleled flexibility, giving you a comprehensive view of the Kubernetes landscape.</p><h3>ECS and Fargate: The Serverless Perspective</h3><p>Step into the realm of ECS and discover its serverless model with Fargate. Explore the benefits of this serverless compute environment and its seamless integration with ECS. We’ll delve into the simplicity and efficiency of ECS with Fargate, painting a clear picture of its advantages and the elimination of traditional operational burdens.</p><h3>Conclusion:</h3><p>As we wrap up our expedition into the world of ECS, it’s clear that AWS has etched its mark with a powerful container orchestration solution. Understanding ECS opens doors to a world of AWS infrastructure possibilities, while also shedding light on the broader container orchestration landscape. The journey doesn’t end here, as the dynamic nature of cloud technology continues to shape the future of DevOps and infrastructure management.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6110007874c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Push Docker Image EC2 to AWS ECR Repo. #aws #AWS ECR #AwsDevops]]></title>
            <link>https://medium.com/@sureshpasam94/push-docker-image-ec2-to-aws-ecr-repo-aws-aws-ecr-awsdevops-dc0878495201?source=rss-2e8bf5305470------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc0878495201</guid>
            <category><![CDATA[aws-ec2]]></category>
            <category><![CDATA[aws-ecr]]></category>
            <dc:creator><![CDATA[Sureshpasam]]></dc:creator>
            <pubDate>Thu, 27 Jun 2024 14:41:48 GMT</pubDate>
            <atom:updated>2024-06-27T14:41:48.510Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction:</h3><p>Embark on a journey to unravel AWS ECR, the container registry powerhouse, and its key distinctions.</p><h3>ECR vs Docker Hub: The Showdown</h3><p>Discover the nuances between AWS ECR and Docker Hub, their strengths, and considerations for your container management needs. Dive into the realm of container registries and their functionalities.</p><ol><li>Create Ec2 Instance, Install AWS CLI and Docker</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a9vDHUEiddEY_HPzQE444Q.png" /></figure><p>2. Install AWS cli below commads or gothrough AWS Documentation</p><p><a href="https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html">Installing or updating to the latest version of the AWS CLI</a></p><p>before that install zip</p><p>sudo apt install unzip</p><p>curl “<a href="https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip">https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip</a>&quot; -o “awscliv2.zip”<br>unzip awscliv2.zip<br>sudo ./aws/install</p><p>after installation configure aws account</p><p><strong>aws configure</strong> — then it asking your access key and secret key of aws account</p><p>Steps to get the access key and secret key:</p><p>goto-&gt;aws account -&gt; security credentials</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/353/1*CGduXIKT826OnfqvyA50oA.png" /></figure><p>under the page click on create Acces Key</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*rcz4EufhYyGY8gVMmwG61Q.png" /></figure><p>Download the file and save access key and secret key — using this you can configure aws account for your linux or local machine</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/1*hKKIrwPo4tnZ6nOS0r_D3w.png" /></figure><p>After adding above things your aws account configure successfully done.</p><p>run the command <strong>aws — version</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/1*-YzKeEqnSLPeRv1KdeS6ZA.png" /></figure><p>3. Docker installation follow the below page</p><p><a href="https://docs.docker.com/engine/install/ubuntu/"></a></p><p>Check docker install or not</p><p>sudo docker — version</p><p>sudo systemctl statis docker — it fetch docker is running or not</p><p>Below mentioned steps for Creating the ECR Repo</p><h3>Private Repositories and IAM Integration</h3><p>Learn how ECR’s default private repository setup contrasts with Docker Hub, and explore the seamless integration with IAM users, enhancing security and control. Real-world implications and benefits showcased.</p><p>4. Created ECR Private Repo below configration</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*3lgWYWaR3c8KbokNq1KEiw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*sZld9vxTKpXYWfZa00-dng.png" /></figure><p>Clickon the created ECR Repo and click <strong>view push commands</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_8Fqukn_erm5Y5BqGe0_JQ.png" /></figure><p>It dispaly the list of commands using these you can push your image to ECR</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*Wf3UYCYSYJY6wwkTNN5Nog.png" /></figure><p>aws ecr get-login-password — region <strong>&lt;your-region&gt;</strong> | docker login — username AWS — password-stdin <strong>&lt;your-aws-account-id&gt;</strong>.dkr.ecr.&lt;your-region&gt;.amazonaws.com</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k9TOXE04bQeLU_wPXx9zOQ.png" /></figure><p>5. Created Docker file and build the image below sample docker file script — install apache server and expose the 80 port</p><pre>FROM ubuntu:18.04<br><br># Install dependencies<br>RUN apt-get update &amp;&amp; \<br> apt-get -y install apache2<br><br># Install apache and write hello world message<br>RUN echo &#39;Hello World!&#39; &gt; /var/www/html/index.html<br><br># Configure apache<br>RUN echo &#39;. /etc/apache2/envvars&#39; &gt; /root/run_apache.sh &amp;&amp; \<br> echo &#39;mkdir -p /var/run/apache2&#39; &gt;&gt; /root/run_apache.sh &amp;&amp; \<br> echo &#39;mkdir -p /var/lock/apache2&#39; &gt;&gt; /root/run_apache.sh &amp;&amp; \ <br> echo &#39;/usr/sbin/apache2 -D FOREGROUND&#39; &gt;&gt; /root/run_apache.sh &amp;&amp; \ <br> chmod 755 /root/run_apache.sh<br><br>EXPOSE 80<br><br>CMD /root/run_apache.sh</pre><p>Build the docker image</p><p>docker build -t &lt;your-image-name&gt; &lt;path-to-dockerfile&gt;</p><p><strong>Example command:</strong></p><p><strong>Sudo docker build -t &lt;ECR Repo Name&gt; .</strong></p><p>then check docker image build or not</p><p>sudo docker images</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*I0r5gtsp9N6NegQHylHdhg.png" /></figure><p>5. After the build completes, tag your image so you can push the image to this repository:</p><p>docker tag <strong>&lt;your-image-name&gt;</strong>:<strong>&lt;tag&gt; &lt;your-aws-account-id&gt;</strong>.dkr.ecr.<strong>&lt;your-region&gt;</strong>.amazonaws.com/<strong>&lt;your-repository-name&gt;:&lt;tag&gt;</strong></p><p>Example Command:</p><p><strong>docker tag sureshpecrrepo1:latest 905418395708.dkr.ecr.ap-south-1.amazonaws.com/sureshpecrrepo1:latest</strong></p><p>5. Run the following command to push this image to your newly created AWS repository:</p><p>Example command:</p><p><strong>docker push 905418395708.dkr.ecr.ap-south-1.amazonaws.com/sureshpecrrepo1:latest</strong></p><p>Format of the command:</p><p><strong>docker push &lt;your-aws-account-id&gt;.dkr.ecr.&lt;your-region&gt;.amazonaws.com/&lt;your-repository-name&gt;:&lt;tag&gt;</strong></p><p>then check ECR Repo Image to Push to EC2 TO ECR</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OWJQbutX9u6q8gAKEgrDQQ.png" /></figure><h3>Seamless AWS Integration and User Management</h3><p>Delve into the effortless integration of ECR with AWS services like EKS, ECS, and Fargate, and the time-saving IAM user management it offers. Unveil the operational ease brought by ECR’s AWS compatibility.</p><h3>Security Features and Best Practices</h3><p>Uncover the robust security features of AWS ECR, including automated image scanning, tag immutability, and repository customization. Understand the significance of security scanning and image management.</p><h3>Optimizing Docker Image Deployment with AWS ECR</h3><p>Master the art of pushing images to AWS ECR efficiently using AWS CLI commands and ensuring seamless container registry access. Real-world scenarios outlined for smooth transition and operational efficiency.</p><h3>Conclusion:</h3><p>AWS ECR emerges as a powerful and user-friendly container registry, offering enhanced security, seamless AWS integration, and simplified management. Embrace this tool to level up your container management game.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc0878495201" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Static website hosting using S3 without public access using cloudFront #AWS Devops]]></title>
            <link>https://medium.com/@sureshpasam94/static-website-hosting-using-s3-without-public-access-using-cloudfront-aws-devops-7ff356c06cb9?source=rss-2e8bf5305470------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ff356c06cb9</guid>
            <dc:creator><![CDATA[Sureshpasam]]></dc:creator>
            <pubDate>Wed, 26 Jun 2024 16:02:00 GMT</pubDate>
            <atom:updated>2024-06-26T16:02:00.932Z</atom:updated>
            <content:encoded><![CDATA[<h3>AWS CloudFront: Enhancing Content Delivery Networks</h3><h3>Introduction:</h3><p>Discover how AWS CloudFront revolutionizes content delivery networks in this engaging exploration.</p><h3>Understanding CDN and Its Importance</h3><p>Content Delivery Networks (CDN) like CloudFront are the backbone of platforms like YouTube and Instagram, enhancing user experience by caching content in global edge locations for faster access.</p><h3>Benefits of CloudFront Integration with S3 Buckets</h3><p>Piyush guides us through the seamless integration of CloudFront with S3 buckets, simplifying content delivery and ensuring efficient storage and retrieval of images and videos on platforms like Instagram.</p><ol><li>Created S3 Bucket with block public access and versioning enable</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*zCR8mgic_pc-84S4wP3dSg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*PL6f6i9ji4_u3Vg2YYpAUg.png" /></figure><p>2. open the created bucket and goto the properties tab under click on edit static web hosting section</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h36oYesLZOMkmzSRcgqgGw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2fwn2oEmzltJ6nEKL2EV-A.png" /></figure><p>Enable the static website and add your index.html and error.html files below section</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*bZZ-CpdZ3P8ngYJiw_2Qyg.png" /></figure><p>4. created both index.html and error.html files just sample script below.</p><figure><img alt="index.html" src="https://cdn-images-1.medium.com/max/388/1*yuwFE0nN75Rvnz8Q6toDHA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*GIPyCs1mxz-Gn0sjjmk49w.png" /></figure><p>5. Upload above two files in s3 bucket</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*84UkfC_CVEEtNadZmYIpLQ.png" /></figure><p>6. copy and hit static website url in the browser- we get the 403 error — because we dont give public access for this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TWnLlYRMrEAKwwFYSAN2qw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*9EHQDd3NA5gfHCK32CZGAw.png" /></figure><p>7. We create cloud Front distribution and access the static web site</p><h3>Optimizing Latency with CloudFront</h3><p>CloudFront’s distributed edge locations facilitate low-latency access to content by caching data closest to users, reducing data transfer costs and enhancing overall performance.</p><p>Continue for above 7 steps on-wards</p><p>8. goto CloudFront service and click on create distribution below configration</p><p>Origin = your hosted s3 bucket name</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*dhlzWMhUuezMZkWPRM0UZw.png" /></figure><p>Origin access = Legacy access identities here click on create new OAI — if we don’t have new OAI</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*2h44iiZ1hJXywwAOx7nE1g.png" /></figure><p>Enable bucket policy</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/1*PjtqjFCwkDQW5IcZDttDQA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*RX7mWJvCVDRKwiTcFTXTeQ.png" /></figure><p>default routing should be /index.html</p><p>then click create distribution</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uMxdA8JYtt7BHinpFuvBEg.png" /></figure><p>It will take time to deploying the application once deploying done — we can access our application</p><p>Copy Distribution domain name and hit the url in the browser</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*odDn6GmInIam8tlIRiUqTg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/385/1*tMVzGi5KkQOd8XNXSejQFw.png" /></figure><p>Finally Delete all infrastructure once done… other wise AWS will charge</p><h3>Cost-Effective Deployment with CloudFront</h3><p>Despite associated costs, CloudFront offers cost-efficient solutions for high-traffic websites, ensuring faster deployment and reduced latency for accessing content across multiple regions.</p><h3>Conclusion:</h3><p>Embrace the power of AWS CloudFront to enhance content delivery, optimize latency, and reduce costs, revolutionizing your digital presence. Dive into the world of CDN and experience seamless content delivery at your fingertips.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ff356c06cb9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Cost Optimization Stale resources, such as forgotten EC2 instances, orphaned EBS volume…]]></title>
            <link>https://medium.com/@sureshpasam94/aws-cost-optimization-stale-resources-such-as-forgotten-ec2-instances-orphaned-ebs-volume-99ba58b54669?source=rss-2e8bf5305470------2</link>
            <guid isPermaLink="false">https://medium.com/p/99ba58b54669</guid>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[aws-cost-optimization]]></category>
            <dc:creator><![CDATA[Sureshpasam]]></dc:creator>
            <pubDate>Sun, 23 Jun 2024 06:19:46 GMT</pubDate>
            <atom:updated>2024-06-23T06:19:46.434Z</atom:updated>
            <content:encoded><![CDATA[<h3>AWS Cost Optimization Stale resources, such as forgotten EC2 instances, orphaned EBS volume snapshots</h3><h3>Maximizing Cloud Savings: Mastering AWS Cost Optimization</h3><h3>Introduction:</h3><p>Are you tired of overspending on cloud services without even realizing it? In this blog post, we’ll delve into the world of AWS cost optimization, uncovering how you can minimize expenses and maximize efficiency. Buckle up as we unravel the secrets of cost optimization and real-time cost savings.</p><h3>Unveiling the Mystery: Cloud Cost Optimization</h3><p>Cloud cost optimization is not just a buzzword; it’s a game-changer in the world of cloud computing. Imagine having the power to trim down unnecessary expenses and ensure that every penny spent on cloud resources is justified. Whether you’re a cloud enthusiast or a savvy business owner, understanding the nuances of cost optimization can revolutionize your approach to cloud management.</p><h3>The Saga of Stale Resources: A Costly Affair</h3><p>Have you ever forgotten to clean up after creating resources on AWS? If so, you’re not alone. Stale resources, such as forgotten EC2 instances, orphaned EBS volume snapshots, and unattached volumes, can silently inflate your cloud bill. We’ll explore how these overlooked relics of the past can lead to significant cost escalations and how to identify and eliminate them efficiently.</p><p>Steps:</p><ol><li>Create EC2 Instance</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-5NHdzO5B7s23F0M21udiQ.png" /></figure><p>2. Create snapshot of the Volume in the same instance</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eawe4CIP46DcdfNIALPTFw.png" /></figure><p>3. Below list of resources are running — Like Volume, Instances and Snapshots</p><h3>Harnessing the Power of Lambda Functions</h3><p>Meet your secret weapon for combating stale resources — Lambda functions. DevOps engineers can leverage Lambda functions to automate the detection and deletion of stagnant resources, such as unused EBS volume snapshots. We’ll walk you through the process of creating a Lambda function to identify and eliminate these lingering culprits, ultimately curbing unnecessary expenses.</p><p>Continueation of the above steps:</p><ol><li>Create Lamda function and copy paste below script</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A8QDNDGHVRj9IKk-X1wbDw.png" /></figure><p><a href="https://github.com/sureshpasam/aws-devops-zero-to-hero/blob/main/day-18/ebs_stale_snapshosts.py">aws-devops-zero-to-hero/day-18/ebs_stale_snapshosts.py at main · sureshpasam/aws-devops-zero-to-hero</a></p><p>2. After created lamda function — give I AM Role permissions for Describe snapshots, Delete Snapshot, Describe Instance and Describe volmens or Give gull Ec2 Permissions</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*fS9wawZQzuVkxYeqQCxOig.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*15FTCEZl1h9Ufw3IHTRf2Q.png" /></figure><p>Execute the Script:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2YjWcyi-Bk6mZXsaqMrXAw.png" /></figure><p>These are the snapshots are created the same instance</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dNjFM0DM0j2YHJzoosU-ZA.png" /></figure><p>Then Now Terminate the Ec2 Instance then — Volume not associate with snapshots because stale — its should be delete after running the script</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*P3G4pzyMPRaaV5B_jQLrTA.png" /></figure><p>After Executing the scripts below snapshots are deleted</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*o-NWOdDuDwhdlY1FKVZymg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*E2ho4emRkIJOyiLFKjUiuw.png" /></figure><h3>Optimizing Execution: The Lambda Edge</h3><p>Did you know that the execution time of your Lambda function directly impacts your AWS charges? We’ll uncover the connection between efficient execution time and cost savings, offering practical tips to fine-tune your functions for maximum savings. By keeping the execution time in check, you can steer clear of unforeseen expenses and align your cloud operations with budget-friendly practices.</p><h3>Mastering the Art: Cloud Cost Management</h3><p>It’s not just about learning the ropes of cost optimization; it’s about mastering the art of cloud cost management. We’ll guide you through the steps of effectively managing AWS accounts, bestowing the knowledge to grant permissions, delete unused instances, volumes, and snapshots, and consider vital conditions like snapshot age and last usage. Let’s elevate your cloud cost management game together.</p><h3>Automate &amp; Conquer: CloudWatch Events and Lambda</h3><p>Enter the realm of automation with CloudWatch events, unlocking the potential to schedule your Lambda functions for automatic execution. We’ll illuminate the path to effortlessly trigger Lambda functions using CloudWatch events, shedding light on the benefits and potential cost implications of automating your processes. With careful scheduling, you can revolutionize your cloud operations with minimal manual effort.</p><h3>Conclusion:</h3><p>As we unravel the intricacies of AWS cost optimization, it’s clear that mastering the art of cloud cost management can transform your cloud journey. By efficiently tackling stale resources, harnessing Lambda functions, and embracing automation with CloudWatch events, you can propel your cloud operations to new heights of efficiency and cost-effectiveness. Take charge of your cloud costs and pave the way for a leaner, more optimized cloud experience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99ba58b54669" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS CLOUD WATCH DEEP DIVE |LIVE EC2 CPU UTILIZATION ALERTING THROUGH SNS | #aws #devops]]></title>
            <link>https://medium.com/@sureshpasam94/aws-cloud-watch-deep-dive-live-ec2-cpu-utilization-alerting-through-sns-aws-devops-71496e8b5b65?source=rss-2e8bf5305470------2</link>
            <guid isPermaLink="false">https://medium.com/p/71496e8b5b65</guid>
            <dc:creator><![CDATA[Sureshpasam]]></dc:creator>
            <pubDate>Sat, 22 Jun 2024 11:22:05 GMT</pubDate>
            <atom:updated>2024-06-22T11:22:05.306Z</atom:updated>
            <content:encoded><![CDATA[<h3>AWS CloudWatch: A Deep Dive</h3><h3>Introduction:</h3><p>Welcome to the immersive journey into the realm of AWS CloudWatch. Today’s video is a treasure trove of information and practical demos, setting the stage for a hands-on experience in cloud monitoring. So, fasten your seatbelts and get ready for an exhilarating adventure in AWS CloudWatch.</p><h3>Understanding the Power of CloudWatch</h3><p>AWS CloudWatch serves as the vigilant gatekeeper of the AWS cloud, keeping a close eye on all activities. It meticulously monitors various cloud activities, such as creating EC2 instances and tracking resource utilization. This essential service provides valuable insights into the performance and utilization of AWS services, making it an indispensable tool for cloud management.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M8r8UlY0aYbV1zNL1FrVzw.png" /></figure><h3>Metrics and Alarms: The Dynamic Duo</h3><p>In the realm of AWS CloudWatch, metrics and alarms are inseparable companions. Metrics serve as the data collectors, gathering crucial information about CPU utilization, memory consumption, and API calls. On the other hand, alarms spring into action based on these metrics, triggering notifications and alerts. This seamless collaboration ensures proactive actions and insights for effective cloud management.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MojaBQWxQVU6d7rxeQmhjg.png" /></figure><h3>Cost Optimization and Autoscaling Magic</h3><p>One of the crown jewels of AWS CloudWatch is its prowess in cost optimization and autoscaling. By closely monitoring resource usage and integrating with services like Lambda functions, CloudWatch paves the way for automated cost optimization and scaling. It also excels in identifying unused resources and informing autoscaling groups to make timely adjustments, contributing to significant cost savings for AWS users.</p><h3>Real-Time Monitoring: A Game Changer</h3><p>The ability to monitor and visualize metrics in real time adds a whole new dimension to cloud management. With AWS CloudWatch, you can select specific metrics and time intervals to gain immediate insights and track activities. Real-time monitoring ensures that critical metrics are sent every minute, providing invaluable updates for informed decision-making and swift actions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hIsVB12BSWS01qRub-BzBQ.png" /></figure><h3>Harnessing the Power of CPU Utilization</h3><p>Delving into the specifics, AWS CloudWatch enables precise monitoring of EC2 CPU utilization and other vital metrics. Through practical demonstrations using Python scripts, the process of simulating CPU spikes and understanding the associated risks is illuminated. Furthermore, the configuration of alarms and SNS notifications for CPU spikes showcases the proactive and responsive nature of CloudWatch.</p><p><strong>Steps for CPU Utilization EC2 Instance alerting Metrics CPU Utilization once CPU spikes reached send notification mail to user using SNS:</strong></p><ol><li>Create One Ec2 Instance</li><li>Goto Cloudwatch-&gt;AllMetrics-&gt;EC2-&gt;Click on Pre Instance Metrices</li></ol><p>Select running instance with CPU Utilization Metrics</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RCxkmqwny9XGKbFyY09bJQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VCDi1z39AUx9zB15l7-goQ.png" /></figure><p>You can select different chart style likepie..bar</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*GbrywNSCJHzyUNyUK6x2Iw.png" /></figure><p>Choose Metrics Capture very 1 min,10 sec etc</p><p>2. Login your Ec2 Instance — i was created the python script for manually increasing the CPU Utilization. Below repo for the script</p><p><a href="https://github.com/sureshpasam/aws-devops-zero-to-hero/tree/main/day-16/default_metrics_demo">aws-devops-zero-to-hero/day-16/default_metrics_demo at main · sureshpasam/aws-devops-zero-to-hero</a></p><ul><li>&gt; Copy the script your ec2 instance and run</li></ul><p>Vi filename -&gt; copy the script here</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/1*h5PtIlYDcW7QouXudCE3Hw.png" /></figure><p>Run the script -&gt; Python3 &lt;filename&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/366/1*_oNR3EkC-Czke56ZXR411g.png" /></figure><p>Once run the file goto open ec2 instance -&gt; Monitor tab-&gt; Click on CPU Utilization of the EC2 and see — Metrics select maximum</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I38xHIqx7qI1NAgI4rcJtA.png" /></figure><p>Change the Metrics for Ec2 every 1 minute</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p5rRj1sQG4lf9AhruCUbIQ.png" /></figure><p>Cpu Utilization EC2 Instance and Cloud watch also capture the this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XL-ki5G_AnxA7GGlfCesKw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*7JTyfqVTIHUm_CsRv-Pitw.png" /></figure><p>Now I was create the alarm once CPU Utilization reach peaks — it will send notification</p><ol><li>Goto Cloud Watch create Alram for the Running instance metrics is CPU Utilization</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9mfbMb8cmGsIjXnBcoRHLw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9mfbMb8cmGsIjXnBcoRHLw.png" /></figure><p>Select metrics Same Ec2-&gt;CPU Utilization</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XvIfRxELRsxXEJY_PiCZaA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VBVsyw9IjwB0YgHeyPCOCA.png" /></figure><p>Select threshold 80</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*KhWrFHuoNFOGRNiCb00sNQ.png" /></figure><p>Create SNS topic and added Emails — email should verified</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*vjnsEIJJXKdF-u5odRYAGA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*wWn69i-O1jNApNxsoX63nQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*mZLQSQPhwTk2WEMZBHSLHg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qD7S16po0qXJa-OXpTdEgQ.png" /></figure><p>Finally</p><p>Goto Ec2 Instance and Run the script again</p><p>then see once CPU Utilization reach will get the notification mail</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C-cMa5GF-TGI1b7WIScDGg.png" /></figure><h3>Conclusion:</h3><p>As we conclude this exhilarating journey into the depths of AWS CloudWatch, it’s evident that this powerful tool is a game changer for cloud management. From vigilant monitoring to real-time insights and proactive alerts, CloudWatch empowers users to optimize costs, enhance security, and ensure seamless scalability in the AWS cloud. Brace yourself for a paradigm shift in cloud monitoring with AWS CloudWatch</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71496e8b5b65" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS ULTIMATE CICD PIPEPLINE | END TO END DEMO | AWS CODE PIPELINE | #aws #devops #cicd]]></title>
            <link>https://medium.com/@sureshpasam94/aws-ultimate-cicd-pipepline-end-to-end-demo-aws-code-pipeline-aws-devops-cicd-98f3db4f9467?source=rss-2e8bf5305470------2</link>
            <guid isPermaLink="false">https://medium.com/p/98f3db4f9467</guid>
            <dc:creator><![CDATA[Sureshpasam]]></dc:creator>
            <pubDate>Fri, 21 Jun 2024 15:13:03 GMT</pubDate>
            <atom:updated>2024-06-21T15:13:03.125Z</atom:updated>
            <content:encoded><![CDATA[<p>CI Process implemented below page: please follow and implement then flow below mentioned CD Process</p><p><a href="https://medium.com/@sureshpasam94/aws-ci-creating-end-to-end-pipeline-with-codepipeline-codebuild-with-aws-services-9666d3d9fab5">https://medium.com/@sureshpasam94/aws-ci-creating-end-to-end-pipeline-with-codepipeline-codebuild-with-aws-services-9666d3d9fab5</a></p><h3>AWS CodeDeploy with EC2 for Seamless Deployments</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*eofpGPZ8ZvOS5RrJwhX3BQ.png" /></figure><h3>Understanding AWS CodeDeploy Essentials</h3><p>In this section, we delve into the fundamental components of AWS CodeDeploy, emphasizing the significance of meticulous setup and configuration. Learn about applications, deployment configurations, and key considerations for a smooth deployment process.</p><p>Steps:</p><p>1, Create code Deploy code deploy-&gt; applications-&gt; create applications [ one Microservices is one application] with configuration</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*c8lc9Xe4jM0-eBchkNu_fg.png" /></figure><h3>Setting Up Your EC2 Deployment Platform</h3><p>Discover the crucial steps involved in creating and configuring an EC2 instance as the platform for hosting your applications. From naming conventions to resource tracking using tags, every aspect is covered to ensure a robust hosting environment.</p><ol><li>create EC2 Instance and add Tags for that instance</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*7s6f6sJW9ORHV6X80MJipQ.png" /></figure><h3>Installing and Configuring CodeDeploy Agent</h3><p>Unravel the mysteries of installing and understanding the CodeDeploy agent on your EC2 instance. Gain insights into the permissions required, troubleshooting tips, and best practices for seamless deployments.</p><ul><li>Login your EC2 Instance and configure the CodeDeploy and Docker install</li><li>ssh -i &lt;Location of pem file? ubuntu@&lt;ipaddress?<br><a href="https://docs.aws.amazon.com/codedeploy/latest/userguide/codedeploy-agent-operations-install-ubuntu.html"><strong>https://docs.aws.amazon.com/codedeploy/latest/userguide/codedeploy-agent-operations-install-ubuntu.html</strong></a></li><li><a href="https://aws-codedeploy-ap-south-1.s3.ap-south-1.amazonaws.com/latest/install">https://aws-codedeploy-ap-south-1.s3.ap-south-1.amazonaws.com/latest/install</a></li><li>systemctl status codedeploy-agent</li><li>sudo apt install docker.io -y</li></ul><p>Create Iam Role Below Iam Roles:</p><ul><li>CodeDeploy Role and Attach the CodeDeployFull Access</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*AZaL-Ybx0BJbTf2_ri2Mmg.png" /></figure><ul><li>EC2Role Role and Attach the CodeDeployFull Access and attach this role to EC2 Instance</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*3HvS_0WMyZI2W1Zuo01rFA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DZMUM_btJBSarwsD1_M9qg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*VUHECRaSP19Hrd64an18YQ.png" /></figure><h3>Creating Deployment Groups and Initiating Deployments</h3><p>Learn the ropes of setting up deployment groups for different applications on specific EC2 instances. From assigning roles to configuring deployment details, this section guides you through creating successful deployment setups.</p><ol><li>Create deployment group for the code deploy which is already created application</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JZIeFiOJqL_2_iL6Jb76jQ.png" /></figure><p>open the application and create deployment group with below configrations</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JZIeFiOJqL_2_iL6Jb76jQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*I2dzc6Me4lKTxPZc6QM84g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*kRx62Rt90ZnoQ__5YkOEHA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*Q5Ry_M2ZAeD_6ndE4G_0IQ.png" /></figure><h3>Configuring AWS CodePipeline and Application Deployment</h3><p>Explore the intricacies of connecting AWS CodePipeline with your GitHub repository for efficient application deployment. From YAML file creation to managing Docker commands, master the art of seamless deployment workflows.</p><p>Integrate CD process to CI</p><p>go to the CodePipeline which is already create and open that one</p><p>Click Edit</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UOdAcBI4ixwhkYEfLPthjQ.png" /></figure><p>Add CodeDeploy Stage after Build with below Configurations</p><p>Clickon Add Stage after CodeBuild Stage</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*tk5Q5AeO5PxOgJQI1FAthw.png" /></figure><p>After added stage click add action group</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/231/1*Pu5BEiStptxuwrvOQ2bg8A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dkLy888ohEDrwh1l9WpKHQ.png" /></figure><p>Click Done</p><p>Modify any file in the repo and commit -CI/CD process automatically trigger- pushed the image to docker hub, Ran docker container once execution done automatically removed the container</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*_eQGAq_uZYKwixjFUrvMcw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*twM6QmIfrbWIeluXi9LDzQ.png" /></figure><h3>Conclusion:</h3><p>In conclusion, mastering AWS CodeDeploy with EC2 opens up a world of possibilities for seamless application deployments. With a solid understanding of the deployment process and troubleshooting techniques, you can optimize your CI/CD workflows for enhanced efficiency and reliability.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98f3db4f9467" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS CI: Creating End-to-End Pipeline with CodePipeline & CodeBuild with AWS Services]]></title>
            <link>https://medium.com/@sureshpasam94/aws-ci-creating-end-to-end-pipeline-with-codepipeline-codebuild-with-aws-services-9666d3d9fab5?source=rss-2e8bf5305470------2</link>
            <guid isPermaLink="false">https://medium.com/p/9666d3d9fab5</guid>
            <dc:creator><![CDATA[Sureshpasam]]></dc:creator>
            <pubDate>Tue, 18 Jun 2024 04:11:21 GMT</pubDate>
            <atom:updated>2024-06-18T04:11:21.999Z</atom:updated>
            <content:encoded><![CDATA[<p>Explore the detailed guide on implementing continuous integration on AWS using managed services. Learn about AWS CodePipeline, CodeBuild, GitHub integration, and more.</p><p>Services: AWS CI, continuous integration, AWS CodePipeline, AWS CodeBuild</p><figure><img alt="ProjectDiagram" src="https://cdn-images-1.medium.com/max/690/1*eoB01cTFbSloObrs4MSjtQ.png" /></figure><h3>Mastering AWS CI with Real-Time Projects</h3><h3>Introduction:</h3><p>Embark on a journey to understand how to create an end-to-end continuous integration pipeline on AWS using managed services. Dive into the details of AWS CodePipeline, CodeBuild, GitHub integration, and more.</p><h3>Setting Up the Repository</h3><p>Start by creating a Flask-based python application and setting up the repository. Learn to create a basic Docker file and understand its structure. Copy the requirements.txt and flask source code in the Docker file to prepare for the next steps.</p><p>Use this Git Repo: <a href="https://github.com/sureshpasam/aws-devops-zero-to-hero/blob/main/day-14/simple-python-app/app.py">https://github.com/sureshpasam/aws-devops-zero-to-hero/blob/main/day-14/simple-python-app/app.py</a></p><h3>AWS CodeBuild and IAM Roles</h3><p>Understand the importance of IAM roles for AWS CodeBuild. Learn how to provide permissions, configure service roles, and manage access effectively. Create a build project in AWS CodeBuild and navigate the environment settings.</p><p>Steps to create Code Build Project:</p><ol><li>Goto Aws console and goto the AWS Code Build service -&gt; create code build project</li></ol><p>Enter the name of the project, source1 section select source provider — git hub</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*VHsGtAkDbvz-p6XrJi4Hng.png" /></figure><p>2. Click on connect and should be select connect to Github with connect using OAuth — Enter credentials of the Github then click on confirm</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*nYJx-ykhGn7RfVJDEywxAA.png" /></figure><p>After Github connected displaying like this then add your repo and project</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*kqs8x7m9dkjePMr8Qo3QdQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*wTjD95tIgrO_6wxQ3qculA.png" /></figure><p>Goto Environment section like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*_8FFT9g0IjONvUeeOACYnA.png" /></figure><p>Goto Build Spec File- write below like this — its already there in the project</p><p><a href="https://github.com/sureshpasam/aws-devops-zero-to-hero/blob/main/day-14/simple-python-app/buildspec.yml">https://github.com/sureshpasam/aws-devops-zero-to-hero/blob/main/day-14/simple-python-app/buildspec.yml</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*Mxt5hEZPzpEthvC-CbFpMg.png" /></figure><p>Note: Above Build spec file — Parameter- store — I was mentioned the creational in the AWS System Manager service, Above mentioned the naming format.</p><h3>Storing Sensitive Information</h3><p>Discover the best practices for storing sensitive information in <strong>AWS Systems Manager Parameter Store</strong>. Create parameters for Docker credentials and follow a standard format to enhance security and manage secrets efficiently.</p><p>Steps:</p><ol><li>goto to AWS System Manager -&gt; Parameter Store and create parameter and type as secure string.</li><li>In the value — you can add sensitive info like password etc</li></ol><p>these key and values store under parameter store in the SSM<br>/myapp/docker-credentials/username = ur docker username<br> /myapp/docker-credentials/password = docker pwd<br> /myapp/docker-registry/url = docker.io</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*ciiqYCB75fmqOCjzqJfnbg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*CbbcAm2IiY4K7smZShWg-Q.png" /></figure><p>Here check pipeline manually trigger:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*XJSkVOkFRtEbBE2ZmHRajQ.png" /></figure><p>If we get above error manuall triggering the job — you need to give the permission for code Build tot the AWS System Manager service</p><p>Navigation: Goto-&gt; IAM-&gt; Roles-&gt;CodePipeRole choose-&gt; Add permissions and attach the full access for system manage then</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*2x8Rp3HsP-IQ2aRi6YnMDw.png" /></figure><p>Come back to code build service and<strong> retry Build then build is succeed</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*2x8Rp3HsP-IQ2aRi6YnMDw.png" /></figure><h3>Integrating AWS CodePipeline :</h3><p>Learn how AWS CodePipeline acts as an orchestrator, automating AWS CodeBuild processes. Explore the seamless integration between GitHub and CodePipeline, enabling automated triggers for code changes and enhancing the CI workflow.</p><p>Steps:</p><ol><li>Goto Codepipeline service — Create pipeline with confiration</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*J99pnnxGWYZItkY_FUaTsQ.png" /></figure><p>Click on Next, Fill the fields like below and click on next</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*VcbcuJFyXvcAkXNuovd-_Q.png" /></figure><p>Step3: Here we can select build provider and project name which we created AWS Code build project name</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*7bQY4Ca7-sh209eNVqTp7A.png" /></figure><p>Step4: Click on above Next and click on skip deploy</p><p>currently we did the only CI Process</p><p>Total configuration details preview display below like this and click create pipeline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*BjslIrDYtVT2QIulf92_7Q.png" /></figure><p>Fillnally created pipelines display here and click on pipeline</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UE7iof6uxAIpIQysvN38bQ.png" /></figure><p>If we commit do any commit in your source CI Process automatically trigger.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PcO4oPw9KdOqWUHgtbGE0A.png" /></figure><h3>Conclusion:</h3><p>By mastering AWS CI with real-time projects, you can streamline your development processes, automate workflows, and ensure efficient code deployment. Embrace the power of continuous integration on AWS for enhanced productivity.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9666d3d9fab5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Project Deployment for simple application: VPC, Load Balancers, and Auto Scaling]]></title>
            <link>https://medium.com/@sureshpasam94/aws-project-deployment-for-simple-application-vpc-load-balancers-and-auto-scaling-c9cdcbebbcdf?source=rss-2e8bf5305470------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9cdcbebbcdf</guid>
            <dc:creator><![CDATA[Sureshpasam]]></dc:creator>
            <pubDate>Fri, 14 Jun 2024 05:18:31 GMT</pubDate>
            <atom:updated>2024-06-14T05:18:31.325Z</atom:updated>
            <content:encoded><![CDATA[<ul><li>AWS Project Deployment for Simple Application:</li><li>Utilizing AWS services such as VPC, Load Balancers, and Auto Scaling to deploy a simple application efficiently.</li><li>Configuring VPC for secure networking, Load Balancers for even distribution of traffic, and Auto Scaling for efficient resource management.</li></ul><h3>Understanding VPC Architecture</h3><p>Learn how a VPC with public and private subnets, NAT Gateway, and load balancer form the foundation of a secure AWS environment.</p><h3>Auto Scaling Applications</h3><p>Discover the power of auto scaling groups in deploying applications seamlessly across private subnets, ensuring high availability.</p><h3>Load Balancer Essentials</h3><p>Delve into the intricacies of load balancers, from load distribution to path-based routing, optimizing traffic flow for efficiency.</p><h3>Creating a Bastion Host</h3><p>Explore how a Bastion host acts as a secure gateway to access private subnets, enhancing the overall security of the deployment.</p><h3>Configuring Application Load Balancer</h3><p>Step by step guide on setting up an application load balancer in AWS, ensuring proper traffic routing and health checks for maximum efficiency.</p><p>Implementation<strong> Flow:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*Ge8Nev2FQTPZ9QNAFjl9zA.png" /></figure><p>Steps to above <strong><em>Architecture:</em></strong></p><ol><li>Create VPC using VPC more option — with 2 public and private with 2 AZ</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*HhG0S3s4Gf4Gh-Z8VMIkrA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*saiUlnAy1cd8m0AyKolfAA.png" /></figure><p>2. Create template with Ec2 instance configuration — navigation Ec2 service-Create launch template</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*RuR_FC4MwiysK6ig2qbXGA.png" /></figure><p>3. Create auto-scaling group with desired cap 2 with min1 and max -2</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xp4SPD5FHKeu9TvfiMBcZw.png" /></figure><p>3. Create bastion server in both public subnet with same VPC, using this to connect application server in the private subnet</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G9mVCbMw2Abbqa4__rfJdw.png" /></figure><p>4. Connect application using bastion host, to deploy your application both the servers</p><p>steps to connect application servers:</p><ol><li>first copy your .pemfile in your bastion server</li></ol><p>ssh -i &lt;name of the pem file&gt; ubuntu@&lt;private ip of the application server&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*32Ixs0_SPUsmpK8C1btF5w.png" /></figure><p>2. once connect to application server deploy your html application</p><p>vi index.html</p><p>using below code snippet</p><p><strong>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>&lt;body&gt;</strong></p><p><strong>&lt;h1&gt;Suresh Pasam Application hosted in the secure VPC with LB and autoscaling group in private subnet server 1&lt;/h1&gt;</strong></p><p><strong>&lt;/body&gt;<br>&lt;/html&gt;</strong></p><ul><li>&gt; Run the application http server 8000 port</li><li>python3 -m http.server 8000</li><li>successfully running your application with 8000 port</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ps6KafqDx9mekJLDXHHfLw.png" /></figure><p>5. Create target group with register the application n server and assign target TG to Load balancer</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*Lr8Hxau59kwEhCF7Mql2Bw.png" /></figure><p>6. Create L7/Application load balancer with LB DNS generate — using DNS access the your any where in the world . copy the DNS and paste the browser — you access the application</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*UrHaA3L2a4OzsgjsLwglZg.png" /></figure><figure><img alt="Finally application deploy" src="https://cdn-images-1.medium.com/max/940/1*fMEHYfU7TsP1WImCgm52aA.png" /></figure><p>Finally application deployed…..</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9cdcbebbcdf" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>