<?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 Aniruddha Jawanjal on Medium]]></title>
        <description><![CDATA[Stories by Aniruddha Jawanjal on Medium]]></description>
        <link>https://medium.com/@aniruddha_74159?source=rss-4dff75f95b1d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Egg8wWDUxQXhUDw6C7QhKg.png</url>
            <title>Stories by Aniruddha Jawanjal on Medium</title>
            <link>https://medium.com/@aniruddha_74159?source=rss-4dff75f95b1d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 10:38:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aniruddha_74159/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[Setting up CrossAccount 10DLC in AWS]]></title>
            <link>https://medium.com/@aniruddha_74159/setting-up-crossaccount-10dlc-in-aws-d81416e10ed3?source=rss-4dff75f95b1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d81416e10ed3</guid>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[pinpoint]]></category>
            <dc:creator><![CDATA[Aniruddha Jawanjal]]></dc:creator>
            <pubDate>Wed, 18 Aug 2021 12:58:11 GMT</pubDate>
            <atom:updated>2021-08-18T12:58:11.430Z</atom:updated>
            <content:encoded><![CDATA[<p>IF you want to use the 10DLC number of Main Account to send messages from the Dev Account then you should have a 10DLC number provisioned in the main Account. If you do not have it, you can follow the below blog</p><p><a href="https://aws.amazon.com/blogs/messaging-and-targeting/send-sms-messages-at-scale-using-10dlc-and-amazon-pinpoint/">https://aws.amazon.com/blogs/messaging-and-targeting/send-sms-messages-at-scale-using-10dlc-and-amazon-pinpoint/</a></p><p>In case you already have a 10 DLC number and you wish to use the same using the Dev Account, details as below:</p><p>Let’s say the account where you have already registered the company and 10DLC campaign is A(Main Account) and another account is B(Dev Account).</p><p>1. We need to first create a role in account A that gives <strong><em>mobiletargeting:SendMessgaes</em></strong> to the role. The attached policy will be similar to below:</p><blockquote>{<br> “Version”: “2012–10–17”,<br> “Statement”: [<br> {<br> “Sid”: “CrossAccount10DLC”,<br> “Effect”: “Allow”,<br> “Action”: “mobiletargeting:SendMessages”,<br> “Resource”: “*”<br> }<br> ]<br>}</blockquote><p>In the above policy snippet, I have provided “Resource”: “*”. However, if you want to restrict for a specific applications, then please feel free to add the of ARN the same in the “Resource” section. <br>Additionally, if you are using SNS as well to send messages from another Account, you have to add <strong><em>sns:Publish</em></strong> permissions as well along with <strong><em>mobiletargeting:SendMessages</em></strong> to the role created in the Account A(main Account).</p><p>Then in the Trust relationship for this role, you need to allow this account B in a similar manner as below:</p><blockquote>{<br> “Version”: “2012–10–17”,<br> “Statement”: [<br> {<br> “Effect”: “Allow”,<br> “Principal”: {<br> “AWS”: “arn:aws:iam:: &lt;Account B&gt;:root”<br> },<br> “Action”: “sts:AssumeRole”,<br> “Condition”: {}<br> }<br> ]<br>}</blockquote><p>2. Once you complete above step, you can assume the role from Account B(Dev Account) provided that the user in Account B has assume-role permissions for this role. If not, you need to give that user the assume-role permission for created role (created in Account A).</p><p>3. After assuming the role, user can send the messages using 10DLC number which has been procured in Account A. Also, while sending messages from Account B user can use the 10DLC number provisioned in the Main Account(Account A).</p><p>While sending the text messages to US destinations through Account B(i.e. Dev Account) you need to explicitly specify the 10DLC number present in the Account A (i.e. Main Account) as Origination phone number.</p><p>However, please note that if you want to use Cognito userpool to send text messages and you wish to send them using the 10DLC number registered in another Account, it is not possible.</p><p><strong>Unfortunately, the 10DLC Cross account integration feature is not supported for Cognito</strong>. Currently, Cognito service internally calling the SNS publish API call, because of which you won’t be having control on this API request to add the 10DLC number as OriginationNumber or assume role.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d81416e10ed3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Putting Geo-restriction in countries on Cloudfront: WAF vs Cloudfront]]></title>
            <link>https://medium.com/@aniruddha_74159/putting-geo-restriction-in-countries-on-cloudfront-waf-vs-cloudfront-1cef34123324?source=rss-4dff75f95b1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/1cef34123324</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-cloudfront]]></category>
            <category><![CDATA[aws-waf]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Aniruddha Jawanjal]]></dc:creator>
            <pubDate>Wed, 21 Jul 2021 13:07:51 GMT</pubDate>
            <atom:updated>2021-07-21T13:07:51.663Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Cloudfront:</strong></p><p>We can either block or whitelist countries but we can’t do both.<br>So, we can just block the countries in Cloudfront and allow the rest.<br>OR<br>we can allow few selected countries and block rest of them.</p><p><strong>WAF:</strong><br>We can do both: Block and Allow countries. We will need to add rule in existing WAF.</p><p>So, we can get same result by using any of the above two.</p><p><strong>Only difference is:</strong></p><p><strong><em>WAF:</em></strong> When user tries to access application, if he/she is accessing from blocked countries, WAF will throw ugly Cloudfront 403 error on homepage</p><p><strong><em>Cloudfront:</em></strong> It will give empty homepage.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1cef34123324" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DevSecOps: OWASP Dependency Checks in Jenkins]]></title>
            <link>https://medium.com/opseco-technologies/devsecops-owasp-dependency-checks-in-jenkins-b788127ec9ff?source=rss-4dff75f95b1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/b788127ec9ff</guid>
            <category><![CDATA[cicd]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[opseco]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[jenkins]]></category>
            <dc:creator><![CDATA[Aniruddha Jawanjal]]></dc:creator>
            <pubDate>Tue, 07 Jul 2020 12:35:51 GMT</pubDate>
            <atom:updated>2020-07-07T12:35:51.897Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Adding Sec in DevSecOps</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*tyhOGZVyHr_BOxwtniV-Aw.png" /></figure><p>We use OWASP dependency check plugin in Jenkins To detect known vulnerabilities in a project’s dependencies. It does this by scanning the project to detect references to components that have been assigned CVE (Common Vulnerability and Exposure) entries, and to report these known vulnerabilities to the developers.</p><p>Adding the OWASP Dependency Check plugin to our pipeline is a simple first step to reduce the attack surface which is easy to implement, as it requires no server reconfigurations or additional servers in order to work. In its most basic form, it is simply to install the plugin and roll out.</p><p>To perform this check, we installed <a href="https://plugins.jenkins.io/dependency-check-jenkins-plugin"><strong><em>OWASP Dependency-Check</em></strong></a> plugin in Jenkins server.</p><p>After installation, the plugin needs some basic configuration in order to become operative. Go to <strong><em>Manage Jenkins &gt; Global Tool Configuration</em></strong></p><p>and scroll down to Dependency-Check and click <strong><em>Add Dependency-Check</em></strong>.</p><p>We can name the Dependency-Check installation anything we want, but if we add multiple installations, descriptive names help distinguish between them. To install the plugin, we can use our own installation files or use the default files hosted by Bintray.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LQl8OvjWd-Xlx1bS6IYS0w.png" /></figure><p>To start using the plugin, you need to edit the configuration of your project. First, we need to add the plugin as a build step. Go to <strong><em>{Your project name} &gt; Configure and add “Invoke Dependency-Check”</em></strong> to the build process.</p><p>Choose the installation that you created earlier. For now, you can leave the Arguments field blank.</p><p>For the plugin to be able to fail a build, we need to process the dependency-check results as a post-build action. <strong><em>Add “Publish Dependency-Check results” </em></strong>to the post-build process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*beJgYNbHA-ewztSLt1Lbew.png" /></figure><p>After running your first build, you will get a new graph on the main project page. This graph will show you the number of findings that the plugin has discovered in the project and allows you to see trends over time.</p><p>We did not get any dependency issue yet, so we can’t see any changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*U-cUpkaZI0NiQILijioSAA.png" /></figure><p>The results page is parsing the XML file that the plugin has generated during the build process. The raw xml version of the report is stored in the projects workspace and can be downloaded from there.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b788127ec9ff" width="1" height="1" alt=""><hr><p><a href="https://medium.com/opseco-technologies/devsecops-owasp-dependency-checks-in-jenkins-b788127ec9ff">DevSecOps: OWASP Dependency Checks in Jenkins</a> was originally published in <a href="https://medium.com/opseco-technologies">ProDT Consulting Service Pvt. Ltd.</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloud Migration Case Study for scalable Travel Website]]></title>
            <link>https://medium.com/opseco-technologies/cloud-migration-case-study-for-scalable-travel-website-cd4bb243586f?source=rss-4dff75f95b1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd4bb243586f</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[cloud-migration]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[opseco]]></category>
            <category><![CDATA[aspnet]]></category>
            <dc:creator><![CDATA[Aniruddha Jawanjal]]></dc:creator>
            <pubDate>Wed, 20 May 2020 10:36:21 GMT</pubDate>
            <atom:updated>2020-05-20T10:36:21.844Z</atom:updated>
            <content:encoded><![CDATA[<p>Travelsouq had an on-prem infrastructure, consisting of 10 servers of varying age &amp; specification, split across different racks in a single datacenter. The setup was a mixed bag of issues related to performance, reliability and options for rapid recovery. A major architectural review was required. Various options were analysed including in-house replacement, hybrid solution across cloud and in house setup and private cloud deployment.</p><h3><strong>The Solution</strong></h3><p>After review of current &amp; longer term business requirements, a number of basic viable options were identified.</p><p>After considering a design review of those options, it came down to two specific options — either a hybrid solution with a mix of local and public cloud services, or a complete IaaS (Infrastructure as a Service) migration.</p><p>These two options were fully reviewed and costed. It quickly became clear that a full IaaS migration would manage to avoid a lot of design compromises associated with hybrid deployment. The decision was made to deploy an AWS Solution capable of handling the demands of thousands of users and unplanned requests sent by partners.</p><p>Every part of existing IT infrastructure was challenged to determine its business fit and value. Its lifecycle position and future return on investment.</p><h3><strong>The Benefits</strong></h3><p><strong>Agility</strong></p><p>Servers, storage, networking and overall compute capacity are constantly being refactored and adjusted to align tightly with the business needs during a phased project approach.</p><p><strong>Flexibility &amp; Saving Capital Expenditure</strong></p><p>In a traditional local infrastructure, the infrastructure would have taken months to procure and deploy; and the business needs would have had to be shoe-horned into what was purchased regardless of fit. During COVID-19 crisis, the travel industry was badly affected and the demand reduced. The infrastructure was scaled down by 60% without any manual intervention and saved OPex cost which is important for business during these times.</p><p><strong>Resilience</strong></p><p>Even during the time of global pandemic, Travelsouq is able to run business as usual, with rapid recovery of IT infrastructure and data in the cloud.</p><h3>TravelSouq Migration Implementation</h3><p>Travelsouq is a leading travel website in the Middle east with thousands of users using it per day. Our challenge was to create a scalable infrastructure that can handle changing demands and also reduce the time to release the new features.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*r7OU45zRPNWIrB3i" /></figure><h3><strong>Strategy</strong></h3><p><strong>Assess the present infrastructure</strong></p><p>To get a present demand for a website, we used monitoring metrics like memory, CPU, network usage and number requests over a 24 hours period on normal days. A typical pattern emerged with changing demand for services over the 24-hours span as most of the users were located in one geographical area.</p><p><strong>Create infrastructure architecture plan for cloud</strong></p><p>We needed an autoscaling based infrastructure to meet the unpredictable user patterns. Also, we needed to configure continuous integration and deployment, all round monitoring and alerting, implement the standard security patterns for any exploit attacks on a B2C website. We had to optimize the infrastructure to reduce latency for end users.</p><h3><strong>Implementation</strong></h3><p><strong>Processes &amp; Tools</strong></p><ul><li>Configuration Management as a code</li><li>Infrastructure as a code</li><li>Continuous integration and deployment</li><li>On-demand Scaling</li><li>Web Application Firewall</li><li>Code quality assessment</li><li>Code Vulnerability assessment</li><li>Caching and content delivery</li><li>User request logging</li><li>Application Error logging</li></ul><p><strong>Configuration Management</strong></p><p>We used configuration management systems to install and configure packages, webserver and application server configurations. This way, there were no surprises when the configuration changes were needed to be rolled out. These changes were tested in staging environments along with application code. Once validated, these changes were rolled out in production. This enabled us to avoid any surprises in production infrastructure.</p><p><strong>Infrastructure as a code</strong></p><p>In the cloud, everything can be described as an API call. Over the period, if we miss any infrastructure change to document, it becomes difficult to point out the change if not documented. We created an immutable infrastructure with IaaC tools. If required, we could spin up a replica setup in a matter of minutes. This helped us a great deal to spin up the same infrastructure in different geographies with minor changes.</p><p><strong>Continuous integration and deployment</strong></p><p>To reduce the time to push new features, we set up deployment pipelines that automated the process of sending data to staging as soon as new changes were made in a specific branch. This enabled developers and QA teams to have more confidence in the new implementation while saving precious time. With agile methodologies, we were able to provide the new changes on demand as per business requirements.</p><p><strong>On-demand Scaling</strong></p><p>We meet consistently changing demands, we implement auto scaling to meet the changing demands. With usage metric patterns over user requests on load balancers, or memory utilisation of processing servers which enabled us to meet unexpected spikes and also save the infrastructure cost when demands were low, without any manual intervention.</p><p><strong>Web Application Firewall</strong></p><p>A major challenge to any B2C websites are common web security flaws which are consistently exploited by hackers or bots like cross site scripting, SQL Injections etc. This can cause business data loss, data breach of trusted user data. We implemented automated webapp firewalls which cover custom designed rules and common web exploits and secure the website from any such attempts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*44EsFkP0PVgbIViG" /></figure><p><strong>Code quality assessment</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FqIF3xpdqWioH2CKsOJP1g.png" /></figure><p>We added tools for continuous inspection of code quality in our deployment pipelines to perform automatic reviews with static analysis of code to detect bugs, code smells, and repeatability. Thus, preventing issues even before they occur and also increase code quality.</p><p><strong>Code Vulnerability assessment</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/0*AJKLRSzlKzXc7QsV" /></figure><p>OWASP issues can be exploited by hackers to expose internal implementations. We have implemented code vulnerability checks to prevent these issues as they occur. These can be solved by developers right there to improve quality of code.</p><p><strong>Caching and content delivery</strong></p><p>To serve the user base spanning over multiple geographical locations, it becomes necessary to enhance user experience with reduced latency. As most of the first time users will wait only for 5 seconds when loading your website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xlajGfVNGgmqehCd" /></figure><p>Also, we enabled detailed graphs to get insights about website performance and user interaction with our content delivery network systems.</p><p><strong>User request &amp; Application error logging</strong></p><p>We are using application access logging and user request logging to get insights to improve application performance and user experience. For eg., we used logging analysis tools to get specific error codes that can hamper the user experience. We used those error codes with application developers and solved those issues to provide streamlined experience for end users.</p><p><strong>Monitoring &amp; Alerting</strong></p><p>In today’s complex applications, we need detailed information about what’s happening in our infrastructure to assess and mitigate any unpleasant occurrences like downtime. That’s why we have an all round monitoring system in place which helps to get insights in present status, gets in-depth granular graphs and we can add custom plugins for application level monitoring. Also, we use a single dashboard to monitor different components — Cloud &amp; On-Prem with the same system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><h3>Key Takeaways</h3><ul><li>Detailed analysis can help businesses identify the right cloud solution for their needs</li><li>Deploying software more frequently doesn’t have to mean reduced stability/reliability</li><li>Cloud capabilities can improve disaster recovery planning</li><li>When service costs are a concern, cloud’s flexibility may help</li><li>Improved stability and availability can be a big benefit of cloud migration</li><li>Business and user needs drive cloud needs</li></ul><p>We used our devops and cloud expertise to provide a scalable infrastructure solution to our clients. <a href="https://opseco.io/">Opseco Technologies</a> have proven processes and expertise in tools to achieve your cloud objectives.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd4bb243586f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/opseco-technologies/cloud-migration-case-study-for-scalable-travel-website-cd4bb243586f">Cloud Migration Case Study for scalable Travel Website</a> was originally published in <a href="https://medium.com/opseco-technologies">ProDT Consulting Service Pvt. Ltd.</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Assign Fixed IP to AWS API Gateway]]></title>
            <link>https://medium.com/opseco-technologies/assign-fixed-ip-to-aws-api-gateway-fb72507a2883?source=rss-4dff75f95b1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb72507a2883</guid>
            <category><![CDATA[lambda]]></category>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[api-gateway]]></category>
            <category><![CDATA[serverless-architecture]]></category>
            <dc:creator><![CDATA[Aniruddha Jawanjal]]></dc:creator>
            <pubDate>Sat, 28 Sep 2019 12:21:01 GMT</pubDate>
            <atom:updated>2019-10-09T14:02:49.600Z</atom:updated>
            <content:encoded><![CDATA[<h3>The interesting use case of assigning fixed IP to AWS API Gateway!!</h3><p>Can you assign a fixed IP to API Gateway?</p><p>Well... Sure, you can. You shouldn’t though.</p><p>But hey, the world is not perfect. And in this imperfect world, you still need to Whitelist Static IPs on the firewalls. These firewalls are stubborn enough to not to accept the CNAME or service endpoints of API Gateway 😔. These things still happen in the world of serverless applications!!</p><p>So, here we are — assigning a fixed IP to an API Gateway.</p><p>We have this typical serverless app that uses API Gateway, Lambda, DynamoDB. Normally, our request flow looks like this —</p><p><strong>User Request → Domain Name(Route53) → API Gateway (CNAME) → Lambda → DynamoDB</strong></p><p>If you’ve been worked with AWS even for a while, you will notice that AWS provides <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html">service endpoints</a><strong> </strong>for its different services like RDS, Cloudfront, ELB, etc. and the IP for these services keeps changing. Now, we are hosting a telecom app that needs a fixed IP for inbound and outbound traffic. This is where things get complicated.</p><p>As our Lambda jobs are within Private Subnet, it’s naturally using NAT Gateway for outgoing traffic. As you know, NAT Gateway has fixed IP so we are good as long as outgoing traffic is considered.</p><p>For incoming traffic — we can have a simple reverse proxy. But the problem with that is, the number of requests can change from tens thousand to million on a daily basis. So, we came up with this —</p><p><strong>User Request → Domain Name(Route53) → EC2 (Nginx Reverse Proxy with Fixed IP) → API Gateway (CNAME) → Lambda → DynamoDB</strong></p><p>But the problem with this approach is — it’s Not scalable enough!!</p><p>So, we had to improvise. That’s where the Network LoadBalancer and Autoscaling helped us out. NLB was a no-brainer for below reasons</p><ul><li>Ability to handle volatile workloads and scale to millions of requests per second.</li><li>Support for static IP addresses for the load balancer</li></ul><p>With Autoscaling, We are mitigating future problems like</p><ul><li>No unnecessary cost for big EC2 instances</li><li>Reverse Proxy implementation will be scalable as requests increases</li></ul><p>Now, this is how our architecture looks:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b1brfD4UDjkKme4y78wW2A.png" /><figcaption>NLB(Elastic IP)-EC2(Elastic IP — Nginx Reverse Proxy)-API_Gateway-Lambda</figcaption></figure><p>So, that’s about theory.</p><p>Let’s take a look at practical. Now I have an LB which accepts traffic over HTTPS and HTTP — which will forward traffic to Nginx over HTTP which in turn forwards the traffic to API Gateway which has HTTPS service endpoint.</p><p>For now, we will take a look at the configuration that we implemented for Nginx reverse proxy to API Gateway.</p><p>First, I needed to configure the SELinux for Nginx to allow Nginx network connections as I was using an RHEL Instance. If you’re using Ubuntu, you don’t need to worry about this.</p><blockquote>setsebool -P httpd_can_network_connect</blockquote><p>Now — that’s one issue solved. The next challenge was the dynamic IP of API Gateway. Nginx tends to resolve the IP when it starts, reloads or restarts. In case of IP change for API Gateway, that would cause us a bit of trouble. So, this is where <strong><em>resolver</em></strong> comes into the picture.</p><p>The resolver directive updates the IP of the upstream server when valid=time is expired.</p><p>As we have hosted the our server in AWS VPC, I had to execute this to get AWS Resolver IP</p><pre>[root@ip-xx-xx-xx-xxx ~]# grep nameserver /etc/resolv.conf | cut -d &quot; &quot; -f2 | sed &#39;s/\\./\\\\./g&#39; | sed &#39;s/\\\\//g&#39;<br>10.0.0.2</pre><p>The resulting IP ‘10.0.0.2’, used as a resolver in the Nginx Proxy Pass configuration. The Nginx configuration as below</p><pre>map $http_host $prefix {<br>        default &quot;&quot;;<br>    }</pre><pre>map $http_host $served_host {<br>        abc.xyz.com abcpqr.execute-api.us-east-1.amazonaws.com;<br>    }</pre><pre>server {<br>        listen       80 default_server;<br>        listen       [::]:80 default_server;<br>        server_name  abc.xyz.com;<br>        root         /usr/share/nginx/html;<br>        include /etc/nginx/default.d/*.conf;</pre><pre>if ($http_x_forwarded_proto = &#39;http&#39;){<br>     return 301 <a href="https://$host$request_uri/">https://$host$request_uri</a>;<br>     }</pre><pre>location /_proxy/healthcheck {<br>            return 200 &#39;{&quot;status&quot;: &quot;ok&quot;, &quot;message&quot;: &quot;proxy is in service&quot;, &quot;instance&quot;, &quot;i-3432523656d60q34a&quot;}&#39;;<br>            add_header Content-Type application/json;<br>        }</pre><pre>location / {<br>            resolver 10.0.0.2 valid=0s ipv6=off; #DNS IP <br>            proxy_pass <a href="https://$served_host$prefix$uri$is_args$args/">https://$served_host$prefix$uri$is_args$args</a>;<br>            proxy_set_header Host $proxy_host;<br>         proxy_set_header X-Real-IP $remote_addr;<br>            proxy_buffering off;<br>            client_max_body_size 0;<br>            proxy_read_timeout 600s;<br>            proxy_redirect off;<br>         proxy_ssl_server_name on;<br>            proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2;<br>        }</pre><pre>}</pre><p>And restart the Nginx.</p><p>This is how my friends we attach the Elastic IP to an API Gateway.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb72507a2883" width="1" height="1" alt=""><hr><p><a href="https://medium.com/opseco-technologies/assign-fixed-ip-to-aws-api-gateway-fb72507a2883">Assign Fixed IP to AWS API Gateway</a> was originally published in <a href="https://medium.com/opseco-technologies">ProDT Consulting Service Pvt. Ltd.</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>