<?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 Abhishek  on Medium]]></title>
        <description><![CDATA[Stories by Abhishek  on Medium]]></description>
        <link>https://medium.com/@highest?source=rss-84927248669a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*8ov0YbZegjwnhhM9.</url>
            <title>Stories by Abhishek  on Medium</title>
            <link>https://medium.com/@highest?source=rss-84927248669a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 11:36:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@highest/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[Scheduled Start and Stop EC2 instances using — IAM, Lambda, and CloudWatch Rules]]></title>
            <link>https://highest.medium.com/scheduled-start-and-stop-ec2-instances-using-iam-lambda-and-cloudwatch-rules-431e04a7a1b2?source=rss-84927248669a------2</link>
            <guid isPermaLink="false">https://medium.com/p/431e04a7a1b2</guid>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[cloudwatch]]></category>
            <category><![CDATA[lambda]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[crontab]]></category>
            <dc:creator><![CDATA[Abhishek ]]></dc:creator>
            <pubDate>Tue, 27 Apr 2021 08:54:38 GMT</pubDate>
            <atom:updated>2021-04-27T08:54:38.499Z</atom:updated>
            <content:encoded><![CDATA[<h3>Scheduled Start and Stop EC2 instances using — IAM, Lambda, and CloudWatch Rules</h3><p>Hey there, you are new to AWS and trying something new with your new build instances. Sometimes you forget to shut those instances down and they take up the free hrs. How to stop that? The answer, scheduling those monsters.</p><h3>Part of the Activity -</h3><ol><li>Create a new instance (or) can use the existing instance (EC2)</li><li>Create a policy and assign it to a role (IAM)</li><li>Create a Function using python 3.7 (Lambda)</li><li>Create a Rule to schedule the stop and start (CloudWatch)</li><li>Connect Cloudwatch Rule to Lambda in Lambda Console</li><li>Sit back, Relax</li></ol><h3>Part 1. EC2</h3><ol><li>You can create an EC2 with any ami of your choosing.</li><li>Note the below information in a notepad</li></ol><ul><li>Instance ID- “i-0a72e17cc4ccf7bba”</li><li>Region — “us-east-1”</li></ul><h3><em>Part 2. IAM</em></h3><ol><li>Navigate to IAM -&gt; Access Management-&gt; Policies :</li></ol><ul><li>Create a new policy by clicking “<strong>Create policy</strong>”</li><li>Service- ‘<strong>EC2</strong>’</li><li>Action- ‘<strong>StopInstances’ </strong>and <strong>‘StartInstances’</strong></li><li>Resources- <strong>‘All Resources’</strong></li><li>Create Tags if needed</li><li>Review Policy and add the Name of the Policy as ‘<strong>start-stop-ec2</strong>’</li><li><strong>Create Policy</strong></li></ul><p>2. Navigate to IAM -&gt; Roles:</p><ul><li>Click on ‘<strong>Create Role’</strong></li><li>Choose use case as ‘<strong>Lambda</strong>’ and click on ‘Next: Permissions’</li><li>Search for the newly created policy ‘<strong>start-stop-ec2</strong>’</li><li>Go ‘<strong>Next:Tags</strong>’ and add tags if needed and proceed to ‘<strong>Next: Review</strong>’</li><li>Give role name as ‘<strong>start-stop-ec2-role</strong>’ and ‘<strong>Create Role</strong>’</li></ul><h3>Part 3. Lambda</h3><ol><li>Navigate to AWS Lambda Service -&gt; ‘<strong>Create Function</strong>’:</li></ol><ul><li>Click on ‘<strong>Author from scratch</strong>’</li><li>Function name as ‘<strong>stop-ec2-instance</strong>’ , Runtime as ‘<strong>python 3.7</strong>’. In <strong>Permission</strong>, click on “<strong>Change default execution role</strong>” -&gt; ‘<strong>Use an existing role</strong>’ -&gt; Select ‘<strong>start-stop-ec2-role’ </strong>and click on ‘<strong>Create Function’</strong></li><li>In Code Source, select “lambda_function.py” and put the below code:</li></ul><pre>import boto3<br>region = &#39;us-east-1&#39;<br>instances = [&#39;i-0a72e17cc4ccf7bba&#39;]<br>ec2 = boto3.client(&#39;ec2&#39;, region_name=region)</pre><pre>def lambda_handler(event, context):<br>    ec2.stop_instances(InstanceIds=instances)<br>    print(&#39;stopped your instances: &#39; + str(instances))</pre><ul><li>Put the instance name (<strong>instances</strong>) and (<strong>region</strong>) in the above code from Part 1. EC2</li><li>Click on ‘<strong>Deploy’</strong></li><li>Click on ‘<strong>Test’, </strong>you can give any test name.</li><li>The instance should be <strong>stopped </strong>by now.</li></ul><p>— — — — — Below is a function for a start which you need to follow — — — —</p><p>2. Navigate to AWS Lambda Service -&gt; ‘<strong>Create Function</strong>’:</p><ul><li>Click on ‘<strong>Author from scratch</strong>’</li><li>Function name as ‘<strong>start-ec2-instance</strong>’ , Runtime as ‘<strong>python 3.7</strong>’. In <strong>Permission</strong>, click on “<strong>Change default execution role</strong>” -&gt; ‘<strong>Use an existing role</strong>’ -&gt; Select ‘<strong>start-stop-ec2-role’ </strong>and click on ‘<strong>Create Function’</strong></li><li>In Code Source, select “lambda_function.py” and put the below code:</li></ul><pre>import boto3<br>region = &#39;us-east-1&#39;<br>instances = [&#39;i-0a72e17cc4ccf7bba&#39;]<br>ec2 = boto3.client(&#39;ec2&#39;, region_name=region)</pre><pre>def lambda_handler(event, context):<br>    ec2.start_instances(InstanceIds=instances)<br>    print(&#39;started your instances: &#39; + str(instances))</pre><ul><li>Put the instance name (<strong>instances</strong>) and (<strong>region</strong>) in the above code from Part 1. EC2</li><li>Click on ‘<strong>Deploy’</strong></li><li>Click on ‘<strong>Test’, </strong>you can give any test name.</li><li>The instance should be <strong>started</strong> by now.</li></ul><h3>Part 4. CloudWatch</h3><ol><li>Navigate to CloudWatch-&gt; Events-&gt; Rules</li></ol><ul><li>Click on ‘<strong>Create rule’</strong></li><li>Click on ‘<strong>Schedule’ </strong>and ‘<strong>Cron Expression’</strong></li><li>I am following a start time of 9 AM GMT which is “ <strong>0 9 * * ? *</strong>”</li><li>On Right hand side click on ‘<strong>Targets’ </strong>and ‘<strong>Add target’ </strong>and select the function ‘<strong>start-ec2-instance’</strong></li><li>Give the name of the rule as ‘<strong>start-instance’ </strong>and <strong>‘Create Rule’</strong></li></ul><p>2. Navigate to CloudWatch-&gt; Events-&gt; Rules</p><ul><li>Click on ‘<strong>Create rule’</strong></li><li>Click on ‘<strong>Schedule’ </strong>and ‘<strong>Cron Expression’</strong></li><li>I am following a start time of 9 PM GMT which is “ <strong>0 21* * ? *</strong>”</li><li>On Right hand side click on ‘<strong>Targets’ </strong>and ‘<strong>Add target’ </strong>and select the function ‘<strong>stop-ec2-instance’</strong></li><li>Give the name of the rule as ‘<strong>stop-instance’ </strong>and <strong>‘Create Rule’</strong></li></ul><h3><strong>Final Configuration — Back to Lambda:</strong></h3><p>We are almost done. We just need to assemble all these to Lambda. So lets navigate back to AWS Lambda and select the function- <strong>start-ec2-instance</strong></p><ul><li>In the AWS Console diagram, we can see an option of “<strong>+ Add trigger” </strong>Click on that</li><li>Search for “<strong>EventBridge (CloudWatch Events)”</strong></li><li>Rule -&gt; Click on “<strong>Existing rules” </strong>and select<strong> “start-instance”</strong></li><li>Tick mark on “<strong>Enable Trigger</strong>” and Click on “<strong>Add</strong>”</li></ul><p>Now the same for stop instance — navigate to AWS Lambda and select the function- <strong>stop-ec2-instance</strong></p><ul><li>In the AWS Console diagram, we can see an option of “<strong>+ Add trigger” </strong>Click on that</li><li>Search for “<strong>EventBridge (CloudWatch Events)”</strong></li><li>Rule -&gt; Click on “<strong>Existing rules” </strong>and select<strong> “stop-instance”</strong></li><li>Tick mark on “<strong>Enable Trigger</strong>” and Click on “<strong>Add</strong>”</li></ul><p>The configuration is now complete.</p><p>Please remember the crontab of CloudWatch or AWS is always on default GMT.</p><p>If you have set AWS Config in your Windows or Linux Machines do check</p><pre>aws lambda list-functions<br>aws lambda invoke --function-name stop-ec2-instance out --log-type Tail</pre><h3>Thank YOU!!!</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=431e04a7a1b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Into Market with “Art of Stock Investing — by Manikandan Ramalingam”]]></title>
            <link>https://highest.medium.com/getting-into-market-with-art-of-stock-investing-by-manikandan-ramalingam-e1fbe44c3fe7?source=rss-84927248669a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1fbe44c3fe7</guid>
            <category><![CDATA[stock-market]]></category>
            <category><![CDATA[book-review]]></category>
            <category><![CDATA[nsebsetips]]></category>
            <category><![CDATA[starter]]></category>
            <dc:creator><![CDATA[Abhishek ]]></dc:creator>
            <pubDate>Thu, 13 Aug 2020 17:08:08 GMT</pubDate>
            <atom:updated>2021-04-27T08:56:33.226Z</atom:updated>
            <content:encoded><![CDATA[<ol><li>Getting Into Market with “Art of Stock Investing — by Manikandan Ramalingam”</li></ol><p>I have been into the Stock Market for a very long time. And few of my investment has been in my portfolio for a very long time but I have never been a Cautious Investor. Things hit me when stocks in the Banking Sector and the Automobile sector hit rock bottom and my Captial took a real hard hit. And trust me when I say hard its like 98% Capital depreciation. This is the pattern you do when you are not educated on investment and risk management.</p><p>This made me realize that we do things we shouldn’t, all of us did, and we should look at the present and try to set the future right.</p><p>It’s easier to advise your younger self but very tough to guide your present towards the future you.</p><p>I decided to devote my time reading quality books and stop destroying my hard-earned money. As a result, this blog is dedicated to the learnings I came across the book — “<a href="https://amzn.to/3kE7l6W">Art of Stock Investing — Indian Stock Market</a>” (Affiliated Link)</p><p>The reason for choosing this book is because Mr. Ramalingam has explained the basic concepts of the Stock Market and company so well that it is a must-read book for all beginners.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/1*tgAZJ3Adfx23fP1zj3r6fw.png" /><figcaption><a href="https://amzn.to/3kE7l6W">Art of Stock Investing</a> (Affiliated Link)</figcaption></figure><p>Things that the book helped me understand in a very shorter version, for details I would suggest you go ahead and give this book a thorough read:</p><h4>Reason for Companies to come forward with stocks:</h4><p>If a company has started and performed well. Now for further growth, it needs capital so they have 3 options for it.<br>1. Take Loan and the company has to pay Debt with interest.<br>2. Go to a venture capitalist and take Captial in return they need to give them a part of the company.<br>3. Go Public — In easier terms, go to the stock exchange, get there company name listed as IPO, and raise funds from the Public.</p><p>The author has taken the example of Infosys. How it started, how it went public, and even said that if a person had 1 share of that IPO worth Rs 95 in 1993 it could have become 3 Lakhs excluding dividends (During book publish).</p><h4>Rise and Fall (How and Why) of Share Price:</h4><p>The company share price is the outcome of the fight between the buyer and seller from 9.15 AM till 3.30 PM (Stock market open and closing time). If there are more number of buyers that will result in the share price to go up and vice versa.</p><p>The author has explained a few key points of worthy share:<br>* Grow in value over time<br>* Expand their business <br>* Profit grows year on year<br>* Debt reduces to 0 or has no debt<br>* Cash and cash equivalents grow<br>* Asset value keeps on Increasing</p><h4>Basic Stock Market Terms:</h4><ol><li>Market Capitalisation -<br>(Total No. of Shares * Current Share Price)</li><li>Earning Per Share (EPS) -<br>(Profit or Loss made in the year) / (Total No. of Shares)</li><li>P/E also known as Price per Earning -<br>(Current Share Price) / (Earning Per Share)</li></ol><p>Check all the above terms for any share on <a href="https://www.moneycontrol.com/">Moneycontrol</a></p><h4>Cherry Picking:</h4><p>We earlier mentioned the criteria for a worthy stock and if you check those point you will find that being low or 0 debt is one of the criteria.</p><p>Loans are okay if year on year the amount keeps diminishing. If it starts accumulating then it isn’t going on the right path. The loan comes with interest and bad loans of a company can damage your investment.</p><ul><li>Cash to capital ratio = When you want to calculate for debt-free companies then you need to calculate like this.</li></ul><p>(Cash Present *100)/(Market Cap) = (Cash to Market Cap )%</p><p>Why do we need this? Because the company with no debt are likely to balance themselves when there is a Market crisis.</p><h4>Brand Value:</h4><p>Book has given insights on how companies with Brand value have a deeper emotion with those companies which do not have that Brand Name. You can take the example of Refine oil you are using, why do you choose a branded rather than a local one -might be because trust, quality, even when the price is on the higher side.</p><p>The books have continued how many sectors such as Cement, Healthcare, Paints, IT has few debt-free companies. Every sector has at least 1 debt-free company but its competitors are not debt-free and that leaves them behind in the selection list. Most of the Sector, you will find 1 good performing share will be dominating the entire Sector.</p><p>All the above-mentioned learning will help in ignoring all the companies and focusing only on the companies which will lighten up your portfolio. The portfolio should comprise 5–10 company’s shares, not less, not more, and should be diversified across sectors.</p><h4>Things to check on the company</h4><p>1. Total Debt<br>2. Cash Flow<br>3. Yearly Net Profit<br>4. Shareholding %</p><p>Few Stocks recommended in the book and the prices when written (i.e. Dec 2011) — P.S. these are no my recommendation:<br>1. Titan — (Rs. 170)<br>2. TTK Prestige — (Rs. 2500)<br>3. Jubilant — (Rs. 750)<br>4. Godrej Consumer — (Rs. 390)<br>5. GSK healthcare -(Rs. 2500)<br>6. Asian Paints — (Rs. 2600)<br>7. Nestle — (Rs. 4200)<br>8. Apollo- (Rs 500) … The list goes on and these were the Price way back in 2011. Wish I would have read this book earlier. :)</p><h4>The misconception of PE:</h4><p>The book shows graphically how we should not get biased with high and low PE and should only give through on the above 4 rules (Things to Check on Company).</p><h4>Now that you have picked, when to BUY?:</h4><p>Indicators used are :<br>1. EMA — Exponential Moving Average — For 50 day or 200 day<br>2. SMA — Simple Moving Average — For 200day<br>The average stock price in the last 200 days is SMA. SMA and EMA are quite similar. If the stock price is below the 200 EMA, then it is an ideal pick. Prefer to buy on dips.</p><h4>Sell Time:</h4><p>The book states “ P/E of an <strong>Index </strong>(Nifty) is a good indicator of greed. Exit Equity Markets when Nifty P/E crosses 24. Such opportunities come once in 5 years. Don’t miss it.”<br>There is no much with an Exit strategy.</p><h4>Advice from Author:</h4><ol><li>DO NOT trust so-called “expert advice”</li><li>Invest only with your saving, no debt.</li><li>DO NOT Rush In</li></ol><p>With this, we come to an end with the review of the book.</p><p>My journey of being an Integellent Investor has been with this small step. I would request you to read as many books as possible and only then get into the Markets.</p><p>Peace Out!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1fbe44c3fe7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>