<?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 Shaheer Ahmad on Medium]]></title>
        <description><![CDATA[Stories by Shaheer Ahmad on Medium]]></description>
        <link>https://medium.com/@shaheerahmadrind?source=rss-52bd7b21c99------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*wNeglPhArLzJlLWKUwW2oA.jpeg</url>
            <title>Stories by Shaheer Ahmad on Medium</title>
            <link>https://medium.com/@shaheerahmadrind?source=rss-52bd7b21c99------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 22:58:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shaheerahmadrind/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[Configuring API Gateway Private Integration with VPC Link to Internal Network Load Balancer using…]]></title>
            <link>https://medium.com/@shaheerahmadrind/configuring-api-gateway-private-integration-with-vpc-link-to-internal-network-load-balancer-using-0c895de99068?source=rss-52bd7b21c99------2</link>
            <guid isPermaLink="false">https://medium.com/p/0c895de99068</guid>
            <category><![CDATA[ek]]></category>
            <category><![CDATA[nlb]]></category>
            <category><![CDATA[vpc-link]]></category>
            <category><![CDATA[nginx-ingress]]></category>
            <category><![CDATA[api-gateway-private]]></category>
            <dc:creator><![CDATA[Shaheer Ahmad]]></dc:creator>
            <pubDate>Sat, 20 Jul 2024 13:49:42 GMT</pubDate>
            <atom:updated>2024-07-20T13:49:42.595Z</atom:updated>
            <content:encoded><![CDATA[<h3>Configuring API Gateway Private Integration with VPC Link to Internal Network Load Balancer using NGINX Ingress Controller on AWS EKS</h3><ol><li>The purpose of this configuration is to keep all your backend services private while using the API Gateway.</li><li>We could use EKS internal service URLs but when it comes integration request part in the API gateway, the API gateway doesn’t consider EKS internal URLs as valid URLs.</li><li>Create Rest API Gateway(regional) and Resources inside it.</li><li>Don&#39;t do the integration request part yet.</li><li>Create Nginx Ingress Controller using the following command:<br>helm install nginx-ingress ingress-nginx/ingress-nginx — namespace ingress-nginx — set controller.service.annotations.”service\.beta\.kubernetes\.io/aws-load-balancer-internal”=”true”<br>after running this command successfully, you should check in your AWS Console to verify if the NLB Internal has been created.</li><li>Deploy your application in the EKS and keep the service type as ClusterIP.</li><li>Create an Ingress resource for your application and use the following snippet in all of your ingress resources for your backend microservices:</li></ol><pre>apiVersion: networking.k8s.io/v1<br>kind: Ingress<br>metadata:<br> name: ingress-name<br> namespace: namespace-name <br> annotations:<br>  nginx.ingress.kubernetes.io/ssl-redirect: &quot;false&quot;<br>  nginx.ingress.kubernetes.io/use-regex: &quot;true&quot;<br>  nginx.ingress.kubernetes.io/rewrite-target: /$2<br>  nginx.ingress.kubernetes.io/backend-protocol: &quot;HTTP&quot;<br>spec:<br> ingressClassName: nginx<br> rules:<br>  - http:<br>    paths:<br>     - path: /nameoftheapi(/|$)(.*)<br>      pathType: ImplementationSpecific<br>      backend:<br>       service:<br>        name: service-name<br>        port:<br>         number: 80</pre><p>Now test by going inside your frontend application same namespace pod and try running the following command:</p><pre>curl http://NLB-DNS/nameoftheapi</pre><p>you should be able to get the backend service response. <br>e.g welcome to express/node/nameoftheservice<br>Do it for all of your backend microservices and do remember to change the path for each backend microservice for the backend for the Internal NLB to understand which service it needs to communicate to.<br>for example<br> — path: /nameoftheAPI1(/|$)(.*)<br>- path: /nameoftheAPI2(/|$)(.*)<br>- path: /nameoftheAPI3(/|$)(.*)<br>You will have to create as many ingress resources as many backend node/python microservices you have in your application.</p><p>8. Create a VPC link for Internal NLB.<br>9. Go to the API gateway and then go inside your resource method.<br>10. Click on the Integration request tab.<br>11. Select VPC Link and select VPC link you just created in step number 8.<br>12. Select the Method type GET, POST etc.<br>13. In URL part add <a href="http://http//NLB-DNS/route-of-your-api">HTTP://NLB-DNS/route-of-your-api</a>/path-of-resource that you set in relevant Ingress resource.<br>14. Save and Test.<br>15. You should be able get the expected response in your API gateway test tab.<br>16. Enable CORS for each resource and then deploy the API.<br>17. Wait for 2–3 min and then add the invoke URL of your regional API gateway in your frontend service ENV file.<br>18. Redeploy the Code for the application to have the latest ENV.</p><p>In this article, we understood how can we use an API gateway with a VPC link to internal NLB to keep all the backend services of the application internalized while using the API gateway as well. We used Nginx Ingress Controller because we had multiple backend services. If you have one backend you can just directly use the Loadbalancer type in Kubernetes service manifests.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0c895de99068" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Revoking the 18th amendment]]></title>
            <link>https://medium.com/@shaheerahmadrind/revoking-the-18th-amendment-5f8cf6e2a944?source=rss-52bd7b21c99------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f8cf6e2a944</guid>
            <category><![CDATA[18th-amendment]]></category>
            <category><![CDATA[politics]]></category>
            <category><![CDATA[presidential-system]]></category>
            <category><![CDATA[factualism]]></category>
            <category><![CDATA[imran-khan]]></category>
            <dc:creator><![CDATA[Shaheer Ahmad]]></dc:creator>
            <pubDate>Sun, 28 Apr 2019 07:50:11 GMT</pubDate>
            <atom:updated>2019-12-05T11:48:19.966Z</atom:updated>
            <content:encoded><![CDATA[<p>From the past few days <strong>“Presidential system” </strong>is part of top trends on twitter in Pakistan.</p><p>There are few facts/questions everyone needs to understand in a literal sense.</p><ol><li>Why Presidential system has a direct link with the 18th Amendment in the constitution of Pakistan?</li><li>What’s the future of the 18th amendment?</li><li>Why it is under discussion these days?</li><li>Our history with a presidential form of government?</li><li>Is it good or bad for strengthening democracy in Pakistan?</li><li>Is there any possibility to amend it again?</li><li>Do we have any other options?</li></ol><p>The<strong> 18th Amendment of the Constitution of Pakistan</strong> was passed by the National Assembly of Pakistan on April 8, 2010, removing the power of the President of Pakistan to dissolve the parliament unilaterally, turning Pakistan from a semi-presidential to a republic, the bill reversed many infringements on the Constitution of Pakistan over several decades by its military rulers. The amendment bill was passed by the Senate of Pakistan on April 15, 2010, and it became an act of parliament when President Asif Ali Zardari put his signature on the bill on April 19, 2010. It was the first time in Pakistan’s history that a president relinquished a significant part of his powers willingly and transferred them to parliament and the office of the prime minister.</p><p>Before going into further details we need to remember a few facts:</p><p>PML-N and PPP both are united on 18th amendment so they are not going to revoke it in future because it has destroyed many times the possibilities of strengthening the democracy in Pakistan. We need 2/3rd majority for a constitutional amendment in both houses. Without PPP and PML-N it is not possible.</p><p>Why it is under discussion these days?</p><p>1) The federal government has fewer resources.</p><p>2) They haven’t collected the taxes yet.</p><p>3) After Balakot attack defence expenditures have been increased.</p><p>4) Government isn’t getting any bailout packages.</p><p>Under the 18th amendment, provinces are getting 5–10% more share of NFC award so the federal government is trying to get back the extra share which is not possible without amendment. But the government can negotiate the extra share under the body of NFC so that’s one possibility.</p><p>18th amendment is also linked with the presidential form of government. Before the 18th amendment, there was a clause in the constitution of Pakistan i.e. 58–2B which was added by Dictator General Zia ul Haq. More interestingly every single president in the history of Pakistan has used this clause to dissolve assemblies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*hhZtTTt31l1j5xGwyOtBVw.jpeg" /><figcaption>58–2B</figcaption></figure><p>Zia-ul-Haq dismissed the government of Junejo sahib, Ishaq Khan dismissed the governments of Benazir Bhutto and Nawaz Sharif, and Farooq laghari dismissed the government of Benazir Bhutto.<br>Fatima Jinnah said that Ayyub Khan offered military help from Pakistan to India when there was a war going on between China and India. Thankfully Nehru didn’t agree otherwise the so-called HERO in the history of Pakistan Dictator General Ayyub would have sold the independence of the people of Pakistan</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*IJPk9Kx0If2Z9eCjwIebUg.png" /><figcaption>The reference book for the statement of Fatima Jinnah</figcaption></figure><p>When Nawaz Sharif came to power again he decided to delete the clause of 58–2B from the constitution of Pakistan under the 19th amendment.</p><p>When Dictator General Pervaiz Musharaf came to power he decided to restore 58–2B under 21st amendment. Fortunately, ex-president Asif Ali Zardari and Nawaz sharif mutually decided to restore 18th amendment and deleted the clause of 58–2B.</p><p>In 2011 General Pasha called Journalist Hamid Mir and was of the view that Parliamentary form of government and Pakistan can’t be together, so help us in getting rid of the current government. Fortunately, Hamid Mir denied and the next day he started getting threats.</p><p>Supporters of Imran Khan are of the view that Imran Khan needs more power to make Naya Pakistan he has promised because under a parliamentary form of government IK doesn’t have enough powers in the assembly. They’re also of the view that IK is honest with no record of corruption so he won’t exploit his powers as a president. But the road to hell is paved with good intentions.</p><p>Why it is not good for Pakistan?</p><p>Here are a few facts we need to consider:</p><ol><li>The economy grew well under General Ayyub Khan Regime but Pakistan’s dependency on the US also grew over time.</li><li>Seeds of the separation of East Pakistan also sown under the regime of Ayyub Khan.</li><li>Just because of the presidential system one unit came into existence which means no provincial autonomy, which further resulted in the form of Bangladesh.</li><li>Zulfiqar Ali Bhutto as a president of Pakistan dismissed the governments in KP and Balochistan, which further resulted in alienation and sub-nationalism.</li><li>General Zia made Jihadi groups and we’ve seen the consequences in the form of extremism, sectarianism and terrorism. Prime Minister Imran Khan said that we’re not going to repeat those mistakes.</li><li>General Musharraf also did many blunders during his regime.</li></ol><p>People campaigned against all presidents of Pakistan which tells that masses of Pakistan never accepted the presidential form of government. History tells that every single president in the history of Pakistan exploited his powers.</p><p><strong>Is it possible to bring any kind of reforms in a parliamentary form of government for the betterment of Pakistan so that Imran Khan can run the government the way he wants without being blackmailed?</strong></p><h4>The answer is yes, we can amend the constitution in a way that half of the parliamentarians will be professionals and half of them will be representatives. The actual task of representatives is legislation and policies are always implemented by professionals. So that’s the only viable solution we can opt for. We should learn from our history and let democracy prevail.</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f8cf6e2a944" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Volunteering Experience with The Citizens Foundation Pakistan.]]></title>
            <link>https://medium.com/@shaheerahmadrind/volunteering-experience-with-the-citizens-foundation-pakistan-c223493dcd56?source=rss-52bd7b21c99------2</link>
            <guid isPermaLink="false">https://medium.com/p/c223493dcd56</guid>
            <category><![CDATA[positivity]]></category>
            <category><![CDATA[volunteering-experience]]></category>
            <category><![CDATA[rural-areas-of-punjab]]></category>
            <category><![CDATA[educational-reform]]></category>
            <category><![CDATA[tcf]]></category>
            <dc:creator><![CDATA[Shaheer Ahmad]]></dc:creator>
            <pubDate>Fri, 12 Apr 2019 13:15:34 GMT</pubDate>
            <atom:updated>2019-12-05T11:53:23.295Z</atom:updated>
            <content:encoded><![CDATA[<p>After my CSS exams in February 2019 , i was looking for a platform where i can work at grass root level and become part of educational reforms or a platform where we can discuss about career counseling because most of the people in Pakistan want to become engineers or doctors just because of a myth “if you want to prove yourself or want to become successful in life you’ve to become doctor or engineer and these are the only acceptable professions in our society” or one can say positivity in life because people at very early stages in their lives don’t have enough people to communicate with about their plans or how to face failures in life and how to take your failures as a motivation to become successful in life. How to handle a situation when someone at school is bullying you about your colour, caste, height, religion or financial status or how to realize a fact that material things don’t matter in long run and just bring temporary satisfaction in life.</p><p>Someone told me about The Citizens Foundation and luckily they were looking for people who want to volunteer themselves in Rahbar program. I decided to volunteer myself and here is what I’ve learnt so far.</p><p>We’ve been assigned a school located in outskirts of Lahore in a village named Wara Allah Daad near Indian border where one can see Indian and Pakistani flags with the naked eye. This is the first time in my life that I’ve interacted with people living in villages, Saw my father when he was serving in rural areas of KP but never interacted with anyone. I’ve been assigned 7 kids and all are from different backgrounds and most of them are first-ever kids in their families who are allowed to study at school. They’ve to help their parents when they go back to their home after school. Some of them have to clean the dung of their cattle, some of them have to help their parents in farms which are owned by the Chaudhary of the village.</p><p>Not a single kid has a residence in the same village where school of TCF is situated so they’ve to travel 20–25 KM on daily basis to attend school and there is a hope I can feel, no matter how poor they’re financially or how difficult it is for them to continue both i.e study and help their parents in activities of daily life at the same time. They still have dreams about what they want to become in their lives. Some of them want to become engineers, doctors, Artists etc. and even there’s a guy who wants to become Hakeem which proves that their dreams aren’t artificial. They don’t consider any profession good or bad. They’re full of positivity, honesty and spirit. They don’t want to act fancy and want to impress the delegation of professionals from Punjab’s capital by telling them their fancy and artificial dreams. I’ve learnt one thing during this journey that no matter how bad life is treating you, you should be cheering whatever you’ve and stay positive no matter how bad your experiences are. Try to find happiness in the little things that matter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*7H2ML_GVmVC9GagIqapthA.png" /><figcaption>Left to Right (Ali, Adnan, Haseeb, Zain, Shaheer, Ahsan, Fahad, Huzaifa )</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c223493dcd56" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>