<?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 Aakash Anil Kolekar on Medium]]></title>
        <description><![CDATA[Stories by Aakash Anil Kolekar on Medium]]></description>
        <link>https://medium.com/@aakashanilkolekar?source=rss-1076c9bb955b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QnSzVUR47Zk2fQt242jjCA.jpeg</url>
            <title>Stories by Aakash Anil Kolekar on Medium</title>
            <link>https://medium.com/@aakashanilkolekar?source=rss-1076c9bb955b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 07:59:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aakashanilkolekar/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[AMI-Based Approach For Product Delivery on AWS Marketplace Using AWS CloudFormation]]></title>
            <link>https://towardsaws.com/ami-based-approach-for-product-delivery-on-aws-marketplace-using-aws-cloudformation-f2a59c669ccd?source=rss-1076c9bb955b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2a59c669ccd</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[backend]]></category>
            <category><![CDATA[aws-marketplace]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-cloudformation]]></category>
            <dc:creator><![CDATA[Aakash Anil Kolekar]]></dc:creator>
            <pubDate>Thu, 17 Jun 2021 02:35:13 GMT</pubDate>
            <atom:updated>2021-06-30T21:21:49.338Z</atom:updated>
            <content:encoded><![CDATA[<h4>This article explains product deployment on AWS Marketplace</h4><p>Learning new technology can be challenging, however, it could easily turn out to be frustrating if one fails to find great resources to help them in their journey. <strong>You (yes, you)</strong> don’t have to worry because I’ve got you covered.</p><p>This article elucidates the entire process for <a href="https://aws.amazon.com/marketplace"><strong>AWS Marketplace</strong></a><strong> </strong>sellers to list <strong>AMI-based</strong> products made out of <a href="https://aws.amazon.com/cloudformation/"><strong><em>AWS CloudFormation</em></strong> </a>templates.</p><p>You can use the templates to define a cluster or distributed architecture for the products or to select different AMI combinations or product configurations. The AWS CloudFormation templates can be configured to deliver a <strong>single Amazon Machine Image (AMI) or multiple AMIs</strong> along with associated config files and Lambda functions. This specific article focuses on providing a solution using a<strong> single AMI</strong>. Buyers can browse the selection of solutions on AWS Marketplace, buy with one click, and deploy by using AWS CloudFormation templates that you provide.</p><blockquote>Why use AMI-based delivery to sell products on the marketplace?</blockquote><p>AWS marketplace offers numerous delivery methods viz: Amazon Machine Image, Amazon Sagemaker, Container-based, etc. For this particular used case, I chose the Amazon Machine Image delivery method.</p><p>I jotted down a detailed list outlining the pros and cons of all the delivery approaches keeping my application in mind. The explanation of the detailed list is out of the scope of this article. You can reach out to me on<strong><em> </em></strong><a href="https://www.linkedin.com/in/aakashkolekar/"><strong><em>LinkedIn</em></strong></a><strong> </strong>for a detailed explanation as well.</p><p>However, I would like to discuss a specific reason for choosing the AMI-based delivery approach over Sagemaker.</p><blockquote>The Sagemaker approach does not allow us to use other Amazon Web services and bundle the product. Therefore, to overcome this hurdle we used the AMI- based approach which does not restrict any outbound calls to other Amazon Web Services as long as the custom IAM role has all the necessary policies to access the services.</blockquote><p><em>Steps for AMI-based delivery using AWS CloudFormation:</em></p><ol><li>Production-ready code</li><li>EC2 instance setup for AMI creation</li><li>Deployment and demo testing</li><li>AMI creation from the deployed EC2 instance</li><li>CloudFormation template creation and AMI testing</li><li>Creation of topology diagrams</li><li>Estimation of software and infrastructure pricing</li><li>Completed product form (Commercial Product Form)</li><li>Submitting product request</li></ol><blockquote>Production-ready code</blockquote><p>This step involves developing the entire solution and packaging the code in such a manner, that it can be deployed as easily as possible. This solution was dockerized and ready to be tested before being shipped as an AMI. The services used for this use case were <a href="https://aws.amazon.com/textract/">Amazon Textract</a>, <a href="https://aws.amazon.com/s3/">Amazon S3</a>, <a href="https://aws.amazon.com/ec2/">Amazon EC2</a>, <a href="https://aws.amazon.com/cloudformation/">Amazon CloudFormation</a> &amp; <a href="https://aws.amazon.com/vpc/">Amazon VPC</a>.</p><blockquote>EC2 instance setup for AMI creation</blockquote><p>As we previously packaged our code to be used, in this step we will orchestrate the infrastructure necessary to deploy the code and bring it to life. Firstly, we</p><ul><li>Select an Ubuntu AMI (v20.04) to start with, then</li><li>Select an EC2 instance of the type, t2.micro (1 vCPUs, 1 GiB Memory) or t2.medium(2 vCPUs, 4 GiB Memory) suitable for your particular use case.</li><li>Furthermore, under Configure Instance Details enable Auto-assign public-ip, so that an endpoint for the application can be formed later. In addition, add an EBS (Elastic Block Store) volume according to your use case, optionally tags could be added as well.</li><li>Finally, attach a security group with an HTTP inbound rule on port 80 to allow traffic to your web app. Now, we can review our configurations and launch the instance.</li></ul><blockquote>Deployment and demo testing</blockquote><p>We manually enter the instance using AWS Session Manager and follow the below-mentioned steps:</p><ul><li>Delete all the directories and codes present in the new instance, except the image which was built using docker.</li><li>Spin up a new container from the docker image of your solution. Command: docker run -p 5000:5000 -d “image-tag-value”.</li><li>Finally, we test the API using the endpoint.</li></ul><p>Eg: <em>http://dummy_elastic_ip:port_number/path/to/the/route</em></p><p>We debug errors if any and move ahead to the next step.</p><p>Eg: <a href="http://dummy_elastic_ip:port_number/path/to/the/route">http://dummy_elastic_ip:port_number/path/to/the/route</a></p><blockquote>AMI creation from the deployed EC2 instance</blockquote><p>Now, we terminate the session manager tab and stop the instance. Furthermore, we create an AMI out of the selected instance.</p><blockquote>CloudFormation template creation and AMI testing</blockquote><p>I have used YAML for creating and configuring AWS resources.</p><p>To make the creation of CFT’s easy, one should create product architecture.</p><p>This architecture could help one map their understanding in the real world.</p><p>Finally, after the creation of all the resources, we test the solution endpoint, patch if new issues arise, and repeat steps 5 through 6.</p><p>Resources created through the CloudFormation Template;</p><ol><li>AWS EC2 Instance</li><li>AWS Elastic IP</li><li>AWS Virtual Private Cloud (VPC)</li><li>Public Subnets</li><li>Endpoints</li><li>AWS IAM Roles; Custom Role for EC2 instance with all the necessary policies</li><li><a href="https://aws.amazon.com/iam/">IAM </a>Instance Profile</li></ol><h4>Note:</h4><blockquote>CFT deployments can be tricky, you would require necessary permissions to do so, especially when working with IAM role creation.</blockquote><blockquote>One would require access to a role that has IAM role creation policies attached to it. If one does not specify an IAM role, the role which you have used to login into the account is assumed for CFT creation.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*igT0H5m_1RhRi5SD" /><figcaption>Permissions to choose IAM Role for CFT Creation</figcaption></figure><p>Some steps to look into before moving ahead with submission:</p><ul><li>Store the Cloudformation template in a public S3 bucket so that the template URL can be shared with the AWS team.</li><li>Make the solution AMI public.</li></ul><blockquote>Creation of topology diagrams</blockquote><p>AWS topology diagrams are used to describe the design, security, and deployment of applications built on the AWS cloud. The AWS marketplace solution requires a topology diagram to be submitted during solution review.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*aaVJQbq6ZpIqFN3V" /><figcaption>Topology Diagram</figcaption></figure><blockquote>Estimation of software and infrastructure pricing</blockquote><p>The submission requires an estimated infrastructure price for the default configuration of each template.</p><blockquote>Completed product form</blockquote><p>For single-AMI products, use the <a href="https://s3.amazonaws.com/awsmp-loadforms/ProductDataLoad-Current.xlsx">Commercial Product</a> form. This is an extensive excel document that needs to be meticulously completed and attached to the final submission as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MaeNIq_FaylQVu5y" /></figure><blockquote>Submitting product request</blockquote><p>Use the <a href="https://aws.amazon.com/marketplace/management/">AWS Marketplace Management Portal</a> to submit your product. Allow three to five weeks for request processing, including:</p><ol><li>Review of AWS CFTs, AMI, and metadata for the AMI and AWS CloudFormation template.</li><li>Publication of your AWS CFT to AWS Marketplace products.</li></ol><blockquote>Bonus debugging tip:</blockquote><blockquote>To debug silent issues which do not throw an explicit error can be found out by navigating to the /home/ubuntu/var/log folder and looking through the various files present there.</blockquote><blockquote><em>Let’s connect on </em><a href="https://www.linkedin.com/in/aakashkolekar/"><em>LinkedIn</em></a><em>!!</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2a59c669ccd" width="1" height="1" alt=""><hr><p><a href="https://towardsaws.com/ami-based-approach-for-product-delivery-on-aws-marketplace-using-aws-cloudformation-f2a59c669ccd">AMI-Based Approach For Product Delivery on AWS Marketplace Using AWS CloudFormation</a> was originally published in <a href="https://towardsaws.com/">Towards AWS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Secure Websites By Converting HTTP Domains To HTTPS Using AWS CloudFront, AWS Route53, AWS S3]]></title>
            <link>https://towardsaws.com/secure-websites-by-converting-http-domains-to-https-using-aws-cloudfront-aws-route53-aws-s3-4bb929d7bebf?source=rss-1076c9bb955b------2</link>
            <guid isPermaLink="false">https://medium.com/p/4bb929d7bebf</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[website-development]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Aakash Anil Kolekar]]></dc:creator>
            <pubDate>Wed, 26 May 2021 04:30:17 GMT</pubDate>
            <atom:updated>2021-05-26T12:51:32.884Z</atom:updated>
            <content:encoded><![CDATA[<h3>Secure Websites By Converting HTTP URLs To HTTPS Using AWS CloudFront, AWS Route53 &amp; AWS S3</h3><h4>An article to secure URLs using AWS Cloud Infrastructure</h4><p>The websites hosted on AWS S3 (Simple Storage Service) are served over HTTP URLs and are not secured by any means. Therefore, this article will go on to elucidate how one can use <a href="https://aws.amazon.com/cloudfront/">AWS CloudFront</a> and <a href="https://aws.amazon.com/route53/">AWS Route53</a> along with <a href="https://aws.amazon.com/s3/">AWS S3</a> to convert HTTP endpoints to HTTPS endpoints.</p><p><strong>Consider the below-mentioned steps for Magic.</strong></p><h3><strong>1. AWS S3 Bucket Settings</strong></h3><p>1. Create an <strong>S3 bucket</strong> in a region of your choice.</p><p>2. Add the contents of your build folder (in case of a React or an Angular application) in the s3 bucket.</p><blockquote>3. Make the s3 bucket public by unticking the <strong>Block all public access</strong> checkbox.</blockquote><p>4. Add the below-mentioned Bucket Policy in the bucket policy prompt under Permissions.</p><p><strong><em>BUCKET POLICY</em></strong><em>:</em></p><pre>{<br>“Version”: “2012–10–17”,</pre><pre>“Id”: “Policy1574927612220”,</pre><pre>“Statement”: [ {</pre><pre>“Sid”: “Stmt1574927605907”,</pre><pre>“Effect”: “Allow”,</pre><pre>“Principal”: “*”,</pre><pre>“Action”: “s3:GetObject”,</pre><pre>“Resource”: “arn:aws:s3:::bucket-name/*” } ]</pre><pre>}</pre><p>5. Enable S3 Static Web Hosting under the Properties tab</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UdhrV2uDKXuegulO" /><figcaption>Enabling S3 Bucket Static Web Hosting</figcaption></figure><p>6. Add <strong>CORS </strong>in the CORS section of the bucket as well.</p><pre>[ {</pre><pre>“AllowedHeaders”: [ “*” ],</pre><pre>“AllowedMethods”: [ “HEAD”, “GET”, “PUT”, “POST”, “DELETE” ],</pre><pre>“AllowedOrigins”: [ “*” ],</pre><pre>“ExposeHeaders”: [ “ETag”, “x-amz-meta-name” ]</pre><pre>} ]</pre><h3><strong>2. Move over to Route53</strong></h3><blockquote>Create a <strong>Hosted Zone</strong></blockquote><ul><li>Either purchase a domain name from any DNS provider and use it to create a hosted zone.</li><li>Or register a domain name under AWS which creates a hosted zone by default.</li><li>Under Domain Name use a registered domain.</li></ul><p>For eg; <strong><em>my-website.aws.example-domain.com</em></strong></p><ul><li>Set the Type field to a Public hosted zone.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7UGovpuHDHOtiSGs" /><figcaption>Hosted Zone Creation in Route53</figcaption></figure><h3><strong>3. Move over to CloudFront</strong></h3><blockquote>Create a<strong> CloudFront Distribution</strong></blockquote><ul><li>Click on the create Distribution Button → Get Started</li><li>Under <strong>Origin Domain Name</strong> type the name of your Public bucket and choose it as your origin.</li><li><strong>Origin Path</strong> is the path of our build folder, which should be left blank if the contents of our website are on the root level of the S3 bucket since its default value is ‘/’. If the contents are under sub-directories, the necessary path should be added.</li><li><strong>Origin ID</strong> should be left blank, it’s auto-generated.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lCZw259UhisvTsdq" /><figcaption>CloudFront Distribution Creation Step 1</figcaption></figure><blockquote>Under <strong>Default Cache Behaviour Settings</strong></blockquote><ul><li>Viewer Protocol Policy should be set to <strong>HTTPS Only</strong></li><li>Allowed HTTP Methods <strong>GET, HEAD</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NFPsbpmtZyZjU9j9" /><figcaption>CloudFront Distribution Creation Step 2</figcaption></figure><blockquote>Under <strong>Distribution Settings</strong></blockquote><ul><li>Add <strong>Alternate domain names (CNAMES)</strong></li></ul><p>For eg; <em>my-website.aws.example-domain.com</em></p><ul><li>Choose <strong>SSL Certificate</strong> as a Custom SSL certificate and add your SSL certificate.</li></ul><p>For eg; <em>*.aws.example-domain.com</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SA6Yfi8X7y5PlaSn" /><figcaption>CloudFront Distribution Creation Step 3</figcaption></figure><ul><li>Set Default root object as <strong>index.html</strong> for React and/or Angular apps.</li><li>Disable IPV6 checkbox</li></ul><blockquote><strong>Leave all other fields to their default values</strong></blockquote><blockquote><strong>Create Distribution</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/0*BbujyzJwDv6QQsgC" /><figcaption>CloudFront Distribution Creation Step 4</figcaption></figure><h3><strong>4. Move back to Route53</strong></h3><blockquote>Create a<strong> RecordSet</strong> under the selected <strong>Hosted Zone</strong></blockquote><ul><li>Add the <strong>Record name</strong> For eg; my-website.aws.example-domain.com</li><li>Set Record type as <strong>A Record</strong>.</li><li>Enable the Alias toggle to <strong>True</strong>.</li><li>Set Routing policy → <strong>Simple Routing Policy</strong></li><li>Set Route traffic to → <strong>Alias to CloudFront Distribution</strong></li></ul><blockquote><strong>Add the CloudFront Distribution Domain Name from the created distribution in the Choose distribution Field.</strong></blockquote><ul><li>Create Record</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YS0WqVosjG-w_njw" /><figcaption>RecordSet Creation in Route53</figcaption></figure><p>Kudos !! You have successfully converted HTTP URLs to HTTPS URLs.</p><blockquote><strong>Let’s Connect on </strong><a href="https://www.linkedin.com/in/aakashkolekar/"><strong>LinkedIn</strong></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bb929d7bebf" width="1" height="1" alt=""><hr><p><a href="https://towardsaws.com/secure-websites-by-converting-http-domains-to-https-using-aws-cloudfront-aws-route53-aws-s3-4bb929d7bebf">Secure Websites By Converting HTTP Domains To HTTPS Using AWS CloudFront, AWS Route53, AWS S3</a> was originally published in <a href="https://towardsaws.com/">Towards AWS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>