<?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 Anand Mishra on Medium]]></title>
        <description><![CDATA[Stories by Anand Mishra on Medium]]></description>
        <link>https://medium.com/@anandmishra.kanha?source=rss-86f86a9a5573------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ihswEoNWBtWaB-7fbcfiZw.jpeg</url>
            <title>Stories by Anand Mishra on Medium</title>
            <link>https://medium.com/@anandmishra.kanha?source=rss-86f86a9a5573------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 21:34:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anandmishra.kanha/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[How to become a great product manager]]></title>
            <link>https://medium.com/@anandmishra.kanha/how-to-become-a-great-product-manager-29c1c9a28997?source=rss-86f86a9a5573------2</link>
            <guid isPermaLink="false">https://medium.com/p/29c1c9a28997</guid>
            <category><![CDATA[product-management]]></category>
            <dc:creator><![CDATA[Anand Mishra]]></dc:creator>
            <pubDate>Thu, 29 Dec 2022 10:23:40 GMT</pubDate>
            <atom:updated>2022-12-29T10:35:31.903Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ePMMox0rJJG6zH7I" /><figcaption>Photo by <a href="https://unsplash.com/@steven1302?utm_source=medium&amp;utm_medium=referral">Sven D</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Introduction</h3><p>Being a great product manager requires a combination of technical skills, business acumen, and leadership abilities. Here are some key steps you can take to become a great product manager</p><h4>Strong understanding of your industry and market</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yc4_Jp0dIyKBDj-_" /><figcaption>Photo by <a href="https://unsplash.com/@whynottogoforit?utm_source=medium&amp;utm_medium=referral">Renate Vanaga</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Develop a strong understanding of your industry and market: To be effective as a product manager, you need to have a deep understanding of your industry and the needs of your customers. This means staying up-to-date on industry trends and developments, as well as conducting market research to understand the competitive landscape and identify opportunities for innovation.</p><p>Having a strong understanding of your industry and market is an important aspect of being an effective product manager. This involves staying up-to-date on industry trends and developments, as well as conducting market research to understand the competitive landscape and identify opportunities for innovation.</p><p>To develop a strong understanding of your industry and market, you can:</p><ol><li>Subscribe to industry publications and attend industry conferences and events to stay informed about the latest trends and developments.</li><li>Conduct market research to gather insights about your target customers, their needs and preferences, and the competitive landscape. This could involve conducting surveys, focus groups, or interviews with customers and industry experts.</li><li>Analyze data and metrics related to your industry and market, such as sales figures, customer feedback, and market trends. This can help you identify patterns and trends that can inform your product strategy.</li><li>Engage with customers and industry experts to gather insights and feedback that can help you understand the needs and pain points of your target audience.</li></ol><h4>Build technical skills</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HPAEyA46wwlEPXKw" /><figcaption>Photo by <a href="https://unsplash.com/@wasdrew?utm_source=medium&amp;utm_medium=referral">Andras Vas</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>As a product manager, you will be working with engineers and other technical team members to build and maintain products. It’s important to have a strong foundation in technology and be comfortable working with technical concepts and tools.</p><h4>Learn about product management methodologies and best practices</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KWTUfEBrNw4AF51J" /><figcaption>Photo by <a href="https://unsplash.com/@anniespratt?utm_source=medium&amp;utm_medium=referral">Annie Spratt</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Learn about product management methodologies and best practices: There are many frameworks and approaches to product management, such as the Lean Startup methodology and the Agile development process. Familiarizing yourself with these methods can help you understand how to prioritize and manage product development effectively.</p><h4>Strong communication and collaboration skills</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bGifMG4bSs-rCtse" /><figcaption>Photo by <a href="https://unsplash.com/@shanerounce?utm_source=medium&amp;utm_medium=referral">Shane Rounce</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Develop strong communication and collaboration skills: As a product manager, you will be working with a wide range of stakeholders, including customers, engineers, sales teams, and executives. It’s important to be able to effectively communicate and collaborate with these diverse groups to ensure that your product meets the needs of all stakeholders.</p><h4>Take on leadership roles</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SAG-U5AIGe-N4eW3" /><figcaption>Photo by <a href="https://unsplash.com/@wocintechchat?utm_source=medium&amp;utm_medium=referral">Christina @ wocintechchat.com</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>As you gain experience in product management, seek out opportunities to take on leadership roles within your organization. This could involve managing a team of product managers or leading cross-functional projects.</p><p>By developing these skills and gaining experience, you can position yourself to become a great product manager. It’s also important to continually learn and stay up-to-date on industry trends and best practices to stay ahead of the curve in this fast-paced field.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29c1c9a28997" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to setup wordpress on amazon lightsail]]></title>
            <link>https://medium.com/@anandmishra.kanha/how-to-setup-wordpress-on-amazon-lightsail-a54cd4933199?source=rss-86f86a9a5573------2</link>
            <guid isPermaLink="false">https://medium.com/p/a54cd4933199</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[amazon-lightsail]]></category>
            <category><![CDATA[lightsail]]></category>
            <dc:creator><![CDATA[Anand Mishra]]></dc:creator>
            <pubDate>Thu, 22 Dec 2022 09:53:17 GMT</pubDate>
            <atom:updated>2022-12-22T09:53:17.815Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*k5_H5Lb3KX3Scndh" /><figcaption>Photo by <a href="https://unsplash.com/@wentoss58?utm_source=medium&amp;utm_medium=referral">giuseppe Peppe</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Step 1: Sign up for AWS</h3><p>This tutorial requires an AWS account. <a href="https://console.aws.amazon.com/console/home">Sign up for AWS</a>, or <a href="https://console.aws.amazon.com/console/home">sign in to AWS</a> if you already have an account.</p><h3>Step 2: Create a WordPress instance in Lightsail</h3><p>Complete the following steps to get your WordPress instance up and running on Lightsail.</p><ol><li>Sign in to the <a href="https://lightsail.aws.amazon.com/">Lightsail console</a>.</li><li>On the Instances tab of the Lightsail home page, choose Create instance.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/0*CGzwZfv5L1f6yBn5.png" /></figure><ol><li>Choose the AWS Region and Availability Zone for your instance.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/0*EiHL1LG48kraX-jf.png" /></figure><ol><li>Choose your instance image.</li><li>Choose Linux/Unix as the platform.</li><li>Choose WordPress as the blueprint.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*2r9v8w40XogTMJ8R.png" /></figure><p>4. Choose an instance plan</p><p>5. A plan includes a low, predictable cost, machine configuration (RAM, SSD, vCPU), and data transfer allowance. You can try the $3.50 USD Lightsail plan without charge for one month (up to 750 hours). AWS credits one free month to your account.</p><p>6. Enter a name for your instance.</p><p>7. Resource names:</p><ul><li>Must be unique within each AWS Region in your Lightsail account.</li><li>Must contain 2 to 255 characters.</li><li>Must start and end with an alphanumeric character or number.</li><li>Can include alphanumeric characters, numbers, periods, dashes, and underscores.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/0*Xb5A3Y-nXBVhHs_e.png" /></figure><p>8. Choose Create instance.</p><h3>Step 3: Connect to your instance via SSH and get the password for your WordPress website</h3><p>The default password to sign in to the administration dashboard of your WordPress website is stored on the instance.</p><p>Complete the following steps to connect to your instance using the browser-based SSH client in the Lightsail console, and get the password for the administration dashboard.</p><p>On the Instances tab of the <a href="https://lightsail.aws.amazon.com/">Lightsail home page</a>, choose the SSH quick-connect icon for your WordPress instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/0*WWEMN7qj3MBHLdMZ.png" /></figure><p>After the browser-based SSH client window opens, enter the following command to retrieve the default application password:</p><pre>cat $HOME/bitnami_application_password</pre><p>Make note of the password displayed on the screen. You use it later to sign in to the administration dashboard of your WordPress website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/0*WwjZpc-7MwFdbLRV.png" /></figure><h3>Step 4: Sign in to the administration dashboard of your WordPress website</h3><p>Now that you have the password for the administration dashboard of your WordPress website, you can sign in. In the administration dashboard, you can change your user password, install plugins, change the theme of your website, and more.</p><p>Complete the following steps to sign in to the administration dashboard of your WordPress website.</p><ol><li>In a browser window, go to:</li></ol><pre>http://PublicIpAddress/wp-login.php</pre><ol><li>In the address, replace PublicIpAddress with the public IP address of your WordPress instance. You can get your instance’s public IP address from the Lightsail console as shown in the following example:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/0*DESEq53gJQAxdDaH.png" /></figure><ol><li>In the Username or Email Address box, enter user.</li><li>In the Password box, enter the default password obtained earlier in this tutorial.</li><li>Choose Log in.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/264/0*O91JRqoBa1uzdq-P.png" /></figure><p>You are now signed in to the administration dashboard of your WordPress website where you can perform administrative actions. For more information about administering your WordPress website, see the <a href="https://codex.wordpress.org/">WordPress Codex</a> in the WordPress documentation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/0*odh5djVWa1qrCTrB.png" /></figure><h3>Step 5: Create a Lightsail static IP address and attach it to your WordPress instance</h3><p>The default public IP for your WordPress instance changes if you stop and start your instance. A static IP address, attached to an instance, stays the same even if you stop and start your instance.</p><p>Complete the following steps to create a static IP address and attach it to your WordPress instance.</p><p>On the Instances tab of the <a href="https://lightsail.aws.amazon.com/">Lightsail home page</a>, choose your running WordPress instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/0*Wyol1xv0A-2Co5CL.png" /></figure><p>Choose the Networking tab, then choose Create static IP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/0*1maV8jhYQUefMxBN.png" /></figure><p>The static IP location, and attached instance are pre-selected based on the instance that you chose earlier in this tutorial.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/0*wrrovVhQeGXtm7X_.png" /></figure><p>Name your static IP, then choose Create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/0*u0BXngJFlnKJcHWC.png" /></figure><h3>Step 6: Create a Lightsail DNS zone and map a domain to your WordPress instance</h3><p>Transfer management of your domain’s DNS records to Lightsail. This allows you to more easily map a domain to your WordPress instance, and manage more of your website’s resources using the Lightsail console.</p><p>Complete the following steps to create a Lightsail DNS zone and map a domain to your WordPress instance.</p><blockquote><em>Note</em></blockquote><blockquote><em>For more information, see </em><a href="https://lightsail.aws.amazon.com/ls/docs/en_us/articles/lightsail-how-to-create-dns-entry"><em>Creating a DNS zone to manage your domain’s DNS records in Amazon Lightsail</em></a><em>.</em></blockquote><p>On the Networking tab of the <a href="https://lightsail.aws.amazon.com/">Lightsail home page</a>, choose Create DNS zone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/0*JJgQYN55HrV62YK2.png" /></figure><p>Enter your domain, then choose Create DNS zone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/0*YcjCnGEj4LpJdZIJ.png" /></figure><p>Make note of the name server addresses listed on the page.</p><p>You add these name server addresses to your domain name’s registrar to transfer management of your domain’s DNS records to Lightsail.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/405/0*3jUiQJoIrXq23gxj.png" /></figure><ol><li>After management of your domain’s DNS records are transferred to Lightsail, add an A record to point the apex of your domain to your WordPress instance, as follows:</li><li>In the DNS zone for your domain, choose Add record.</li><li>In the Subdomain box, enter an @ symbol to map the apex of your domain (such as example.com) to your instance. The @ symbol explicitly symbolizes that you’re adding an apex record. It is not added as a subdomain.</li><li>In the Maps to box, choose the static IP that you attached to the WordPress instance in the previous step of this tutorial.</li><li>Choose the save icon.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/0*7enxYACh5fUKG0UJ.png" /></figure><p>6. Allow time for the change to propagate through the internet’s DNS before your domain begins routing traffic to your WordPress instance.</p><p>Congratulations you have hosted wordpress on Lightsail!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a54cd4933199" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to create MariaDB instance in AWS RDS]]></title>
            <link>https://medium.com/@anandmishra.kanha/how-to-create-mariadb-instance-in-aws-rds-70c7fd05f6ac?source=rss-86f86a9a5573------2</link>
            <guid isPermaLink="false">https://medium.com/p/70c7fd05f6ac</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[rds]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Anand Mishra]]></dc:creator>
            <pubDate>Thu, 15 Dec 2022 13:49:20 GMT</pubDate>
            <atom:updated>2022-12-15T13:49:20.190Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to create MariaDB instance in AWS RDS?</h3><h3>Amazon EC2 and on-premises databases</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gruNnpLpWN_N7CuC" /><figcaption>Photo by <a href="https://unsplash.com/@tofi?utm_source=medium&amp;utm_medium=referral">Tobias Fischer</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Amazon Elastic Compute Cloud (Amazon EC2) provides scalable computing capacity in the AWS Cloud. Amazon EC2 eliminates your need to invest in hardware up front, so you can develop and deploy applications faster.</p><p>When you buy an on-premises server, you get CPU, memory, storage, and IOPS, all bundled together. With Amazon EC2, these are split apart so that you can scale them independently. If you need more CPU, less IOPS, or more storage, you can easily allocate them.</p><p>For a relational database in an on-premises server, you assume full responsibility for the server, operating system, and software. For a database on an Amazon EC2 instance, AWS manages the layers below the operating system. In this way, Amazon EC2 eliminates some of the burden of managing an on-premises database server.</p><h3>Advantages of AWS RDS</h3><p>Amazon RDS provides the following specific advantages over database:</p><ol><li>You can use the database products you are already familiar with: MariaDB, Microsoft SQL Server, MySQL, Oracle, and PostgreSQL.</li><li>Amazon RDS manages backups, software patching, automatic failure detection, and recovery.</li><li>You can turn on automated backups, or manually create your own backup snapshots. You can use these backups to restore a database. The Amazon RDS restore process works reliably and efficiently.</li><li>You can get high availability with a primary instance and a synchronous secondary instance that you can fail over to when problems occur. You can also use read replicas to increase read scaling.</li><li>In addition to the security in your database package, you can help control who can access your RDS databases. To do so, you can use AWS Identity and Access Management (IAM) to define users and permissions. You can also help protect your databases by putting them in a virtual private cloud (VPC).</li></ol><h3>Creating a MariaDB DB instance</h3><p>The basic building block of Amazon RDS is the DB instance. This environment is where you run your MariaDB databases.</p><p>You can use <strong>Easy create</strong> to create a DB instance running MariaDB with the AWS Management Console. With <strong>Easy create</strong>, you specify only the DB engine type, DB instance size, and DB instance identifier. <strong>Easy create</strong> uses the default settings for the other configuration options. When you use <strong>Standard create</strong> instead of <strong>Easy create</strong>, you specify more configuration options when you create a database, including ones for availability, security, backups, and maintenance.</p><p>In this example, you use <strong>Easy create</strong> to create a DB instance running the MariaDB database engine with a db.t2.micro DB instance class.</p><p><strong>To create a MariaDB DB instance with Easy create</strong></p><ol><li>Sign in to the AWS Management Console and open the Amazon RDS console at <a href="https://console.aws.amazon.com/rds/">https://console.aws.amazon.com/rds</a></li><li>In the upper-right corner of the Amazon RDS console, choose the AWS Region in which you want to create the DB instance</li><li>In the navigation pane, choose <strong>Databases</strong>.</li><li>Choose <strong>Create database</strong> and make sure that <strong>Easy create</strong> is chosen.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*WF8ywbjS9X4QJKPt.png" /></figure><p>5. In <strong>Configuration</strong>, choose <strong>MariaDB</strong></p><p>6. For <strong>DB instance size</strong>, choose <strong>Free tier</strong>.</p><p>7. For <strong>DB instance identifier</strong>, enter a name for the DB instance, or leave the default name.</p><p>8. For <strong>Master username</strong>, enter a name for the master user, or leave the default name</p><p>9. The <strong>Create database</strong> page should look similar to the following image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/0*ngSTmGNxd_8-vd_t.png" /></figure><p>To use an automatically generated master password for the DB instance, make sure that the <strong>Auto generate a password</strong> box is selected.</p><p>To enter your master password, clear the <strong>Auto generate a password</strong> box, and then enter the same password in <strong>Master password</strong> and <strong>Confirm password</strong>.</p><p>(Optional) Open <strong>View default settings for Easy create</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/0*Qi2G4Wiy2fLgCCTm.png" /></figure><p>You can examine the default settings used with <strong>Easy create</strong>. The <strong>Editable after database is created</strong> column shows which options you can change after database creation.</p><p>To change settings with <strong>No</strong> in that column, use <strong>Standard create</strong>.</p><p>To change settings with <strong>Yes</strong> in that column, either use <strong>Standard create</strong>, or modify the DB instance after it is created to change the settings.</p><p>The following are important considerations for changing the default settings</p><p>If you want to be able to access the DB instance from a client outside of its VPC, use <strong>Standard create</strong> to set <strong>Public access</strong> to <strong>Yes</strong>.</p><p>If the DB instance should be private, leave <strong>Public access</strong> set to <strong>No</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/0*WDduscofk1IB6Ial.png" /></figure><p>Choose Create database.</p><p>If you chose to use an automatically generated password, the View credential details button appears on the Databases page.</p><p>To view the master user name and password for the DB instance, choose View credential details.</p><p>To connect to the DB instance as the master user, use the user name and password that appear.</p><p>Important<br>You can’t view the master user password again. If you don’t record it, you might have to change it.<br>If you need to change the master user password after the DB instance is available, you can modify the DB instance to do so. For more information about modifying a DB instance, see Modifying an Amazon RDS DB instance.</p><p>For Databases, choose the name of the new Maria DB instance.</p><p>On the RDS console, the details for new DB instance appear. The DB instance has a status of Creating until the DB instance is ready to use. When the state changes to Available, you can connect to the DB instance. Depending on the DB instance class and the amount of storage, it can take up to 20 minutes before the new instance is available.</p><h3>Connecting to a database on a DB instance running the MariaDB database engine</h3><p>After Amazon RDS provisions your DB instance, you can use any standard SQL client application to connect to a database on the DB instance. In this example, you connect to a database on a Maria DB instance using the mysql command-line tool. For more information on using MariaDB, see the <a href="https://mariadb.com/kb/en/mariadb/documentation/">MariaDB documentation</a></p><p>To connect to a database on a DB instance using the mysql command-line tool</p><p>Install a SQL client that you can use to connect to the DB instance.</p><p>You can connect to an Amazon RDS for MariaDB DB instance by using tools such as the mysql command-line client. For more information on using the mysql command-line client, see mysql command-line client</p><p>in the MariaDB documentation. One GUI-based application that you can use to connect is Heidi. For more information, see the Download HeidiSQL page. For information about installing MySQL (including the mysql command-line client), see Installing and upgrading MySQL</p><p>Make sure that your DB instance is associated with a security group that provides access to it. For more information, see Provide access to your DB instance in your VPC by creating a security group.</p><p>If you didn’t specify the appropriate security group when you created the DB instance, you can modify the DB instance to change its security group. For more information, see Modifying an Amazon RDS DB instance.</p><p>If your DB instance is publicly accessible, make sure its associated security group has inbound rules for the IP addresses that you want to access it. If your DB instance is private, make sure its associated security group has inbound rules for the security group of each resource to access it. An example is the security group for an Amazon EC2 instance.</p><p>Find the endpoint (DNS name) and port number for your DB instance.</p><p>Open the RDS console and then choose Databases to display a list of your DB instances.</p><p>Choose the Maria DB instance name to display its details.</p><p>On the Connectivity &amp; security tab, copy the endpoint. Also note the port number. You need both the endpoint and the port number to connect to the DB instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/0*d8Eg9tnNSGJ9elsZ.png" /></figure><p>Enter the following command at a command prompt on a client computer to connect to a database on a Maria DB instance. Substitute the DNS name (endpoint) for your DB instance for &lt;endpoint&gt;. In addition, substitute the master user name that you used for &lt;mymasteruser&gt; and provide the master password that you used when prompted for a password.</p><pre>PROMPT&gt; mysql -h &lt;endpoint&gt; -P 3306 -u &lt;mymasteruser&gt;  -p</pre><p>After you enter the password for the user, you should see output similar to the following.</p><pre>Welcome to the MariaDB monitor.  Commands end with ; or \g. Your MariaDB connection id is 31 Server version: 10.5.15-MariaDB-log Source distribution   Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.    Type &#39;help;&#39; or &#39;\h&#39; for help. Type &#39;\c&#39; to clear the current input statement.    MariaDB [(none)]&gt;</pre><p>For more information about connecting to a MariaDB DB instance, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ConnectToMariaDBInstance.html">Connecting to a DB instance running the MariaDB database engine</a>. If you can’t connect to your DB instance, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Troubleshooting.html#CHAP_Troubleshooting.Connecting">Can’t connect to Amazon RDS DB instance</a>.</p><h3>Deleting a DB instance</h3><p>After you connect to the sample DB instance that you created, delete the DB instance so you’re no longer charged for it.</p><p><strong>To delete a DB instance with no final DB snapshot</strong></p><ol><li>Sign in to the AWS Management Console and open the Amazon RDS console at <a href="https://console.aws.amazon.com/rds/">https://console.aws.amazon.com/rds/</a></li><li>In the navigation pane, choose <strong>Databases</strong></li><li>Choose the DB instance you want to delete.</li><li>For Actions, choose Delete.</li><li>For Create final snapshot?, choose No, and select the acknowledgment.</li><li>Choose Delete.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70c7fd05f6ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build scalable webapps using AWS Amplify]]></title>
            <link>https://medium.com/@anandmishra.kanha/build-scalable-webapps-using-aws-amplify-fb97606c5178?source=rss-86f86a9a5573------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb97606c5178</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Anand Mishra]]></dc:creator>
            <pubDate>Thu, 15 Dec 2022 08:46:22 GMT</pubDate>
            <atom:updated>2022-12-15T08:46:22.156Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DA9MxuDUZiwRrSmI" /><figcaption>Photo by <a href="https://unsplash.com/es/@sammoghadamkhamseh?utm_source=medium&amp;utm_medium=referral">Sam Moghadam Khamseh</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Objective</h3><p>In this guide, we will take you through deploying a web application with AWS Amplify. Amplify is a framework with a set of tools and services that help you build scalable full stack applications, powered by AWS services.</p><h3>What is AWS Amplify</h3><p>AWS Amplify is a set of tools and services that can be used together or on their own, to help front-end web and mobile developers build scalable full stack applications, powered by AWS. With Amplify, you can configure app backends and connect your app in minutes, deploy static web apps in a few clicks, and easily manage app content outside the AWS console.</p><h3>What you will learn</h3><p>In this guide, you will learn how to:</p><ol><li>Create your first Amplify project</li><li>Use the Amplify CLI to add authentication, a database, and a custom domain to your application</li><li>Deploy a web app with AWS Amplify</li></ol><h4>Prerequisites</h4><p>Before Starting this guide, you will need:</p><p>An AWS account: if you don’t already have one follow the Setup Your Environment getting started guide for a quick overview.<br> Familiarity with git and a Github account</p><h3>Implementation<br>Check Environment</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*22YEWKMEtHWvaMfs" /><figcaption>Photo by <a href="https://unsplash.com/@cdr6934?utm_source=medium&amp;utm_medium=referral">Chris Ried</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Verify that you are running at least Node.js version 12.x and npm version 6.x or greater by running node -v and npm -v in a terminal/console window. If not, please visit the nodejs and npm website for more information.</p><pre>node -v</pre><p># Your output may differ based on the version installed.</p><pre>12.1.1</pre><pre>npm -v</pre><p># Your output may differ based on the version installed.</p><pre>6.14.6</pre><h4>Amplify command line interface</h4><p>The Amplify Command Line Interface (CLI) is a unified toolchain to create AWS cloud services for your app. Let’s go ahead and install the Amplify CLI.</p><pre>npm install -g @aws-amplify/cli</pre><p>Note: Because we’re installing the Amplify CLI globally, you might need to run the command above with sudo depending on your system policies.</p><p>Once installation completes, configure Amplify by running the following command:</p><pre>amplify configure</pre><p>amplify configure will open a browser and ask you to sign into the AWS Console.</p><p>Once you’re signed in, Amplify CLI will ask you to create an IAM user.</p><h4>Creating IAM user</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EU3mnEI-NcKv0orO" /><figcaption>Photo by <a href="https://unsplash.com/@nishaan_ahmed?utm_source=medium&amp;utm_medium=referral">Nishaan ahmed</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Create a user with AdministratorAccess to your account to provision AWS resources for you like AppSync, Cognito etc.</p><p>Once the user is created, Amplify CLI will ask you to provide the accessKeyId and the secretAccessKey to connect Amplify CLI with your newly created IAM user.</p><p>Enter the access key of the newly created user:<br>1. accessKeyId: # YOUR_ACCESS_KEY_ID</p><p>2. secretAccessKey: # YOUR_SECRET_ACCESS_KEY</p><p>This would update/create the AWS Profile in your local machine</p><p>Hence we have successfully set up the new user.</p><h4>Create a React app</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TZjNrik5BN7bK3KB" /><figcaption>Photo by <a href="https://unsplash.com/@abillion?utm_source=medium&amp;utm_medium=referral">abillion</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>To create a new React application, you will use create-react-app, a toolchain that helps you get started with no configuration required.</p><p>Create an application called amplify-app, and then initialize it with amplify init -y:</p><pre>amplify init -y</pre><p># note npx is installed with npm</p><pre>npx create-react-app amplify-app<br>cd amplify-app<br>amplify init -y</pre><p>When you run amplify init -y, it’ll detect your app’s configuration and initialize a new Amplify app with default settings for React.</p><h4>Project information</h4><p>| Name: newapp<br>| Environment: dev<br>| Default editor: Visual Studio Code<br>| App type: javascript<br>| Javascript framework: none<br>| Source Directory Path: src<br>| Distribution Directory Path: dist<br>| Build Command: npm run-script build<br>| Start Command: npm run-script start</p><h4>Creating the required infrastructure</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bbVvNhiu7pw4HXKq" /><figcaption>Photo by <a href="https://unsplash.com/@sickhews?utm_source=medium&amp;utm_medium=referral">Wes Hicks</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Now, it will create the required infrastructure that you need, and the output will look something like this:</p><pre>CREATE_IN_PROGRESS amplify-amplifyapp-dev-163654 AWS::CloudFormation::Stack Tue Jun 14 2022 16:36:56 GMT-0700 (Pacific Daylight Time) User Initiated<br>CREATE_IN_PROGRESS UnauthRole AWS::IAM::Role Tue Jun 14 2022 16:37:00 GMT-0700 (Pacific Daylight Time)<br>CREATE_IN_PROGRESS DeploymentBucketBlockHTTP AWS::S3::BucketPolicy Tue Jun 14 2022 16:37:00 GMT-0700 (Pacific Daylight Time)<br>CREATE_IN_PROGRESS DeploymentBucket AWS::S3::Bucket Tue Jun 14 2022 16:37:01 GMT-0700 (Pacific Daylight Time)<br>CREATE_IN_PROGRESS AuthRole AWS::IAM::Role Tue Jun 14 2022 16:37:01 GMT-0700 (Pacific Daylight Time)<br>CREATE_COMPLETE UnauthRole AWS::IAM::Role Tue Jun 14 2022 16:37:17 GMT-0700 (Pacific Daylight Time)<br>CREATE_COMPLETE AuthRole AWS::IAM::Role Tue Jun 14 2022 16:37:17 GMT-0700 (Pacific Daylight Time)<br>CREATE_COMPLETE DeploymentBucket AWS::S3::Bucket Tue Jun 14 2022 16:37:24 GMT-0700 (Pacific Daylight Time)<br>CREATE_COMPLETE amplify-amplifyapp-dev-163654 AWS::CloudFormation::Stack Tue Jun 14 2022 16:37:26 GMT-0700 (Pacific Daylight Time)<br>✔ Successfully created initial AWS cloud resources for deployments.<br>✔ Initialized provider successfully.<br>✅ Initialized your environment successfully.</pre><p>Your project has been successfully initialized and connected to the cloud!</p><h4>Some next steps:</h4><p>“amplify status” will show you what you’ve added already and if it’s locally configured or deployed<br>“amplify add &lt;category&gt;” will allow you to add features like user login or a backend API<br>“amplify push” will build all your local backend resources and provision it in the cloud<br>“amplify console” to open the Amplify Console and view your project status<br>“amplify publish” will build all your local backend and frontend resources (if you have hosting category added) and provision it in the cloud</p><h4>What did you just create?</h4><p>When you run amplify init to initialize a new project, Amplify will:</p><ol><li>Analyze your project and confirm the project settings above, including which AWS profile will be used to provision the cloud resources required for your application.</li><li>Create a folder called amplify inside your project’s directory. This folder contains the back-end configuration of your application.</li><li>Create a file called src/aws-exports.js inside your project’s directory. This file contains the configuration for the services that Amplify provisions as you add more functionality to your application.</li><li>Create a cloud project for your application in the AWS Amplify Console, where you can view and manage your Amplify projects.</li></ol><h4>Conclusion</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qnQVJyt9QyeqC1-l" /><figcaption>Photo by <a href="https://unsplash.com/@alschim?utm_source=medium&amp;utm_medium=referral">Alexander Schimmeck</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In this module, you learned how to create a React frontend application, and initialize it with Amplify in preparation to deploy it to your AWS account. In the next module, you will learn how to add an API to your front-end application using GraphQL.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb97606c5178" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to install LAMP server on AWS]]></title>
            <link>https://medium.com/@anandmishra.kanha/how-to-install-lamp-server-on-aws-c312e670641b?source=rss-86f86a9a5573------2</link>
            <guid isPermaLink="false">https://medium.com/p/c312e670641b</guid>
            <category><![CDATA[lamp]]></category>
            <category><![CDATA[amazon-linux]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Anand Mishra]]></dc:creator>
            <pubDate>Thu, 15 Dec 2022 08:21:01 GMT</pubDate>
            <atom:updated>2022-12-15T08:21:01.338Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, we tell you how to install and run lamp server on AWS</p><h3>Step 1: Start an AWS instance with OS Amazon Linux</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0D-BWpVC5uxkDkoh" /><figcaption>Photo by <a href="https://unsplash.com/@mrpeker?utm_source=medium&amp;utm_medium=referral">Mehmet Ali Peker</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Goto AWS console -&gt; use EC2 -&gt; start an instance with OS Amazon Linux</p><h3>Step 2: Prepare the LAMP server</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uxt1J0USbSCohYU3" /><figcaption>Photo by <a href="https://unsplash.com/@wocintechchat?utm_source=medium&amp;utm_medium=referral">Christina @ wocintechchat.com</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Connect to your instance.</h4><p>Connect to your instance using ssh. Goto instance in EC2-&gt;connect. Follow the connection instructions</p><h4>Update the package repos</h4><p>To ensure that all of your software packages are up to date, perform a quick software update on your instance. This process might take a few minutes, but it is important to make sure that you have the latest security updates and bug fixes.</p><p>The -y option installs the updates without asking for confirmation. If you would like to examine the updates before installing, you can omit this option.</p><pre>[ec2-user ~]$ sudo yum update -y</pre><h4>Install the latest versions of Apache web server and PHP packages for Amazon Linux</h4><pre>sudo yum install -y httpd wget php-fpm php-mysqli php-json php php-devel</pre><h4>Install the MariaDB software packages</h4><p>Use the dnf install command to install multiple software packages and all related dependencies at the same time.</p><pre>[ec2-user ~]$ sudo dnf install mariadb105-server</pre><h4>Start the apache server</h4><p>Start the Apache web server.</p><pre>[ec2-user ~]$ sudo systemctl start httpd</pre><p>You can verify that <strong>httpd</strong> is on by running the following command:</p><pre>[ec2-user ~]$ sudo systemctl is-enabled httpd</pre><h4>Add security rules</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5hJLsS7L-nVBL5K9" /><figcaption>Photo by <a href="https://unsplash.com/@flyd2069?utm_source=medium&amp;utm_medium=referral">FLY:D</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Add a security rule to allow inbound HTTP (port 80) connections to your instance if you have not already done so. By default, a launch-wizard-N security group was created for your instance during launch. If you did not add additional security group rules, this group contains only a single rule to allow SSH connections.</p><p>Open the Amazon EC2 console at <a href="https://console.aws.amazon.com/ec2/">https://console.aws.amazon.com/ec2/</a>.</p><p>In the left navigator, choose Instances, and select your instance.</p><p>On the Security tab, view the inbound rules. You should see the following rule:</p><p>Port range Protocol Source<br>22 tcp 0.0.0.0/0</p><p>If there is no inbound rule to allow HTTP (port 80) connections, you must the add rule now. Choose the link for the security group. Using the procedures in Add rules to a security group, add a new inbound security rule with the following values:</p><p>Type: HTTP</p><p>Protocol: TCP</p><p>Port Range: 80</p><p>Source: Custom</p><h4>Test your web server</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HvvkuZmkFnqiM8_E" /><figcaption>Photo by <a href="https://unsplash.com/@kobuagency?utm_source=medium&amp;utm_medium=referral">KOBU Agency</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In a web browser, type the public DNS address (or the public IP address) of your instance. If there is no content in /var/www/html, you should see the Apache test page, which will display the message <strong>“It works!”.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c312e670641b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to deploy an application using Kuberenetes on Ubuntu 20.04]]></title>
            <link>https://medium.com/@anandmishra.kanha/how-to-deploy-an-application-using-kuberenetes-on-ubuntu-20-04-2181b3c0c986?source=rss-86f86a9a5573------2</link>
            <guid isPermaLink="false">https://medium.com/p/2181b3c0c986</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[kuberenetes]]></category>
            <dc:creator><![CDATA[Anand Mishra]]></dc:creator>
            <pubDate>Thu, 15 Dec 2022 08:07:44 GMT</pubDate>
            <atom:updated>2022-12-15T09:11:08.546Z</atom:updated>
            <content:encoded><![CDATA[<h3>Overview</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*h2JRnWh_nUGt3u59" /><figcaption>Photo by <a href="https://unsplash.com/@growtika?utm_source=medium&amp;utm_medium=referral">Growtika Developer Marketing Agency</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This tutorial shows you how to deploy a containerized application onto a Kubernetes cluster managed by Amazon Elastic Container Service for Kubernetes (Amazon EKS).</p><p>Amazon EKS is a fully managed service that makes it easy to deploy, manage, and scale containerized applications using Kubernetes on AWS. Amazon EKS runs the Kubernetes control plane for you across multiple AWS availability zones to eliminate a single point of failure. Amazon EKS is certified Kubernetes conformant so you can use existing tooling and plugins from partners and the Kubernetes community. Visit <a href="https://aws.amazon.com/eks/">aws.amazon.com/eks</a> to learn more.</p><p>In this tutorial, you will use Amazon EKS to deploy a highly available Kubernetes control plane. You will then configure ‘kubectl’, an open source command line tool to interact with your Kubernetes infrastructure. Using AWS CloudFormation, you will launch a cluster of worker nodes on Amazon EC2, then launch a containerized guest book application onto your cluster.</p><h3>Application architecture</h3><p>his project uses Amazon EKS, Amazon EC2, and Elastic Load Balancing as pictured below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/0*7Au2NQXWI990RDiR.png" /></figure><p><strong>AWS experience:</strong> Intermediate</p><p><strong>Time to complete</strong>: 30 minutes</p><p><strong>Cost to complete: </strong>This tutorial will cost you less than $0.60*.</p><p><strong>Technologies used</strong>:</p><ul><li>An active AWS account**</li><li><a href="https://aws.amazon.com/eks/">Amazon EKS</a></li><li><a href="https://aws.amazon.com/kubernetes/">Elastic Load Balancing</a></li><li><a href="https://kubernetes.io/docs/reference/kubectl/overview/">kubectl</a></li></ul><h3>Command Line tools</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IlNKAA9YowzUyJo1" /><figcaption>Photo by <a href="https://unsplash.com/@cdr6934?utm_source=medium&amp;utm_medium=referral">Chris Ried</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Many procedures of this user guide use the following command line tools:</p><p>kubectl — A command line tool for working with Kubernetes clusters. For more information, see Installing or updating kubectl.</p><p>eksctl — A command line tool for working with EKS clusters that automates many individual tasks. For more information, see Installing or updating eksctl.</p><p>AWS CLI — A command line tool for working with AWS services, including Amazon EKS. For more information, see Installing, updating, and uninstalling the AWS CLI in the AWS Command Line Interface User Guide. After installing the AWS CLI, we recommend that you also configure it. For more information, see Quick configuration with aws configure in the AWS Command Line Interface User Guide</p><h3>Installing or updating kubectl</h3><pre>curl -o kubectl https://s3.us-west-2.amazonaws.com/amazon-eks/1.24.7/2022-10-31/bin/linux/amd64/kubectl</pre><p>kubectl version | grep Client | cut -d : -f 5</p><p>After you install kubectl, you can verify its version with the following command:</p><pre>kubectl version --short --client</pre><h3>Install eksctl</h3><p><strong>To install or update </strong><strong>eksctl on Linux</strong></p><ol><li>Download and extract the latest release of eksctl with the following command.</li></ol><pre>curl --silent --location &quot;https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz&quot; | tar xz -C /tmp</pre><p>Move the extracted binary to /usr/local/bin.</p><pre>sudo mv /tmp/eksctl /usr/local/bin</pre><p>Test that your installation was successful with the following command.</p><pre>eksctl version</pre><h3>Create your Amazon EKS cluster and nodes</h3><pre>eksctl create cluster --name my-cluster --region region-code --fargate</pre><p>Cluster creation takes several minutes. During creation you’ll see several lines of output. The last line of output is similar to the following example line.</p><pre>...<br>[✓]  EKS cluster &quot;my-cluster&quot; in &quot;region-code&quot; region is ready</pre><h3>Step 2: View Kubernetes resources</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*c75VaTtguoJULQXc" /><figcaption>Photo by <a href="https://unsplash.com/@sincerelymedia?utm_source=medium&amp;utm_medium=referral">Sincerely Media</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>View your cluster nodes.</p><pre>kubectl get nodes -o wide</pre><pre>kubectl get pods -A</pre><h3>Step 3: Deploying the application</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wa5tEXxoWVG46vSM" /><figcaption>Photo by <a href="https://unsplash.com/@williamtm?utm_source=medium&amp;utm_medium=referral">William Hook</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Create a namespace. A namespace allows you to group resources in Kubernetes. Here namespace is eks-sample-app</p><pre>kubectl create namespace eks-sample-app</pre><h4>Write the deployment.yaml file</h4><pre>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: eks-sample-linux-deployment<br>  namespace: eks-sample-app<br>  labels:<br>    app: eks-sample-linux-app<br>spec:<br>  replicas: 3<br>  selector:<br>    matchLabels:<br>      app: eks-sample-linux-app<br>  template:<br>    metadata:<br>      labels:<br>        app: eks-sample-linux-app<br>    spec:<br>      affinity:<br>        nodeAffinity:<br>          requiredDuringSchedulingIgnoredDuringExecution:<br>            nodeSelectorTerms:<br>            - matchExpressions:<br>              - key: kubernetes.io/arch<br>                operator: In<br>                values:<br>                - amd64<br>                - arm64<br>      containers:<br>      - name: nginx<br>        image: public.ecr.aws/nginx/nginx:1.21<br>        ports:<br>        - name: http<br>          containerPort: 80<br>        imagePullPolicy: IfNotPresent<br>      nodeSelector:<br>        kubernetes.io/os: linux</pre><p><strong>Apply the deployment manifest to your cluster.</strong></p><pre>kubectl apply -f eks-sample-deployment.yaml</pre><h3>Create a service.</h3><p>A service allows you to access all replicas through a single IP address or dns name.</p><pre>apiVersion: v1<br>kind: Service<br>metadata:<br>  name: eks-sample-linux-service<br>  namespace: eks-sample-app<br>  labels:<br>    app: eks-sample-linux-app<br>spec:<br>  selector:<br>    app: eks-sample-linux-app<br>  ports:<br>    - protocol: TCP<br>      port: 80<br>      targetPort: 80</pre><p>Create the service</p><pre>kubectl apply -f eks-sample-service.yaml</pre><p>Check the running pods and services</p><pre>kubectl get all -n eks-sample-app</pre><pre>kubectl -n eks-sample-app describe service eks-sample-linux-service</pre><h3>Check if the service is running</h3><pre>curl eks-sample-linux-service</pre><p>The example output is as follows.</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>&lt;head&gt;<br>&lt;title&gt;Welcome to nginx!&lt;/title&gt;<br>...</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2181b3c0c986" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep reinforcement learning — current state of art]]></title>
            <link>https://medium.com/@anandmishra.kanha/deep-reinforcement-learning-current-state-of-art-383190b14464?source=rss-86f86a9a5573------2</link>
            <guid isPermaLink="false">https://medium.com/p/383190b14464</guid>
            <category><![CDATA[reinforcement-learning]]></category>
            <dc:creator><![CDATA[Anand Mishra]]></dc:creator>
            <pubDate>Thu, 15 Dec 2022 07:46:05 GMT</pubDate>
            <atom:updated>2022-12-15T07:46:05.489Z</atom:updated>
            <content:encoded><![CDATA[<h3>Deep reinforcement learning — current state of art</h3><h3>Introduction</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UitOtR7k0_roGrn9" /><figcaption>Photo by <a href="https://unsplash.com/@deepmind?utm_source=medium&amp;utm_medium=referral">DeepMind</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Deep reinforcement learning studies how we learn to solve complex problems,problems that require us to find a solution to a sequence of decisions in high-dimensional states. To make bread, we must use the right flour, add some salt, yeast and sugar, prepare the dough (not too dry and not too wet), pre-heat the oven to the right temperature, and bake the bread (but not too long); to win a ballroom dancing contest we must find the right partner, learn to dance, practice, and beat the<br>competition; to win in chess we must study, practice, and make all the right moves.</p><h3>Difference between classic machine learning, deep learning and deep reinforcement learning</h3><p>Classic machine learning algorithms learn a predictive model on data, using methods such as linear regression, decision trees, random forests, support vector machines, and artificial neural networks. The models aim to generalize, to make predictions. Mathematically speaking, machine learning aims to approximate a function from data. In the past, when computers were slow, the neural networks that were used consisted of a few layers of fully connected neurons and did not perform exception- ally well on difficult problems. This changed with the advent of deep learning and faster computers. Deep neural networks now consist of many layers of neurons and use different types of connections.</p><p>Deep networks and deep learning have taken the accuracy of certain important machine learning tasks to a new level and have allowed machine learning to be applied to complex, high-dimensional, problems, such as recognizing cats and dogs in high-resolution (mega-pixel) images. Where many means more than one hidden layer in between the input and output layers.</p><h4>What Is Deep Reinforcement Learning?</h4><p>Deep learning allows high-dimensional problems to be solved in real time; it has allowed machine learning to be applied to day-to-day tasks such as the face recognition and speech recognition that we use in our smartphones.</p><h4>Reinforcement Learning</h4><p>Let us look more deeply at reinforcement learning, to see what it means to learn from our own actions. Reinforcement learning is a field in which an agent learns by interacting with an environment. In supervised learning we need pre-existing datasets of labeled examples to approximate a function; reinforcement learning only needs an environment that provides feedback signals for actions that the agent is trying out. This requirement is easier to fulfill, allowing reinforcement learning to be applicable to more situations than supervised learning. Reinforcement learning agents generate, by their actions, their own on-the-fly data, through the environment’s rewards.</p><p>Agents can choose which actions to learn from; reinforcement learning is a form of active learning. In this sense, our agents are like children, that, through playing and exploring, teach themselves a certain task. This level of autonomy is one of the aspects that attracts researchers to the field. The reinforcement learning agent chooses which action to perform — which hypothesis to test — and adjusts its knowledge of what works, building up a policy of actions that are to be performed in the different states of the world that it has encountered. (This freedom is also what makes reinforcement learning hard, because when you are allowed to choose your own examples, it is all too easy to stay in your comfort zone, stuck in a positive reinforcement bubble, believing you are doing great, but learning very little of the world around you.)</p><h4>Deep Reinforcement Learning</h4><p>Deep reinforcement learning combines methods for learning high-dimensional problems with reinforcement learning, allowing high-dimensional, interactive learning. A major reason for the interest in deep reinforcement learning is that it works well on current computers and does so in seemingly different applications.</p><h3>Applications of deep reinforcement learning</h3><p>Applications In its most basic form, reinforcement learning is a way to teach an agent to operate in the world. As a child learns to walk from actions and feedback, so do reinforcement learning agents learn from actions and feedback. Deep reinforcement learning can learn to solve large and complex decision problems — problems whose solution is not yet known, but for which an approximating trial-and-error mechanism exists that can learn a solution out of repeated interactions with the problem.</p><p>This may sound a bit cryptical and convoluted, but approximation and trial and error are something that we do in real life all the time. Generalization and approximation allow us to infer patterns or rules from examples. Trial and error is a method by which humans learn how to deal with things that are unfamiliar to them</p><h4>Sequential decision problems</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-sYSw8w_90JQtAMQ" /><figcaption>Photo by <a href="https://unsplash.com/@asterfolio?utm_source=medium&amp;utm_medium=referral">Asterfolio</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Many real-world problems can be modeled as a sequence of decisions. For example, in autonomous driving, an agent is faced with questions of speed control, finding drivable areas, and, most importantly, avoiding collisions. In healthcare, treatment plans contain many sequential decisions, and factoring the effects of delayed treatment can be studied. In customer centers, natural language processing can help improve chatbot dialogue, question answering, and even machine translation. In marketing and communication, recommender systems recommend news, personalize suggestions, deliver notifications to user, or otherwise optimize the product experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RYG9YDQuXA7_CFoG" /><figcaption>Photo by <a href="https://unsplash.com/@nampoh?utm_source=medium&amp;utm_medium=referral">Maxim Hopman</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In trading and finance, systems decide to hold, buy, or sell financial titles, in order to optimize future reward. In politics and governance, the effects of policies can be simulated as a sequence of decisions before they are implemented. In mathematics and entertainment, playing board games, card games, and strategy games consists of a sequence of decisions. In computational creativity, making a painting requires a sequence of esthetic decisions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mkj4634ofxjlJVze" /><figcaption>Photo by <a href="https://unsplash.com/@ninjason?utm_source=medium&amp;utm_medium=referral">Jason Leung</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In industrial robotics and engineering, the grasping of items and the manipulation of materials consist of a sequence of decisions. In chemical manufacturing, the optimization of production processes consists of many decision steps that influence the yield and quality of the product. Finally, in energy grids, the efficient and safe distribution of energy can be modeled as a sequential decision problem</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=383190b14464" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ChatGPT — The NLP model that is changing the world]]></title>
            <link>https://medium.com/@anandmishra.kanha/chatgpt-the-nlp-model-that-is-changing-the-world-ab92569fc9c1?source=rss-86f86a9a5573------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab92569fc9c1</guid>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[naturallanguageprocessing]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Anand Mishra]]></dc:creator>
            <pubDate>Thu, 15 Dec 2022 07:27:32 GMT</pubDate>
            <atom:updated>2022-12-15T07:27:32.234Z</atom:updated>
            <content:encoded><![CDATA[<h3>ChatGPT — The NLP model that is changing the world</h3><h3>About ChatGPT</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Y6G-WoULFzEinWkK.jpg" /></figure><p>Source: Pexels</p><p>ChatGPT is a cutting-edge language model developed by OpenAI that allows users to have natural, conversational interactions with a machine. This technology represents a major advancement in the field of natural language processing, as it enables machines to understand and respond to human language in a more human-like way than ever before.</p><h3>Key features of ChatGPT</h3><p>One of the key features of ChatGPT is its ability to learn and adapt to a user’s unique style of communication. This means that the more you chat with it, the more it will understand your unique way of expressing yourself, and the more natural and fluent its responses will become. This ability to adapt and learn makes ChatGPT a powerful tool for a wide range of applications, from customer service to language translation.</p><p>Another impressive feature of ChatGPT is its ability to generate text that is indistinguishable from human-written text. This is made possible by the use of advanced machine learning techniques, such as deep learning and neural networks, which allow the model to generate text that is both grammatically correct and coherent. This means that you can have a conversation with ChatGPT that feels just like talking to a real person, without any of the usual awkwardness or stiltedness that is often associated with talking to a machine.</p><h3>What are language models?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TPOYYz72W_zUVnmk.jpg" /></figure><p>Source: pexels</p><p>Language models are algorithms that are able to predict the likelihood of a sequence of words. They are used in a variety of natural language processing tasks, such as speech recognition, machine translation, and text generation.</p><p>The most common type of language model is the statistical language model, which uses probabilities to predict the next word in a sequence. These models are trained on large corpora of text and use techniques such as n-grams and neural networks to make predictions.</p><p>One of the most notable developments in the field of language modeling has been the use of large, pre-trained language models such as GPT-2 and BERT. These models are trained on massive amounts of text and are able to perform well on a variety of natural language processing tasks without task-specific training.</p><p>In addition to their use in natural language processing, language models have also been used in creative applications such as poetry generation and story writing. While the outputs of these models are not always of the same quality as human-generated texts, they can still be impressive and showcase the capabilities of these algorithms.</p><p>Overall, language models are an important tool in natural language processing and have numerous applications in fields such as machine translation, speech recognition, and text generation. As the field continues to advance, we can expect to see even more impressive uses of these algorithms in the future.</p><h3>Limitations of ChatGPT</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yQG00yfv_7LekLX-.jpg" /></figure><p>Source: pexels</p><ul><li>Some times it writes nonsensical articles which are correct grammar but fixing them is challenging</li><li>Small input tweaks can change the output in a big manner</li><li>Excessively verbose outputs due to overtrained model</li><li>Clarifying questions are not asked to the user instead it just assumes the intention of the user</li><li>Unsafe content can still come and the ChatGPT team is trying to resolve it</li></ul><h3>The Challenge of AI Bias</h3><p>Research has established that all large language models have some sort of encoded human bias, including stereotypes and negative sentiment toward specific groups (especially marginalized minorities). One highly publicized research paper found that “the mix of human biases and seemingly coherent language heightens the potential for automation bias, deliberate misuse, and amplification of a hegemonic worldview.</p><p>A 2020 study of GPT-2, GPT-3’s predecessor, found in the training data 272,000 documents from unreliable news sites and 63,000 from banned subreddits. In the same study, both GPT-2 and GPT-3 showed a tendency to generate sentences with high toxicity scores, even when prompted with non-toxic sentences. OpenAI researchers noted early on that biased datasets led GPT-3 to place words like “naughty” or “sucked” near female pronouns and “Islam” near words like “terrorism.” A 2021 study by Stanford University researcher Abubakar Abid details consistent and creative biased tendencies of text generated by GPT-3, like associating the word “Jews” with “money” and “Muslim” with “terrorist” in the paper “Persistent Anti-Muslim Bias in Large Language Models.</p><h3>Future of language models</h3><p>The future of language models looks bright. As natural language processing (NLP) technology continues to improve, language models will become increasingly sophisticated and capable of handling a wider range of tasks.</p><p>One of the major developments we can expect to see in the future is the increasing use of language models in various industries. For example, in the healthcare industry, language models could be used to help doctors make more accurate diagnoses by analyzing large amounts of medical data and providing insights that would be difficult for humans to extract. In the financial industry, language models could be used to help banks detect fraudulent transactions in real-time.</p><p>Another important development in the field of language models is the increasing use of unsupervised learning. Unsupervised learning involves training a model on a large amount of data without providing it with explicit labels or annotations. This allows the model to discover hidden patterns and relationships in the data on its own, which can be useful for a variety of tasks such as translation and summarization.</p><p>One of the challenges that language models will need to overcome in the future is the issue of bias. As models are trained on large amounts of data, they can sometimes learn to reflect the biases present in that data. For example, a model trained on a dataset that contains a disproportionate number of male names might develop a bias towards male pronouns. In the future, it will be important for researchers to develop methods for mitigating bias in language models to ensure that they can be used in a fair and unbiased manner.</p><p>Overall, the future of language models looks bright. As the technology continues to advance, we can expect to see language models being used in a wide range of industries and applications, from healthcare to finance and beyond. With the continued development of unsupervised learning and the successful mitigation of bias, language models have the potential to become an indispensable tool for solving some of the most challenging problems facing society today.</p><h3>Summary</h3><p>In summary, ChatGPT is a revolutionary new technology that is set to change the way we interact with machines. With its ability to learn, adapt, and generate human-like text, ChatGPT has the potential to make our interactions with machines more natural and intuitive, and to open up exciting new possibilities in the fields of customer service, language translation, and more.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab92569fc9c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>