<?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 Lakshmi Kadali on Medium]]></title>
        <description><![CDATA[Stories by Lakshmi Kadali on Medium]]></description>
        <link>https://medium.com/@LakshmiKadali?source=rss-349841b8a64------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Lakshmi Kadali on Medium</title>
            <link>https://medium.com/@LakshmiKadali?source=rss-349841b8a64------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 08:52:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@LakshmiKadali/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[Log Analytics]]></title>
            <link>https://medium.com/@LakshmiKadali/log-analytics-e2d1b08ca30c?source=rss-349841b8a64------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2d1b08ca30c</guid>
            <category><![CDATA[cloud-analytics]]></category>
            <category><![CDATA[log-analysis]]></category>
            <category><![CDATA[log-analytics]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[analytics-tool]]></category>
            <dc:creator><![CDATA[Lakshmi Kadali]]></dc:creator>
            <pubDate>Fri, 17 Oct 2025 20:11:26 GMT</pubDate>
            <atom:updated>2025-10-17T20:11:26.100Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently, I got opportunity to work on a project that involves log data of energy industry mobile equipment. So I have been reading about log analytics which motivated me to write this article.</p><figure><img alt="Log Analysis" src="https://cdn-images-1.medium.com/max/381/1*0vCjRZJe_gzwcA2fgD6tkw.png" /></figure><h4>How to perform log analysis?</h4><p><strong>Collect and centralize data:</strong> To start, gather all logs in a central location. Having everything together will make it easier to analyze. Once all logs are centralized, it is important to parse and index them. Logs gather data from separate systems, which also means there can be differences in naming conventions, formats, schema, etc. Standardizing terminology at the beginning can save hours of confusion (or errors) that can happen in the log analysis process.</p><p><strong>Analyze data: </strong>Now it is time to search through and analyze (run queries) for pattern recognition. Depending on the software, this step could involve a visualization tool. Reporting dashboards can help aggregate data for non-technical users and people outside an organization. Plus, it is easier to see trends and anomalies by reviewing graphs, compared to detailed logs.</p><p><strong>Set up monitoring and alerts:</strong> Log analysis is critical when you are trying to resolve issues. But where organizations can see the biggest ROI is setting up real-time monitoring and alerting. For example, correlation analysis finds messages from different sources that all stem back to a singular, specific event. Then your system can determine what events need alerts based on patterns identified in logs. Teams can be notified in real time when conditions change. This speeds up recovery time by providing instant information about what happened, where, when, why, and how it impacted performance.</p><h4>What are the benefits of log analytics?</h4><p><strong>Improve customer experiences (and reduce churn):</strong> Review how users engage with an application to make better decisions that keep them engaged and navigate easier.</p><p><strong>Decrease resource usage and latency:</strong> Identify where in your organization resources are not optimized and resolve performance issues.</p><p><strong>Identify customer behavior:</strong> What are your customers interested in? What customers are the most active and where are they going? Logs provide an opportunity to gather information so you can personalize your sales and marketing material.</p><p><strong>Comply with audits:</strong> For companies that need to adhere to standards and regulations, audits are a regular occurrence. Using log analytics can help ensure audits do not fail.</p><h4>Log analytics tools in the market as of today.</h4><p>As of today , so far in my research , a wide variety of log analytics tools available in the market, catering to different needs from open-source flexibility to enterprise-grade.</p><p>The tools can generally be grouped into a few major categories:</p><p>1. Enterprise and Commercial Platforms</p><p>These are often comprehensive, paid solutions known for advanced features like AI/ML-powered analytics, full-stack observability (logs, metrics, and traces), and deep integrations, often targeting large organizations.</p><ul><li><strong>Splunk:</strong> A market leader, known for its powerful search language (SPL), scalability, and strong presence in both IT Operations and Security Information and Event Management (SIEM).</li><li><strong>Datadog:</strong> A popular cloud-native platform that provides unified observability, seamlessly correlating logs with metrics and traces.</li><li><strong>Sumo Logic:</strong> A cloud-native analytics platform that uses machine learning for security, operations, and business intelligence from log data.</li><li><strong>New Relic:</strong> Offers built-in log management as part of its full-stack observability platform, correlating logs with APM data.</li><li><strong>Dynatrace:</strong> An AI-powered observability platform that includes log management with automatic issue detection and root cause analysis.</li><li><strong>LogRhythm:</strong> Often positioned as a SIEM tool, with strong capabilities for log collection, correlation, and security analytics.</li></ul><p>2. Open-Source and Managed Open-Source Solutions</p><p>These tools are highly customizable, often free to use (self-hosted), and backed by large communities, though they may require more technical expertise to set up and maintain.</p><ul><li><strong>ELK Stack (Elastic Stack):</strong> The classic open-source triumvirate: Elasticsearch: Distributed search and analytics engine. Logstash: Data processing pipeline for collecting and enriching logs. Kibana: Visualization and dashboard interface.</li><li><strong>Grafana Loki:</strong> A log aggregation system designed to be highly cost-effective by indexing only metadata (labels) rather than the full log content. It pairs well with <strong>Grafana</strong> for visualization and <strong>Prometheus</strong> for metrics.</li><li><strong>Graylog:</strong> A popular open-source log management platform that provides centralized log collection, storage, and analysis, with an optional enterprise version.</li><li><strong>Logz.io:</strong> A cloud-based, managed service built on top of the ELK stack, adding features like AI-powered insights and a modern user interface.</li><li><strong>Fluentd/Fluent Bit:</strong> Cloud-Native Computing Foundation (CNCF) projects focused on unified log collection and transport. They are often used as the “shipper” or “collector” component to forward logs to a primary analytics backend like Elasticsearch or Loki.</li></ul><p>3. Cloud Provider Native Tools</p><p>The major cloud providers offer their own integrated logging and analytics services, which are usually optimized for collecting and analyzing logs from services running within their specific cloud environment.</p><ul><li><strong>Amazon CloudWatch Logs Insights:</strong> A fully managed, interactive log analytics service built into CloudWatch. It allows you to search, analyze, and visualize your log data (from various AWS services and custom logs) in real-time using a powerful query language.</li><li><strong>Amazon OpenSearch Service (formerly Amazon Elasticsearch Service):</strong> A managed service that makes it easy to deploy, operate, and scale OpenSearch clusters. It’s often used for real-time application monitoring, log analysis, and website search, frequently coupled with Kibana for visualization and querying.</li><li><strong>AWS CloudTrail:</strong> While primarily a service for governance, compliance, and auditing your AWS account (by recording API calls and user activity), its logs are often sent to CloudWatch Logs or Amazon S3 and then analyzed using tools like CloudWatch Logs Insights or OpenSearch Service.</li><li><strong>Amazon Athena:</strong> An interactive query service that makes it easy to analyze data directly in <strong>Amazon S3</strong> using standard SQL. It can be used to query log files stored in S3 without needing to load them into a separate log analytics platform.</li><li><strong>Azure Monitor Log Analytics</strong> (Microsoft Azure) : Azure Log Analytics is the dedicated service within Azure Monitor that collects, indexes, and analyzes log and performance data from various sources (Azure resources, hybrid environments, and applications). It uses a central logical storage unit called a Log Analytics Workspace. Log data is queried and analyzed using the powerful Kusto Query Language (KQL). It enables features like centralized data collection, historical analysis, alerts and notifications, and custom visualizations via Workbooks.</li><li><strong>Google Cloud Logging</strong> <strong>: </strong>This is the centralized service for ingesting, storing, and viewing logs from all Google Cloud resources, as well as on-premises and other cloud environments.</li><li><strong>Google Logs Explorer:</strong> The primary interface for searching, filtering, and viewing logs using the <strong>Logging Query Language</strong>. It’s generally recommended for troubleshooting and exploration.</li><li><strong>Google Log Analytics:</strong> A newer feature that allows you to perform <strong>advanced analysis on your log data using SQL</strong>. This is powered by BigQuery and is ideal for generating insights, trends, and using aggregate operations that are not available in Logs Explorer. Logs must be stored in a Log Bucket with Log Analytics enabled.</li><li><strong>Logs-based Metrics:</strong> Allows you to define metrics based on the content of your logs, which can then be used for monitoring and alerting in Cloud Monitoring.</li><li><strong>Google BigQuery: </strong>Logs can be exported to BigQuery for massive-scale, high-performance analytics using standard SQL. This is a common and powerful option for organizations that need deep historical analysis or to combine log data with other business data.</li></ul><p>4. Simpler, Focused Tools</p><p>These tools often prioritize ease of use, simple setup, and real-time log streaming, making them excellent choices for small-to-medium teams.</p><ul><li><strong>Papertrail</strong> (now part of SolarWinds): Known for its simple setup, real-time log aggregation, and easy-to-use search.</li><li><strong>Better Stack:</strong> A modern log management solution that allows querying logs using SQL and is built for fast performance.</li><li><strong>Mezmo</strong> (formerly LogDNA): Focuses on a clean UI, live tailing, and ease of log management.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2d1b08ca30c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Certified Data Engineer -Associate Exam Preparation (DEA-C01)]]></title>
            <link>https://medium.com/@LakshmiKadali/aws-certified-data-engineer-associate-exam-preparation-dea-c01-a56c01d0d083?source=rss-349841b8a64------2</link>
            <guid isPermaLink="false">https://medium.com/p/a56c01d0d083</guid>
            <category><![CDATA[aws-glue]]></category>
            <category><![CDATA[aws-kinesis]]></category>
            <category><![CDATA[aws-data-engineering]]></category>
            <category><![CDATA[aws-redshift]]></category>
            <category><![CDATA[aws-s3]]></category>
            <dc:creator><![CDATA[Lakshmi Kadali]]></dc:creator>
            <pubDate>Sat, 27 Sep 2025 19:59:01 GMT</pubDate>
            <atom:updated>2025-09-27T20:09:32.239Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="AWS Certified Data Engineer — Associate Badge" src="https://cdn-images-1.medium.com/max/275/1*djLgA6w9lD1nrvQc5VxXaw.jpeg" /></figure><p>I have successfully completed <a href="https://www.linkedin.com/posts/lakshmi-kadali_aws-certified-data-engineer-associate-activity-7377355578286903296-Vjzr?utm_source=share&amp;utm_medium=member_desktop&amp;rcm=ACoAAC9RvE8BHu0MLvfjRdxNVovJefKaqEV5g1I"><strong>AWS Certified Data Engineer — Associate</strong></a> exam with a score of 1000/1000</p><figure><img alt="AWS Certified Data Engineer — Associate Exam Results" src="https://cdn-images-1.medium.com/max/969/1*RJ7l_pVvyyniBEKrlbkqeQ.png" /></figure><h3>DEA-C01 Exam Overview</h3><p>The AWS Certified Data Engineer — Associate validates skills and knowledge in core data-related AWS services, ability to ingest and transform data, orchestrate data pipelines while applying programming concepts, design data models, manage data life cycles, and ensure data quality.</p><p>Exam duration — 130 minutes (If English is not your first language you can get 30mins extra time)</p><p>Exam format — I got 65questions : multiple choice and multiple response</p><p>Testing Options — Pearson VUE testing center or online proctored exam (I took online proctored exam)</p><h3>My Exam Preparation resources</h3><ol><li><a href="https://d1.awsstatic.com/onedam/marketing-channels/website/aws/en_US/certification/approved/pdfs/docs-data-engineer-associate/AWS-Certified-Data-Engineer-Associate_Exam-Guide.pdf">AWS Certified Data Engineer — Associate (DEA-C01) Exam Guide</a></li><li><a href="https://skillbuilder.aws/category/exam-prep/data-engineer-associate">AWS Skillbuilder 4-step plan</a></li><li><a href="https://www.twitch.tv/awstraininglive">AWS Training Live on Twitch</a></li><li><a href="https://portal.tutorialsdojo.com/courses/aws-certified-data-engineer-associate-practice-exam-dea-c01/">Tutorials Dojo AWS Certified Data Engineer Associate DEA-C01 practice exams</a></li><li><a href="https://skillbuilder.aws/learn/2JS5H1Z9KP/official-practice-question-set-aws-certified-data-engineer--associate-deac01--english/VX268Y5VBA">Official Practice Question Set: AWS Certified Data Engineer — Associate (DEA-C01 — English)</a></li><li><a href="https://www.coursera.org/specializations/exam-prep-aws-certified-data-engineer-associate">Whizlabs Exam Prep (DEA-C01): AWS Certified Data Engineer — Associate Specialization</a></li><li><a href="https://www.credly.com/badges/6dd4af21-ea82-4cb7-be3d-fb3aabcc4e14/linked_in_profile/">AWS Cloud Quest - Data Analytics</a></li><li><a href="https://www.credly.com/badges/ea3540d2-3ffb-4047-81b3-70699eb95aee">AWS Cloud Quest — Cloud Practitioner</a></li><li><a href="https://www.credly.com/badges/0f1b6a51-f6e4-4f08-b963-0da394e3536e">AWS Cloud Quest — Machine Learning</a></li><li><a href="https://aws.amazon.com/education/awseducate/?sc_channel=em&amp;sc_campaign=GLOBAL_TRAINCERT_LN_traincert-100-29mlearners-dl-lp_20210415_&amp;sc_medium=em_&amp;sc_content=PA_ln_traincert&amp;sc_detail=29millearners&amp;sc_geo=mult&amp;sc_country=global&amp;sc_outcome=pa&amp;trk=em_">AWS Educate</a></li><li><a href="https://skillbuilder.aws/learning-plan/FYGBWGX6QJ/data-engineering-on-aws-learning-plans-includes-labs/7UPVWWCC45">AWS Builder Labs</a></li></ol><h3>My Exam preparation notes</h3><p>The following are some key points I noted down while preparing for this exam:</p><p><a href="https://docs.aws.amazon.com/aws-managed-policy/latest/reference/AWSGlueServiceRole.html"><strong>AWSGlueService Role managed policy</strong></a> — role which allows access to related services including EC2, S3, and Cloudwatch Logs</p><p><a href="https://aws.amazon.com/glue/features/data-quality/"><strong>AWS Glue Data Quality</strong></a> for is for monitoring data quality over time</p><p><a href="https://aws.amazon.com/glue/features/databrew/"><strong>AWS Glue DataBrew</strong></a> used for data quality management. Recipes are for data transformation. Data quality rules are for data quality.</p><p><a href="https://aws.amazon.com/firehose/"><strong>Fire-hose</strong></a> / <a href="https://aws.amazon.com/kinesis/data-streams/"><strong>Kinesis Data Streams</strong></a> near real time and fire hose has inbuilt connection with splunk.</p><p><a href="https://aws.amazon.com/lake-formation/"><strong>Lake Formation</strong></a> is the best way to govern and secure S3 data</p><p><a href="https://aws.amazon.com/s3/features/object-lambda/"><strong>Amazon S3 Object Lambda</strong></a> is useful to use your own code for transformations</p><p><a href="https://aws.amazon.com/s3/"><strong>S3</strong></a> and <a href="https://aws.amazon.com/serverless/"><strong>serverless services</strong></a> will be always cost-effective solutions</p><p><a href="https://docs.aws.amazon.com/eventbridge/#eventbridge"><strong>Eventbridge</strong></a><strong> </strong>is cost-effective solution</p><p><a href="https://aws.amazon.com/kms/"><strong>KMS</strong></a> is almost always preferred for encryption</p><p><a href="https://aws.amazon.com/blogs/big-data/introducing-aws-glue-flex-jobs-cost-savings-on-etl-workloads/"><strong>Glue Flex</strong></a> — a serverless data integration service that makes it simple to discover, prepare, and combine data for analytics, machine learning (ML)</p><p><a href="https://aws.amazon.com/step-functions/"><strong>Step Functions</strong></a> for workflows that are not just Glue(ETL) specific</p><p><a href="https://aws.amazon.com/data-exchange/"><strong>AWS Data Exchange</strong> </a>— for sharing third party data sets</p><p><a href="https://aws.amazon.com/appflow/"><strong>AppFlow</strong></a> for 3rd party SAAS applications</p><p>Logs almost always deals with <a href="https://aws.amazon.com/cloudwatch/"><strong>AWS CloudWatch</strong></a></p><p><a href="https://aws.amazon.com/macie/"><strong>Amazon Macie</strong></a> is for identifying PII data but not for redaction (For redaction consider <a href="http://amazon%20s3%20object%20lambda/"><strong>S3 Object Lambda</strong></a> or <a href="https://aws.amazon.com/glue/features/databrew/"><strong>Glue DataBrew</strong></a>)</p><p><a href="https://aws.amazon.com/s3/features/access-points/"><strong>S3 Access Points</strong></a>- simplify data access for any AWS service or customer application that stores data in S3</p><p><a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lifecycle-mgmt.html"><strong>S3 Lifecycle Policies</strong></a> — a set of rules that define actions that Amazon S3 applies to a group of objects(got many questions on this topic)</p><p><a href="https://aws.amazon.com/s3/storage-classes/intelligent-tiering/"><strong>S3 Intelligent Tiering</strong></a> — delivers automatic storage cost savings when data access patterns change, without performance impact or operational overhead</p><p><a href="https://aws.amazon.com/s3/storage-classes/"><strong>S3 Infrequent access</strong> </a>— for occasional queries</p><p><a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/Versioning.html"><strong>S3 Versioning</strong></a> — means of keeping multiple variants of an object in the same bucket</p><p><strong>Apache Parquet format — </strong>always cost-effective and<strong> </strong>CSV files are never query-efficient.</p><p><a href="https://aws.amazon.com/redshift/features/concurrency-scaling/"><strong>Redshift Concurrency Scaling</strong></a> — for optimum cluster capacity</p><p><a href="https://docs.aws.amazon.com/glue/latest/dg/about-triggers.html"><strong>AWS Glue Triggers</strong></a><strong> —</strong> used to start specified jobs and crawlers.</p><p><a href="https://docs.aws.amazon.com/redshift/latest/dg/datashare-overview.html"><strong>Redshift Data Sharing</strong></a> — securely share access to live data across Amazon Redshift clusters, workgroups, AWS accounts, and AWS Regions without manually moving or copying the data</p><p><a href="https://docs.aws.amazon.com/redshift/latest/dg/materialized-view-overview.html"><strong>Materialized Views</strong></a> improve query performance</p><p><a href="https://docs.aws.amazon.com/redshift/latest/dg/materialized-view-streaming-ingestion.html"><strong>Redshift Streaming Ingestion</strong></a> — provides low-latency, high-speed ingestion of stream data from Amazon Kinesis Data Streams and Amazon Managed Streaming for Apache Kafka into an Amazon Redshift provisioned or Amazon Redshift Serverless materialized view</p><p><a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html"><strong>Redshift Data API</strong></a> — does not require persistent connection to the database</p><p><a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes.html"><strong>EventBridge Pipes </strong></a>— point-to-point integrations between supported sources and targets, with support for advanced transformations and enrichment</p><p><a href="https://docs.aws.amazon.com/redshift/latest/mgmt/query-editor-v2-using.html"><strong>Redshift Query Editor V2</strong></a><strong> </strong>— to edit and run queries, visualize results, and share your work with your team.</p><p><a href="https://repost.aws/knowledge-center/glue-crawler-multiple-tables"><strong>prevent a Glue Crawler from creating multiple tables</strong></a> by confirming that the all data files use the same schema, format, and compression type</p><h3>Conclusion</h3><p>I had some experience with core Data Engineering services (Redshift, Athena, Glue, Kinesis, S3). Labs helped me to connect the dots.</p><p>All the best in your exam preparation and hopefully this article helps you to pass the <a href="https://www.credly.com/badges/e68febb1-3eb3-4fc0-b5f3-5cc519d9a7ba">AWS Certified Data Engineer — Associate Certification!</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a56c01d0d083" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Cloud Quest Cloud Practitioner]]></title>
            <link>https://medium.com/@LakshmiKadali/aws-cloud-quest-cloud-practitioner-2a606ec992ff?source=rss-349841b8a64------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a606ec992ff</guid>
            <category><![CDATA[aws-cloud-quest]]></category>
            <category><![CDATA[aws-cloud-practitioner]]></category>
            <dc:creator><![CDATA[Lakshmi Kadali]]></dc:creator>
            <pubDate>Tue, 17 Dec 2024 00:32:12 GMT</pubDate>
            <atom:updated>2024-12-17T00:47:49.255Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="https://www.credly.com/badges/ea3540d2-3ffb-4047-81b3-70699eb95aee" src="https://cdn-images-1.medium.com/max/225/1*H5xMORKIkLHHfTKkbpqU2g.jpeg" /><figcaption>Lakshmi Kadali badge</figcaption></figure><p>After completing the “<a href="https://www.credly.com/badges/e2ca74a3-1ce1-4691-b86d-6b4e13d75c59"><strong>AWS Cloud Practitioner Certification</strong></a>” and earning the digital badge on <a href="https://www.linkedin.com/redir/redirect?url=https%3A%2F%2Fwww%2Ecredly%2Ecom%2Fbadges%2Fa4c6f189-1555-4719-a007-7f325a09f3c3%2Fpublic_url&amp;urlhash=rKZ-&amp;trk=article-ssr-frontend-pulse_little-text-block">Credly</a>, I took on the challenge of Cloud Quest to gain hands-on experience.</p><p>AWS Cloud Quest is an interactive learning experience created by AWS Training and Certification.</p><p><a href="https://www.credly.com/badges/ea3540d2-3ffb-4047-81b3-70699eb95aee"><strong>AWS Cloud Quest: Cloud Practitioner</strong></a> is a role-based learning experience designed to equip you with practical AWS Cloud skills. Featuring 12 FREE hands-on assignments that guide you through building real-world solutions, this course is enriched by instructional videos, architecture diagrams, knowledge quizzes practice labs and at the end of each assignment will have DIY task.</p><figure><img alt="https://explore.skillbuilder.aws/learn/course/11458/play/42651/play-cloud-quest-cloud-practitioner" src="https://cdn-images-1.medium.com/max/933/1*Vjh_uOuJq6vatNSI6odTYQ.png" /><figcaption>AWS image</figcaption></figure><h4>1. Cloud Computing Essentials</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*o5EUzDmYoPABB8fFVubcIw.png" /><figcaption>Cloud Computing Essentials Architecture</figcaption></figure><p><strong>Business Request</strong>: The city’s web portal needs to migrate the beach wave size prediction page to AWS to improve reliability.</p><p><strong>Learning Objectives</strong>:</p><ul><li>Articulate the characteristics of the AWS cloud computing platform.</li><li>Describe the core benefits of using AWS products and services.</li><li>Compare and contrast AWS cloud services to On-Premises infrastructure.</li><li>Implement hosting a static web page using Amazon S3.</li></ul><p><strong>AWS Services: </strong>AWS S3</p><h4>2. Cloud First Steps</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*WKstweSr_zXEHJ5R8P_Uaw.png" /><figcaption>Cloud First Steps Architecture</figcaption></figure><p><strong>Business Request</strong>: The island’s stabilization system is failing and needs increased reliability and availability for its computational modules.</p><p><strong>Learning Objectives</strong>:</p><ul><li>Summarize AWS Infrastructure benefits.</li><li>Describe AWS Regions and Availability Zones.</li><li>Deploy Amazon EC2 instances into multiple Availability Zones.</li></ul><p><strong>AWS Services: </strong>Amazon EC2, AWS Infrastructure</p><h4>3. Computing Solutions</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*GB5MgmYj3JnFP7ThCsKOkw.png" /><figcaption>Computing Solutions Architecture</figcaption></figure><p><strong>Business Request</strong>: The school server that runs the scheduling solution needs more memory. Assist with vertically scaling their Amazon EC2 instance.</p><p><strong>Learning Objectives</strong>:</p><ul><li>Describe Amazon EC2 instance families and instance types.</li><li>Describe horizontal and vertical scaling.</li><li>Recognize options for connecting to Amazon EC2 instances.</li></ul><p><strong>AWS Services: </strong>AWS EC2</p><h4>4. Networking Concepts</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Iq3vsCRtnwMHR_6n7GXkRA.png" /><figcaption>Networking Concepts Architecture</figcaption></figure><p><strong>Business Request</strong>: Help the bank setup a secure networking environment which allows communication between resources and the internet.</p><p><strong>Learning Objectives</strong>:</p><ul><li>Define key features of VPCs, subnets, internet gateways and route tables.</li><li>Describe the benefits of using Amazon VPCs.</li><li>State the basics of CIDR block notation and IP addressing.</li><li>Explain how VPC traffic is routed and secured using gateways, network access control lists, and security groups.</li></ul><p><strong>AWS Services: </strong>Amazon EC2, Amazon VPC.</p><h4>5. Databases in Practice</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*3jPX1E9z27BisUAysyVGrw.png" /><figcaption>Databases in Practice Architecture</figcaption></figure><p><strong>Business Request</strong>: Improve the insurance company’s relational database operations, performance, and availability.</p><p><strong>Learning Objectives</strong>:</p><ul><li>Review the features, benefits and database types available with Amazon RDS.</li><li>Describe vertical and horizontal scaling on Amazon RDS.</li><li>Use Amazon RDS read replicas to increase database performance.</li><li>Implement multi-AZ deployments of Amazon RDS to increase availability.</li></ul><p><strong>AWS Services: </strong>Amazon RDS.</p><h4>6. Connecting VPCs</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*DwuMBA6W81J8GaPBuT6E4w.png" /><figcaption>Connecting VPCs Architecture</figcaption></figure><p><strong>Business Request</strong>: The city’s marketing team wants separate Amazon VPCs for each department that allows communication between Amazon VPCs.</p><p><strong>Learning Objectives</strong>:</p><ul><li>Summarize how VPC peering works with Amazon VPC.</li><li>Explain the steps for establishing a VPC peering connection.</li><li>Create a peering connection between two Amazon VPCs.</li><li>Establish a peering connection between Amazon VPCs using a specific subnet.</li></ul><p><strong>AWS Services: </strong>Amazon EC2, Amazon VPC.</p><h4>7. First NoSQL Database</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*Uas2vYIKTx5HJeCqYqN8fw.png" /><figcaption>First NoSQL Database Architecture</figcaption></figure><p><strong>Business Request</strong>: Help the island’s streaming entertainment service implement a NoSQL database to develop new features.</p><p><strong>Learning Objectives</strong>:</p><ul><li>Summarize the different uses of common purpose-built databases.</li><li>Describe the features and benefits of Amazon DynamoDB.</li><li>Interact with the elements and attributes of an Amazon DynamoDB database.</li><li>Set up a NoSQL database with Amazon DynamoDB.</li></ul><p><strong>AWS Services: </strong>Amazon DynamoDB.</p><h4>8. File Systems in the Cloud</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*q9MHhOJaC1WbE3TZYxUIOQ.png" /><figcaption>File Systems in the Cloud Architecture</figcaption></figure><p><strong>Business Request</strong>: Help the city’s pet modeling agency share file data without provisioning or managing storage.</p><p><strong>Learning Objectives</strong>:</p><ul><li>Summarize the different storage options available on AWS.</li><li>Summarize the key features and benefits of Amazon EFS.</li><li>Identify business use cases for Amazon EFS.</li><li>Configure Amazon EFS endpoints to access centralized storage.</li></ul><p><strong>AWS Services: </strong>Amazon EC2, Amazon Elastic File System.</p><h4>9. Auto-healing and Scaling Applications</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iTBL-H5Jnvdt7H_XEQAafw.png" /><figcaption>Auto-healing and Scaling Application Architecture</figcaption></figure><p><strong>Business Request</strong>: Assist the city’s gaming cafe with implementing auto-healing servers while restricting patrons to a specific provisioning capacity.</p><p><strong>Learning Objectives</strong>:</p><ul><li>Describe the auto-healing and scaling capabilities offered by Auto Scaling groups.</li><li>Create an Auto Scaling group with strict resource boundaries.</li><li>Configure an Auto Scaling group to respond to a time-based event.</li></ul><p><strong>AWS Services: </strong>Amazon EC2, Amazon EC2 Auto Scaling.</p><h4>10. Highly Available Web Applications</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BriXisDHtlbP9Itt9ABZJQ.png" /></figure><p><strong>Business Request</strong>: Help the travel agency create a highly available web application architecture.</p><p><strong>Learning Objectives</strong>:</p><ul><li>Describe the principles for architecting highly available applications.</li><li>Summarize the benefits of using an AWS Application Load Balancer (ALB).</li><li>Use Auto Scaling groups with load balancing and health monitoring.</li></ul><p><strong>AWS Services: </strong>Amazon S3, Amazon EC2, Amazon EC2 Auto Scaling, Elastic Load Balancing (ELB)</p><h4>11. Core Security Concepts</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*PO_r0jgCY9MnrfECa4HPcw.png" /><figcaption>Core Security Concepts Architecture</figcaption></figure><p><strong>Business Request</strong>: Help improve security at the city’s stock exchange by ensuring that support engineers can only perform authorized actions.</p><p><strong>Learning Objectives</strong>:</p><ul><li>Describe the creation process and differences between AWS IAM users, roles, and groups.</li><li>Review the structure and components of AWS IAM Policies.</li><li>Summarize the AWS Shared Responsibility Model and compliance programs.</li></ul><p><strong>AWS Services: </strong>Amazon EC2, Amazon Relational Database Service (RDS), AWS Identity and Access Management (IAM)</p><h4>12. Cloud Economics</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n6pMY9vE4pLK-mE7K3drug.png" /><figcaption>Cloud Economics Architecture</figcaption></figure><p><strong>Business Request</strong>: The city’s surfboard shop needs a cost estimation of an architecture with variable resource usage.</p><p><strong>Learning Objectives</strong>:</p><ul><li>Describe how pricing estimates are obtained.</li><li>Use the AWS Pricing Calculator to estimate the price of an AWS architecture.</li></ul><p><strong>AWS Services: </strong>Amazon EC2, AWS Pricing Calculator.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a606ec992ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL Case Study : Tiny Shop Sales]]></title>
            <link>https://medium.com/@LakshmiKadali/sql-case-study-tiny-shop-sales-10b636cbe00e?source=rss-349841b8a64------2</link>
            <guid isPermaLink="false">https://medium.com/p/10b636cbe00e</guid>
            <dc:creator><![CDATA[Lakshmi Kadali]]></dc:creator>
            <pubDate>Sun, 28 May 2023 03:39:20 GMT</pubDate>
            <atom:updated>2023-05-28T03:39:20.494Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>SQL Case Study : Tiny Shop Sales</strong></h3><blockquote><strong>Though case study suggests to use online version of PostgreSQL. To improve my skill, I have used Azure Data Studio for my SQL Case Study.</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*y6tuiQXA3kvfPSTkbZlepQ.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*dWN_sD5g00Cj_2ub4OYQ-Q.png" /></figure><h3>Overview</h3><p>Here is the <a href="https://d-i-motion.com/lessons/customer-orders-analysis/">link</a> for this SQL Case Study. This case study uses PostgreSQL. To successfully answer all the questions you should have been exposed to the following areas of SQL:</p><ul><li>Basic aggregations</li><li>CASE WHEN statements</li><li>Window Functions</li><li>Joins</li><li>Date time functions</li><li>CTEs</li></ul><pre><br>CREATE DATABASE TinyShopSalesDB;<br><br>CREATE TABLE customers (<br>    customer_id integer PRIMARY KEY,<br>    first_name varchar(100),<br>    last_name varchar(100),<br>    email varchar(100)<br>);<br><br>CREATE TABLE products (<br>    product_id integer PRIMARY KEY,<br>    product_name varchar(100),<br>    price decimal<br>);<br><br>CREATE TABLE orders (<br>    order_id integer PRIMARY KEY,<br>    customer_id integer,<br>    order_date date<br>);<br><br>CREATE TABLE order_items (<br>    order_id integer,<br>    product_id integer,<br>    quantity integer<br>);<br><br>INSERT INTO customers (customer_id, first_name, last_name, email) VALUES<br>(1, &#39;John&#39;, &#39;Doe&#39;, &#39;johndoe@email.com&#39;),<br>(2, &#39;Jane&#39;, &#39;Smith&#39;, &#39;janesmith@email.com&#39;),<br>(3, &#39;Bob&#39;, &#39;Johnson&#39;, &#39;bobjohnson@email.com&#39;),<br>(4, &#39;Alice&#39;, &#39;Brown&#39;, &#39;alicebrown@email.com&#39;),<br>(5, &#39;Charlie&#39;, &#39;Davis&#39;, &#39;charliedavis@email.com&#39;),<br>(6, &#39;Eva&#39;, &#39;Fisher&#39;, &#39;evafisher@email.com&#39;),<br>(7, &#39;George&#39;, &#39;Harris&#39;, &#39;georgeharris@email.com&#39;),<br>(8, &#39;Ivy&#39;, &#39;Jones&#39;, &#39;ivyjones@email.com&#39;),<br>(9, &#39;Kevin&#39;, &#39;Miller&#39;, &#39;kevinmiller@email.com&#39;),<br>(10, &#39;Lily&#39;, &#39;Nelson&#39;, &#39;lilynelson@email.com&#39;),<br>(11, &#39;Oliver&#39;, &#39;Patterson&#39;, &#39;oliverpatterson@email.com&#39;),<br>(12, &#39;Quinn&#39;, &#39;Roberts&#39;, &#39;quinnroberts@email.com&#39;),<br>(13, &#39;Sophia&#39;, &#39;Thomas&#39;, &#39;sophiathomas@email.com&#39;);<br><br>INSERT INTO products (product_id, product_name, price) VALUES<br>(1, &#39;Product A&#39;, 10.00),<br>(2, &#39;Product B&#39;, 15.00),<br>(3, &#39;Product C&#39;, 20.00),<br>(4, &#39;Product D&#39;, 25.00),<br>(5, &#39;Product E&#39;, 30.00),<br>(6, &#39;Product F&#39;, 35.00),<br>(7, &#39;Product G&#39;, 40.00),<br>(8, &#39;Product H&#39;, 45.00),<br>(9, &#39;Product I&#39;, 50.00),<br>(10, &#39;Product J&#39;, 55.00),<br>(11, &#39;Product K&#39;, 60.00),<br>(12, &#39;Product L&#39;, 65.00),<br>(13, &#39;Product M&#39;, 70.00);<br><br>INSERT INTO orders (order_id, customer_id, order_date) VALUES<br>(1, 1, &#39;2023-05-01&#39;),<br>(2, 2, &#39;2023-05-02&#39;),<br>(3, 3, &#39;2023-05-03&#39;),<br>(4, 1, &#39;2023-05-04&#39;),<br>(5, 2, &#39;2023-05-05&#39;),<br>(6, 3, &#39;2023-05-06&#39;),<br>(7, 4, &#39;2023-05-07&#39;),<br>(8, 5, &#39;2023-05-08&#39;),<br>(9, 6, &#39;2023-05-09&#39;),<br>(10, 7, &#39;2023-05-10&#39;),<br>(11, 8, &#39;2023-05-11&#39;),<br>(12, 9, &#39;2023-05-12&#39;),<br>(13, 10, &#39;2023-05-13&#39;),<br>(14, 11, &#39;2023-05-14&#39;),<br>(15, 12, &#39;2023-05-15&#39;),<br>(16, 13, &#39;2023-05-16&#39;);<br><br>INSERT INTO order_items (order_id, product_id, quantity) VALUES<br>(1, 1, 2),<br>(1, 2, 1),<br>(2, 2, 1),<br>(2, 3, 3),<br>(3, 1, 1),<br>(3, 3, 2),<br>(4, 2, 4),<br>(4, 3, 1),<br>(5, 1, 1),<br>(5, 3, 2),<br>(6, 2, 3),<br>(6, 1, 1),<br>(7, 4, 1),<br>(7, 5, 2),<br>(8, 6, 3),<br>(8, 7, 1),<br>(9, 8, 2),<br>(9, 9, 1),<br>(10, 10, 3),<br>(10, 11, 2),<br>(11, 12, 1),<br>(11, 13, 3),<br>(12, 4, 2),<br>(12, 5, 1),<br>(13, 6, 3),<br>(13, 7, 2),<br>(14, 8, 1),<br>(14, 9, 2),<br>(15, 10, 3),<br>(15, 11, 1),<br>(16, 12, 2),<br>(16, 13, 3);</pre><p>The Tiny Shop sales database contains four tables <strong>Products, Customers, Orders, and Order_Items.</strong> The Products table contains information about the products, such as its name, price, and quantity in stock. The Customers table stores customer details like their name, email address, and address. The Orders table contains order-specific information of each order, such as the customer who placed the order, the products that were ordered, and the order total. The Order_Items table shows the items in each order, with the order ID, product ID, and quantity.</p><h3>Questions</h3><ol><li>Which product has the highest price? Only return a single row.</li><li>Which customer has made the most orders?</li><li>What’s the total revenue per product?</li><li>Find the day with the highest revenue.</li><li>Find the first order (by date) for each customer.</li><li>Find the top 3 customers who have ordered the most distinct products</li><li>Which product has been bought the least in terms of quantity?</li><li>What is the median order total?</li><li>For each order, determine if it was ‘Expensive’ (total over 300), ‘Affordable’ (total over 100), or ‘Cheap’.</li><li>Find customers who have ordered the product with the highest price.</li></ol><p>Let&#39;s answer the questions ……….</p><ol><li><strong>Which product has the highest price? Only return a single row.</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bf8C3oV6LK7qsePQM5eGPA.png" /></figure><p>The subquery <strong>(select max(price) from products)</strong> is used to calculate the maximum price from the “<strong>products</strong>” table. This subquery is executed first and returns a single value, which is then used as the condition in the main query’s <strong>WHERE</strong> clause.</p><p><strong>2. Which customer has made the most orders?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*GG65PGYGzkg31kLy29TnOQ.png" /></figure><p>Using an aggregation function like COUNT, we can group the orders by customer and retrieve the customer with the highest count.</p><p><strong>3. What’s the total revenue per product?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*Sz4KuylGLigptFmzkbn2Pg.png" /></figure><p>This SQL query, retrieves total revenue per product, by joining the products and order_items tables, multiplies the quantity of each product in the order_items table with its price in products table and adds up the outcomes.</p><p><strong>4. Find the day with the highest revenue.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*pQcASrYoKaL6EZDqujlg7Q.png" /></figure><p>In the above SQL query, the order date and the total revenue for each order, calculated by multiplying the price of each product with its respective quantity.</p><p><strong>5. Find the first order (by date) for each customer.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*LTRtB8mhMlNcV03XNP0wgg.png" /></figure><p>The above SQL query retrieves the customer name of each customer, along with the minimum order date (min(ord.order_date)) for each customer. The results are then grouped by the customer’s first name, last name, and order date. Finally, the results are sorted in ascending order based on the first-order date.</p><p><strong>6. Find the top 3 customers who have ordered the most distinct products</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D9ixerC04NWe3YIiIfy7qQ.png" /></figure><p>In the above SQL query, name of each customer, including the count of distinct product names grouped by each customer.</p><p><strong>7. Which product has been bought the least in terms of quantity?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*GqigTJRdSYPOpta86B8sLw.png" /></figure><p>The above SQL query retrieves the product ID and the sum of quantities for each product. The results are then grouped by the product ID and ordered in ascending order based on the total quantities.</p><p><strong>8. What is the median order total?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wGIperZ_iEU0hB46TZNPkg.png" /></figure><p>We can calculate the median order total, using window functions and aggregations, by sorting the orders by total and selecting the middle value.</p><p><strong>9. For each order, determine if it was ‘Expensive’ (total over 300), ‘Affordable’ (total over 100), or ‘Cheap’.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FlTG95gP3kZQjZucy9b69Q.png" /></figure><p>With CASE WHEN statements, we can categorize the order amounts into three expense categories: “Expensive” for amounts greater than 300, “Affordable” for amounts greater than 100, and “Cheap” for all other amounts.</p><p><strong>10. Find customers who have ordered the product with the highest price.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hzcUGyngjw_-iDgQnzUF7w.png" /></figure><p>The subquery (SELECT product_id FROM products WHERE price = ( SELECT MAX(price) FROM products ); retrieves the product ID with the highest price from the “products” table. The main query joins the “customers,” “orders,” “order_items,” and the subquery result based on their respective relationships.</p><h3>Conclusion :</h3><p>This SQL case study highlights the practical application of PostgreSQL and SQL functionalities in analyzing sales data for Tiny Shop. By utilizing various SQL techniques, we can gain valuable insights. Moreover, I was able to practice SQL queries in Azure Data Studio.</p><p>Keep SQL querying!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10b636cbe00e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[List of opensource tools to boost data analysis with Python Pandas library]]></title>
            <link>https://medium.com/@LakshmiKadali/list-of-opensource-tools-to-boost-data-analysis-with-python-pandas-library-4e98a1c20883?source=rss-349841b8a64------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e98a1c20883</guid>
            <dc:creator><![CDATA[Lakshmi Kadali]]></dc:creator>
            <pubDate>Sun, 12 Feb 2023 20:09:10 GMT</pubDate>
            <atom:updated>2023-02-12T20:09:10.372Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*KsVbVaK6Pc3rrGWJ_imBgA.jpeg" /></figure><p>Pandas is a Python library for data analysis. <a href="http://wesmckinney.com/pages/about.html">Wes McKinney</a> started it in 2008 out of a need for a effective and flexible quantitative analysis tool, pandas has grown into one of the most popular Python libraries.</p><p><a href="https://pandas.pydata.org/docs/">pandas documentation - pandas documentation</a></p><p>In my search, I found the following open-source python libraries that will immensely boost your Pandas workflow the moment you start using them.</p><p>pandas-profiling: Generate EDA report of data in one-line of code.</p><ul><li>Link: <a href="https://substack.com/redirect/ab131132-bcfa-45bd-bd46-d93346c6f6a3?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/pd-profiling</a></li></ul><p>D-Tale: Visualizer for pandas dataframe.</p><ul><li>Link: <a href="https://substack.com/redirect/73ec7c75-1288-4ca0-bf81-cb7181ea003c?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/py-dtale</a></li></ul><p>PandasML: Pandas, sklearn and matplotlib integrated.</p><ul><li>Link: <a href="https://substack.com/redirect/7de6bb6a-f192-4513-887b-f07972f96625?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/pandasml</a></li></ul><p>Jupyter-Datatables: Enrich the default preview of a DataFrame in jupyter notebook.</p><ul><li>Link: <a href="https://substack.com/redirect/deafd974-64ba-4854-ac54-ba3fc5c605d6?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/jupy-dtables</a></li></ul><p>Pandera: Provides a flexible and expressive API for performing data validation on dataframe-like objects to make data processing pipelines more readable and robust.</p><ul><li>Link: <a href="https://pandera.readthedocs.io/en/stable/#">https://pandera.readthedocs.io/en/stable/#</a></li></ul><p>SummaryTools: Boost the describe() method in Pandas.</p><ul><li>Link: <a href="https://substack.com/redirect/1bda78ce-58e3-4c9e-95a8-e95f29416af6?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/summarytools</a></li></ul><p>Sidetable: Charge the value_counts() method in Pandas.</p><ul><li>Link: <a href="https://substack.com/redirect/7bee70a0-85f5-4b23-b226-f46c9e7095d1?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/py-sidetable</a></li></ul><p>Sketch: Generate code/insights about data by asking questions in natural language.</p><ul><li>Link: <a href="https://substack.com/redirect/e8604512-7a90-4bba-b54d-5c84e50a535f?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/py-sketch</a></li></ul><p>Deepchecks: Generate a comprehensive validation report of your data.</p><ul><li>Link: <a href="https://substack.com/redirect/25a5d38b-0536-4068-b91f-77cf7192b3e3?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/deepchks</a></li></ul><p>Pandas Flavor: Extend Pandas to attach methods to the dataframe object.</p><ul><li>Link: <a href="https://substack.com/redirect/a11d0688-aca4-4708-a432-228d35413804?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/pd-flavor</a></li></ul><p>Pandarallel: Parallelize Pandas across multiple CPU cores.</p><ul><li>Link: <a href="https://substack.com/redirect/f3c667a6-594d-48f6-b39d-c3af005525df?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/pandarallel</a></li></ul><p>Geopandas: Work with Geospatial data in Pandas.</p><ul><li>Link: <a href="https://substack.com/redirect/fc472610-94f7-4cdd-8b4e-dafb438716b4?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/geo-pd</a></li></ul><p>DuckDB: Run SQL queries on dataframes.</p><ul><li>Link: <a href="https://substack.com/redirect/6fa7bf8e-66dc-4cef-a92e-0fed8204af4f?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/duckdb</a></li></ul><p>Modin: Boost Pandas’ performance up to 70x by modifying the import.</p><ul><li>Link: <a href="https://substack.com/redirect/2c366973-530c-4705-b349-4ed95a15410a?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/modin-guide</a></li></ul><p>PivotTableJS: Create pivot tables by using drag and drop functionality.</p><ul><li>Link: <a href="https://substack.com/redirect/3325e9b2-1b46-440b-a7c2-7d28f6629570?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/pivottablejs</a></li></ul><p>Missingno: Visualize missing values in your dataset.</p><ul><li>Link: <a href="https://substack.com/redirect/b5b75a35-0216-4e09-bc89-096d4e2680cc?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/py-missingno</a></li></ul><p>Pandas Alive: Create animated charts for pandas dataframes.</p><ul><li>Link: <a href="https://substack.com/redirect/1dee9e7b-1ef9-456b-a9c0-6d34d1d6db6d?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/pd-alive</a></li></ul><p>Skimpy: Supercharge the describe() method in Pandas.</p><ul><li>Link: <a href="https://substack.com/redirect/85a9a2b1-946e-4104-ab65-1ab8a045e6b3?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/py-skimpy</a></li></ul><p>Pandas-log: Debug pandas pipeline using step-by-step logging.</p><ul><li>Link: <a href="https://substack.com/redirect/85517045-6eed-4cb6-9f6b-613d269c56d9?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/py-log</a></li></ul><p>tsflex: Process time series and perform feature extraction.</p><ul><li>Link: <a href="https://substack.com/redirect/febd5ff1-e122-4797-bdcb-976cd67d51fb?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/tsflex</a></li></ul><p>Mars: A tensor-based framework for scaling numpy, pandas, scikit-learn, and Python functions.</p><ul><li>Link: <a href="https://substack.com/redirect/a59d8052-7905-43e4-84c8-79ee0e47b341?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/py-mars</a></li></ul><p>nptyping: Apply type hints for Pandas data frames.</p><ul><li>Link: <a href="https://substack.com/redirect/4b2dd702-df46-492f-bd9f-a922b6bef661?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/nptyping</a></li></ul><p>popmon: Profile your data to determine its stability.</p><ul><li>Link: <a href="https://substack.com/redirect/dfc38211-c321-4400-b9db-eb5f0b13b71f?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/py-popmon</a></li></ul><p>Gspread-pandas: Interact with Google sheets through pandas dataframes.</p><ul><li>Link: <a href="https://substack.com/redirect/ee937350-b95c-433b-ba0c-f14c19553e98?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/pd-gsheets</a></li></ul><p>pdpipe: Create pandas pipeline easily and intuitively.</p><ul><li>Link: <a href="https://substack.com/redirect/e596eb25-063b-434a-ada6-a03b475ee01b?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/py-pdpipe</a></li></ul><p>PrettyPandas: Prettify the dataframe when printed.</p><ul><li>Link: <a href="https://substack.com/redirect/dfc1e2c4-d2e6-4f73-bfe2-c7b860cec0fb?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/PrettyPandas</a></li></ul><p>Dora: An intuitive API for data cleaning, processing, feature selection, visualization, etc.</p><ul><li>Link: <a href="https://substack.com/redirect/4a742112-4805-493e-8415-e477399693a9?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/py-dora</a></li></ul><p>Pandapy: The speed of NumPy combined with Pandas’ elegance.</p><ul><li>Link: <a href="https://substack.com/redirect/566652ab-becf-4aca-82db-30ad282e4b7c?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/pandapy</a></li></ul><p>PyJanitor: A clean API for cleaning data.</p><ul><li>Link: <a href="https://substack.com/redirect/4d4c72ac-57cb-43ea-a4ce-ff3577c5a821?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/pyjanitor</a></li></ul><p>swifter: Speed-up the apply() method in Pandas.</p><ul><li>Link: <a href="https://substack.com/redirect/b0d23fb1-2732-4fd9-9564-730f08b64ca4?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/py-swifter</a></li></ul><p>Mito: Analyze data in Jupyter by editing a spreadsheet.</p><ul><li>Link:<a href="https://substack.com/redirect/faa3342b-5dbd-42ee-a8b4-289ff69d6e9c?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g"> https://bit.ly/mito-ds</a></li></ul><p>Visual Python: GUI-based Python code generator for data science</p><ul><li>Link: <a href="https://substack.com/redirect/f9c13f18-110f-4198-b543-6dc3bd1212fd?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/visual-py</a></li></ul><p>tqdm: Add progress bars to Pandas methods.</p><ul><li>Link: <a href="https://substack.com/redirect/dcc6bf67-8646-4dd9-8162-0b184ace4dc5?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/tqdm-pd</a></li></ul><p>Lux: Automatic data visualization.</p><ul><li>Link: <a href="https://substack.com/redirect/0d1f71b3-3e08-4130-a998-5d41ced93841?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/pd-lux</a></li></ul><p>AutoClean: Automated data preprocessing &amp; cleaning.</p><ul><li>Link: <a href="https://substack.com/redirect/8c9bc102-c0f9-406e-8a0d-f231c74f7072?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/py-autoclean</a></li></ul><p>pytablewriter: Write a dataframe in various formats: AsciiDoc / CSV / HTML / JSON / LaTeX / Markdown / Excel / TOML / TSV / YAML, etc.</p><ul><li>Link: <a href="https://substack.com/redirect/559d6a66-49a4-4b91-8e2d-d988e702e5a3?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/pytablewriter</a></li></ul><p>itables: Pandas dataframes as interactive datatables.</p><ul><li>Link: <a href="https://substack.com/redirect/47aef467-132d-49f0-b4c7-7f60137c060e?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/itables</a></li></ul><p>PandasGUI: A GUI for Pandas dataframes.</p><ul><li>Link: <a href="https://substack.com/redirect/5efcdfa4-ecbb-4176-8910-530f05f6535f?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/PandasGUI</a></li></ul><p>tabula-py: Extract table from PDF into Pandas dataframe.</p><ul><li>Link: <a href="https://substack.com/redirect/78a79be4-6e2a-4004-b02c-0c5637106bbb?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/tabulapy</a></li></ul><p>Pingouin: Perform statistical testing on Pandas dataframe.</p><ul><li>Link: <a href="https://substack.com/redirect/1f279f78-7fc4-4f26-9561-24f1483b1af3?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/pypingouin</a></li></ul><p>Dexplot: Create many types of beautiful data visualizations with a simple, consistent, and intuitive API.</p><ul><li>Link: <a href="https://substack.com/redirect/7746fb67-3aca-4222-a515-4000c59d5cfb?j=eyJ1IjoiMjE5anF5In0.hV4AbmX97aK5ekEE8UX6EvvtfOlqa6rD3uEs97Ea90g">https://bit.ly/dexplot</a></li></ul><p>A huge shout out to the creators of these libraries. These libraries really increases pandas usability. There might be many more libraries to make the tabular datasets easy to analyze in Python.</p><p>Happy data exploring everyone!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*oJwImXIdksNBJ1ocRPNurg.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e98a1c20883" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[VPC Peering using AWS console]]></title>
            <link>https://medium.com/@LakshmiKadali/vpc-peering-using-aws-console-5132848b2fc1?source=rss-349841b8a64------2</link>
            <guid isPermaLink="false">https://medium.com/p/5132848b2fc1</guid>
            <dc:creator><![CDATA[Lakshmi Kadali]]></dc:creator>
            <pubDate>Wed, 02 Nov 2022 05:58:15 GMT</pubDate>
            <atom:updated>2022-11-02T05:58:15.282Z</atom:updated>
            <content:encoded><![CDATA[<p>In this quick project I will enable private connection between two VPCs by creating VPC peering in the AWS console. Let’s get started!</p><p>You might be wondering what is VPC Peering?</p><p>A VPC peering connection is a networking connection between two VPCs that enables you to route traffic between them privately. Instances in either VPC can communicate with each other as if they are within the same network. You can create a VPC peering connection between your own VPCs, with a VPC in another AWS account, or with a VPC in a different AWS Region.</p><p>AWS uses the existing infrastructure of a VPC to create a VPC peering connection; it is neither a gateway nor an AWS Site-to-Site VPN connection, and does not rely on a separate piece of physical hardware. There is no single point of failure for communication or a bandwidth bottleneck.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*ugn44f-Csi8eeZ1dWpqcAQ.png" /><figcaption>VPC peering connection</figcaption></figure><h4>Objectives of this project:</h4><p> 1. Create two separate VPCs (VPC A and VPC B)<br> 2. Create Private Subnet in VPC A<br> 3. Create Public Subnet in VPC B<br> 4. Create IGW and attach to VPC B<br> 5. Create Route Table in VPC A<br> 6. Create Route Table in VPC B<br> 7. Create Security Group in VPC A<br> 8. Create Security Group in VPC B<br> 9. Launch EC2 instance in VPC A<br> 10. Launch EC2 Bastion Instance in VPC B<br> 11. Create VPC peering between VPC A and VPC B<br> 12. Update both Route Tables to select Peering connection<br> 13. Testing by pinging EC2 instance in the VPC-A private subnet</p><h4>1. Create two separate VPCs (VPC A and VPC B)</h4><h4>VPC-A</h4><p>Open the Amazon VPC console, in VPC setting select <strong><em>VPC only</em></strong></p><p>Provide Name : <strong><em>VPC-A</em></strong></p><p>In IPv4 CIDR block select IPv4 CIDR manual input <strong><em>10.0.0.0/16</em></strong></p><p>In tag — <strong><em>Key = Name , Value = VPC-A</em></strong></p><p>Leave all options as default and create VPC</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*nbgS7ygAeOAX4WtoP06YFw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qDmdHtxJr1lr3ZQHMEzBOw.png" /></figure><h4>VPC-B</h4><p>Open the Amazon VPC console, In VPC setting select <strong><em>VPC only</em></strong></p><p>provide Name <strong><em>VPC-B</em></strong></p><p>In IPv4 CIDR block select IPv4 CIDR manual input <strong><em>20.0.0.0/16</em></strong></p><p>In tag –<strong><em>Key=Name , Value= VPC-B</em></strong></p><p>Leave all options as default and create VPC</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*iIRzoG6szsLg3wYhkIKjRg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vlc9vtePKWDOMo4IkyEr9w.png" /></figure><h4>2. Create Private Subnet in VPC A</h4><p>In Create Subnet, Select <strong><em>VPC-A</em></strong></p><p>In Subnet setting provide subnet name <strong><em>Lakshmi- VPC-A-private</em></strong></p><p>Select Availability zone <strong><em>us-west-2a</em></strong></p><p>IPv4 CIDR block <strong><em>10.0.0.0/24</em></strong></p><p>Create Subnet</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*3ISFsPScP0kslmN0Hf2H0Q.png" /></figure><h4>3. Create Public Subnet in VPC B</h4><p>In Create Subnet, Select <strong><em>VPC-B</em></strong></p><p>In Subnet setting provide subnet name <strong><em>Lakshmi-VPC-B-public</em></strong></p><p>Select Availability zone <strong><em>us-west-2a</em></strong></p><p>IPv4 CIDR block <strong><em>20.0.0.0/24</em></strong></p><p>Create Subnet</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*I3XkJgBpFO_tPlrNaxnTFg.png" /></figure><h4>4. Create IGW and attach to VPC B</h4><p>In the VPC console, select internet gateway, click on <strong><em>create internet gateway.</em></strong></p><p>Provide Name tag: <strong><em>Lakshmi-IGW</em></strong></p><p>click <strong><em>create internet gateway</em></strong></p><p>After creating internet gateway attach it to VPC-B</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*X9YldxpKrWA6WNzUr8hLVw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xN2cuhMbHHElC9bFWFgDVg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*-QrKbxD2_ki3fzX5Cy96GQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xGKA0cNPjOvTmF7YH2oMZA.png" /></figure><h4>5. Create Route Table in VPC A</h4><p>Go to VPC and select Create <strong><em>Route Table</em></strong> <br>Provide name — <strong><em>VPC-A-PrivateRoute</em></strong><br>Select <strong><em>VPC-A</em></strong> in VPC option<br>Go to subnet association attach subnet created in private subnet<br>Create</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/1*RfiKOG967Hl0pCaB-cNQPQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P2Pk4NnAKbsYyhUy_m_7yQ.png" /></figure><h4>6. Create Route Table in VPC B</h4><p>Go to VPC and select Create <strong><em>Route Table </em></strong><br>Provide name — <strong><em>VPC-B-PublicRoute</em></strong></p><p>Select <strong><em>VPC-B</em></strong> in VPC option<br>Create Routetable<br>Select Route Table created in above step <br>Go to Routes and add routes <br><strong><em>In destination select — 0.0.0.0/0<br>In Target select Internet Gateway </em></strong><br>In subnet association <br>Click edit subnet association and select public subnet –created in public subnet<br>Save the changes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*jvRM5iY5gYlErNixnOv-RA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vo52wz_JB1foNZ8hw0qACw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v0c794zl-cYg11_wz8weLg.png" /></figure><h4>7. Create Security Group in VPC A</h4><p>Open the Amazon VPC console.<br>In the navigation pane, choose <strong><em>Security Groups</em></strong><br>Choose <strong><em>Create security group</em></strong>.<br>In Security group name enter name —<strong><em> SSHaccess-VPC-A</em></strong><br>Enter description <br>Select VPC — <strong><em>VPC-A</em></strong><br>In Inbound rules open <strong><em>SSH port</em></strong> <br>In tag — <strong><em>Key=Name , Value= SSHaccess</em></strong><br>Create Security group</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_6ZJ775vMHrcvPChjCJ_7w.png" /></figure><h4>8. Create Security Group in VPC B</h4><p>Open the Amazon VPC console.<br>In the navigation pane, choose <strong><em>Security Groups</em></strong><br>Choose <strong><em>Create security group</em></strong>.<br>In Security group name enter name — <strong><em>SSHaccess-VPC-B</em></strong><br>Enter description <br>Select VPC — <strong><em>VPC-B</em></strong><br>In Inbound rules open <strong><em>SSH port </em></strong><br>In tag — <strong><em>Key=Name ,Value= SSHaccess</em></strong><br>Create Security group</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pWQYpvCzixMXx4da7ihyFA.png" /></figure><h4>9. Launch EC2 instance in VPC A</h4><p>Launch one EC2 Instance in VPC-A in private subnet <br>Select <strong><em>AMI</em></strong><br>In Instance type select <strong><em>t2.micro</em></strong><br>In Configure Instance Details select <strong><em>VPC-A</em></strong> in network <br>In subnet select — <strong><em>private subnet</em></strong> <br>Auto-assign public IP — should be selected as <strong><em>Disable</em></strong><br>In the Add Tags — give name to your EC2 machine <strong><em>Instance-VPC-A</em></strong><br>In security group -attach security group created above <strong><em>SSHaccess-VPC-A</em></strong><br>Select <strong><em>Keypair</em></strong> <br>Launch</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6g1uz3bENkl2QiOGiouDhw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UTKJeuN4iiv-xA4a57S0-Q.png" /></figure><h4>10. Launch EC2 Bastion Instance in VPC B</h4><p>Launch one EC2 Instance in <strong><em>VPC-B</em></strong> public subnet <br>Select <strong><em>AMI</em></strong><br>In Instance type select <strong><em>t2.micro</em></strong><br>In Configure Instance Details select <strong><em>VPC-B</em></strong> in network <br>In subnet select — <strong><em>public subnet</em></strong> <br>Auto-assign public IP — should be selected as <strong><em>Enable</em></strong><br>In the Add Tags — give name to your EC2 machine <strong><em>Bastion-Instance-VPC-B</em></strong><br>In security group attach security group created above <strong><em>SSHaccess-VPC-B</em></strong><br>Select <strong><em>Keypair</em></strong> <br>Launch</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*srW0ZGFJiExgqi_ybWjQTg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AEe0FOv9rtwZBtT17ntLwQ.png" /></figure><h4>11. Create VPC peering between VPC A and VPC B</h4><p>Create VPC Peering between VPC-A and VPC-B <br>Go to VPC console — Select <strong><em>Peering connection </em></strong>— create Peering connection <br>Give Name — Select <strong><em>Requestor</em></strong> and <strong><em>Accepter</em></strong> VPC<br>Create</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*vSLIMABaa2WtauRKMSCbWw.png" /></figure><p>Once Peering is created successfully, accepter need to accept the peering request<br>Go to <strong><em>VPC peering — select action — Accept request</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cANyb3UF5bXJ-oGjYWssfg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DYvs-htfuKTr-uBXkuMD3A.png" /></figure><h4>12. Update both Route Tables to select Peering connection</h4><p>Go to Route table created in VPC-A<br>Go to Routes and add routes <br>In destination select — <strong><em>CIDR range of VPC — VPC-B</em></strong><br>In Target select <strong><em>Peering connection</em></strong><br>Save</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uZuWUmAwXMzypFpySvUknw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EuOgbiKwGVjct-6Y_woBLw.png" /></figure><p>Go to Route table created in VPC-B<br>Go to Routes and add routes <br>In destination select — <strong><em>CIDR range of VPC — VPC-A</em></strong><br>In Target select <strong><em>Peering connection</em></strong><br>In destination select — <strong><em>0.0.0.0/0</em></strong><br>In Target select <strong><em>Internet Gateway</em></strong><br>Save</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VUBBulQ72Z6ccR79Kudb0A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2ypCqnKn_3TheE92GeF1Vw.png" /></figure><h4>13. Testing by pinging EC2 instance in the VPC-A private subnet</h4><p><em>Note — To check ping connectivity open ICMP port in Security group</em></p><p>If you are in windows system, open putty. SSH into your Bastion instance using putty and keypair. Ping the private instance. If your private instance is pinging, meaning VPC peering is established. Let’s go ahead and test it out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8xmQVN2unefw3kqxfFgy1A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*052FPmZyGtaaACaf-6cwOg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*l4Vb5yj5i5aq-znlBZD4gw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*maFdkhu2J5bTg8rfkx6pHg.png" /></figure><p>Testing is successful! Pinging is working for private instance in VPC-A. This means VPC peering is established and connection between two different VPCs is enabled.</p><h4>References</h4><p><a href="https://docs.aws.amazon.com/vpc/latest/userguide/vpc-peering.html">Connect VPCs using VPC peering</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FDLB2yNDyFmM%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DDLB2yNDyFmM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FDLB2yNDyFmM%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/257e2b6e947bcec7bd9414a367d9c9f7/href">https://medium.com/media/257e2b6e947bcec7bd9414a367d9c9f7/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5132848b2fc1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How do I use webhooks to publish Amazon SNS messages to Slack channel?]]></title>
            <link>https://medium.com/@LakshmiKadali/how-do-i-use-webhooks-to-publish-amazon-sns-messages-to-slack-channel-74cdadd781bc?source=rss-349841b8a64------2</link>
            <guid isPermaLink="false">https://medium.com/p/74cdadd781bc</guid>
            <dc:creator><![CDATA[Lakshmi Kadali]]></dc:creator>
            <pubDate>Sat, 29 Oct 2022 06:40:19 GMT</pubDate>
            <atom:updated>2022-10-29T06:46:08.656Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently I have joined a slack channel, So I was wondering how do I send notifications from Amazon Simple Notification Service (Amazon SNS) to a slack webhook? I would like to use webhooks to connect my AWS environment to my Slack channel and will be using two AWS services; Amazon SNS and AWS Lambda.</p><p>What is Slack webhook?</p><p>Incoming Webhooks are <strong>a simple way to post messages from external sources into Slack</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/124/1*iM9k7IUTevQOG9v8OhOItQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/123/1*N2nqN65AQygEckH09irw1g.png" /></figure><h3>How do I use Webhooks in Slack?</h3><p><strong>Set up incoming webhooks:</strong></p><ol><li>Create a new Slack app in the workspace where you want to post messages.</li><li>From the Features page, toggle Activate Incoming Webhooks on.</li><li>Click Add New Webhook to Workspace.</li><li>Pick a channel that the app will post to, then click Authorize.</li><li>Use your Incoming Webhook URL to post a message to Slack.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*823OnFjauyJ1L_RLMiIiLg.png" /></figure><h3>Create an SNS topic</h3><ol><li>Sign in to the <a href="https://console.aws.amazon.com/sns/home">Amazon SNS console</a>. On the <strong>Topics</strong> page, choose <strong>Create topic</strong>. On the <strong>Create topic</strong> page, in the <strong>Details</strong> section, do the following:</li></ol><p>2. For <strong>Type</strong>, choose a topic type (<strong>Standard</strong> or <strong>FIFO</strong>). I chose standard.</p><p>3. Enter a <strong>Name</strong> for the topic: LakshmiSlackWebhooks</p><p>4. Leave everything else to default. Click Create Topic</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CYeTwRDziT84gaSKAYSV0w.png" /></figure><h3>Create a Lambda function</h3><p><strong>To create a Lambda function with the console</strong></p><ol><li>Open the <a href="https://console.aws.amazon.com/lambda/home#/functions">Functions page</a> of the Lambda console.</li><li>Choose <strong>Create function</strong>.</li><li>Under <strong>Basic information</strong>, do the following:</li><li>For <strong>Function name</strong>, enter LakshmiSlackWebhooks.</li><li>For <strong>Runtime</strong>, confirm that <strong>python</strong> is selected. Note that Lambda provides runtimes for .NET (PowerShell, C#), Go, Java, Node.js, Python, and Ruby.</li><li>Choose <strong>Create function</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oyuRGxp-qmsTbqO8g-dBkg.png" /></figure><h3>Invoke the Lambda function</h3><p><strong>To invoke a function</strong></p><ol><li>After selecting your function in Lambda console, choose the <strong>Test</strong> tab.</li><li>In the <strong>Test event</strong> section, choose <strong>New event</strong>. In <strong>Template</strong>, choose <strong>SNS Topic Notification</strong> option. Enter a <strong>Name</strong> for this test</li><li>Choose <strong>Save changes</strong>, and then choose <strong>Test</strong>. Lambda runs your function on your behalf. The function handler receives and then processes the sample event. If the test invocation succeeds with a 200 status code, then the Amazon SNS notification message is accepted by your webhook, which delivers it to the corresponding channel. If the invocation fails with a 4xx status code, then check the webhook URL to verify that the key-value pair is correct and accepted by your destination webhook.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D2uUvlVfF4W4Rx-J6vMRgg.jpeg" /></figure><p>Slack Incoming Webhooks expect a JSON request with a message string corresponding to a “text” key</p><p>Example Python code snippet for Slack</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WKXBHfc2spvLPbtvUQLPag.png" /></figure><h3>Add an SNS topic trigger to your Lambda function</h3><p>After sending an SNS message to your webhook as a test in the Lambda console, subscribe your function to your SNS topic. To configure this from the Lambda console, add an SNS topic trigger:</p><ol><li>On the <a href="https://console.aws.amazon.com/lambda/home#/functions">Functions page</a> of the Lambda console, choose your function.</li><li>Under Function overview, choose Add trigger. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-invocation.html">Invoking Lambda functions</a>.</li><li>Under Trigger configuration, choose Select a trigger. Then, choose SNS.</li><li>For SNS topic, choose the SNS topic that you created earlier.</li><li>Choose Add.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*QVaEP3p3tjn8lXfOa6metQ.png" /></figure><p>If you refresh your SNS topic page, you will see your subscriptions updated: Lambda endpoint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*XtAFjwZBTcqmeHplqAZ4tQ.png" /></figure><h3>Publish messages to Amazon SNS topics using the AWS Management Console</h3><ol><li>Sign in to the <a href="https://console.aws.amazon.com/sns/home">Amazon SNS console</a>.</li><li>In the left navigation pane, choose <strong>Topics</strong>.</li><li>On the <strong>Topics</strong> page, select a topic, and then choose <strong>Publish message</strong>.</li><li>The console opens the <strong>Publish message to topic</strong> page.</li><li>In the <strong>Message details</strong> section, do the following: Enter a message <strong>Subject LakshmiSlackWebhooks</strong></li><li>In the <strong>Message body</strong> section, do one of the following: Choose <strong>Identical payload for all delivery protocols</strong>, and then enter a message: Lakshmi is building AWS projects.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*2raYrG66I_sraslu9krd8Q.png" /></figure><p>7. Choose <strong>Publish message</strong>. The message is published to the topic, and message is delivered to the Slack channel. I have attached a pic for your reference. Great turnout!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f7VNHbZGUiiPBckiuiaebg.jpeg" /></figure><p>You can send notifications not only for Slack but also Microsoft Teams channels, Discord, Amazon Chime.</p><h3>References:</h3><p><a href="https://aws.amazon.com/premiumsupport/knowledge-center/sns-lambda-webhooks-chime-slack-teams/#">Use webhooks to publish Amazon SNS messages</a></p><blockquote>Thanks for reading my article about How do I use webhooks to publish Amazon SNS messages to Slack channel?</blockquote><p>See you in the next article! Happy Cloud computing!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74cdadd781bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Host your resume on a static webpage using S3 with CloudFront and Origin Access Identity]]></title>
            <link>https://medium.com/@LakshmiKadali/host-your-resume-on-static-webpage-using-s3-with-cloudfront-and-origin-access-identity-f57a58e75ad8?source=rss-349841b8a64------2</link>
            <guid isPermaLink="false">https://medium.com/p/f57a58e75ad8</guid>
            <dc:creator><![CDATA[Lakshmi Kadali]]></dc:creator>
            <pubDate>Fri, 28 Oct 2022 06:42:05 GMT</pubDate>
            <atom:updated>2022-10-29T01:49:08.402Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Do you want to restrict public access to S3 content and make it only accessible via a cloud front?</strong></p><p>In this project, we will create an AWS CloudFront Distribution which will serve static content like resume or images or videos hosted on AWS S3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*fgS7cxGGt-yRVW5LFv0w8w.jpeg" /><figcaption>Amazon S3 content access to users using Amazon CloudFront OAI</figcaption></figure><p><strong>What is Amazon S3?</strong></p><p>Amazon Simple Storage Service is a service offered by Amazon Web Services that provides <strong>object storage</strong> through a web service interface.</p><p>What is AWS CloudFront?</p><p>Amazon CloudFront is a content delivery network operated by Amazon Web Services. Content delivery networks provide a globally-distributed network of proxy servers that cache content, such as web videos or other bulky media, more locally to consumers, thus improving access speed for downloading the content.</p><p>What is AWS CloudFront Origin Access Identity(OAI)?</p><p>An origin access identity is <strong>a special CloudFront user that you can associate with Amazon S3 origins, so that you can secure all or just some of your Amazon S3 content</strong>. We can restrict public access to objects in the S3 bucket and we grant permission to the OAI to distribute the content through CloudFront to our visitors from around the world.</p><p>The steps we follow to achieve this solution are:</p><ol><li>Create the S3 bucket with default settings and upload an resume file (resume file will not be accessible directly from S3).</li><li>Create a CloudFront distribution with the S3 bucket as its origin (resume file still cannot be accessed).</li><li>Set up the OAI, and configure a policy that permits CloudFront to serve the resume file (now it all works).</li></ol><p>Prerequisites:</p><ul><li>Resume file for uploading to S3 bucket.</li><li>User has AWS S3, AWS CloudFront access.</li></ul><h4>Step 1 : Create S3 bucket and upload file</h4><p>From the AWS Management Console, search for “S3”. In the S3 console page, select create bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f31paV7qb_nM3GOYypURig.png" /></figure><p>Choose a globally unique bucket name. In this case I have selected name <strong><em>lk-s3-cloudfront-oai</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*OYmT8nydzidnY-5N1kMsug.png" /></figure><p>Skip through till the bucket has been created while keeping the defaults the same.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*QLBh66MYhpGw7b01J5I0WQ.png" /></figure><p>Back on the s3 console page, click on the name of the newly created bucket and upload your files to the bucket by selecting upload.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n2QozmtMZn5XSlpJEJGJFQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/1*rFD1VXnP9EBvz1PkTd9GzA.png" /></figure><p>When we attempt to reach the resume.html file in a browser, we get an Access Denied error as expected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ydd0oOqtchAby5WTea-anA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*roMluM-AqQ5h-yBFIyEZ7g.png" /></figure><h4>Step2 : Create a CloudFront distribution with the S3 bucket as its origin</h4><p>In CloudFront, create a Web distribution and select the S3 bucket as the origin. At this stage, leave everything else as the default settings, scroll to the bottom and create the distribution. You’ll have to wait until it’s deployed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*311p_1z285ZdxyXxfRRsjg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*34al109jgJqpmCvMc89OLQ.png" /></figure><p>Once its status has changed to “Deployed”, it’s ready. At this stage, the resume file is not accessible on the CloudFront domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3KeEJJ1HSpnKgdUjt2PTJA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b8l1U2f2eu4mPdU36LD0nQ.png" /></figure><h4>Step3 : Set up the OAI, and configure a policy that permits CloudFront</h4><p>Create the Origin Access Identity and configure the policy in S3 that grants the OAI permission to access objects.</p><p>Since we’re doing this in two stages, we have to edit our existing Origin to access the OAI option; however, usually you would do this at the same time as creating your Web distribution and it’s on the initial list of options.</p><p>On the next page, select <strong>Restrict Bucket Access</strong>, allow Amazon to <strong>Create a New Identity</strong>, and choose <strong>Yes, Update Bucket Policy</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*2pa5wTHD9oi7cbA2oyfkwA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q_dbIPfc4yGf07nfoMr_9A.png" /></figure><p>You’ll have to wait until it’s deployed. Go grab a snack or coffee! Once the status changes to “Deployed” again, and then refresh the page and the resume file will now be displayed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xD77oj0e43tdbLz4eAPDNQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9IPNGtTehpEhvYP7C2I1gQ.png" /></figure><p>Viola!! We are now using CloudFront edge locations to serve our static content uploaded to S3. And no one can hit the content in S3 directly. Using S3 as a static site is very cost effective because it doesn’t require server-side processing.</p><h3>Reference:</h3><p><a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-cloudfrontoriginaccessidentity.html#:~:text=An%20origin%20access%20identity%20is,the%20Amazon%20CloudFront%20Developer%20Guide.">AWS CloudFront Origin Access Identity</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f57a58e75ad8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Highly Available 3-Tier Architecture using AWS console]]></title>
            <link>https://medium.com/@LakshmiKadali/highly-available-3-tier-architecture-using-aws-console-90c37500309?source=rss-349841b8a64------2</link>
            <guid isPermaLink="false">https://medium.com/p/90c37500309</guid>
            <dc:creator><![CDATA[Lakshmi Kadali]]></dc:creator>
            <pubDate>Sun, 16 Oct 2022 21:32:46 GMT</pubDate>
            <atom:updated>2022-10-16T21:32:46.383Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article I will build a highly available 3 Tier Architecture using AWS console.</p><p>What is 3-Tier Architecture?</p><p>3-Tier Architecture is used in web-based applications and consists of 3 layers:</p><p>Tier 1 — Presentation Tier</p><p>Tier 2 — Application Tier</p><p>Tier 3 — Data Tier</p><p>1.Presentation Tier or Web Tier or Client Tier : It takes input and provides output to the user. It is the User Interface(UI) of 3-Tier Architecture Application.</p><p>2. Application Tier or Logic Tier : It is the interface between the Web Tier and Database Tier. It facilitates communication between Web Tier and Database Tier.</p><p>3. Database Tier : This is where the actual database resides. For security purposes, the only way to access these databases should be by connecting to them from the application layer.</p><p>****************************************************************************</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/0*WQkoflxw7chcPIks" /></figure><p><em>Note: I have used the open source tool draw.io for the above architecture drawing.</em></p><p>Prerequisites for the 3-Tier architecture:</p><ol><li>AWS Free Tier Account (Caution : Some services may incur charges for this architecture)</li><li>An IAM user with admin level privileges</li></ol><p>Verification for the 3-Tier architecture:</p><ol><li>Verify that you can access the web tier web page from the internet.</li><li>From the web tier, verify that you can ping the application tier by running the ping command from an EC2 instance in the web tier.</li></ol><p>****************************************************************************</p><h3>Objectives for the 3-Tier architecture:</h3><h3>Web Tier:</h3><ol><li>Two public subnets in the VPC.</li><li>Minimum of two EC2 instances with Linux as OS (free tier) in an Auto Scaling Group.</li><li>EC2 Web Server Security Group allowing inbound permission from the internet.</li><li>Either Bootstrap a static web page or create a custom AMI that already includes the static web page.</li><li>A public route table associated with two public subnets.</li></ol><h3>Application Tier:</h3><ol><li>Two private subnets in the VPC.</li><li>Minimum of two EC2 instances with Linux OS (free tier) in an Auto Scaling Group.</li><li>EC2 Application Server Security Group allowing inbound permission from the Web Server Security Group.</li><li>A private route table associated with two private subnets.</li></ol><h3>Database Tier:</h3><ol><li>Two private subnets in the VPC.</li><li>Use a free Tier MySQL RDS Database.</li><li>The Database Security Group should allow inbound traffic for MySQL from the Application Server Security Group.</li><li>A private route table associated with two private subnets.</li></ol><p>****************************************************************************</p><h3>Step 1: Create a custom VPC with 2 AZs, 1 public subnet per AZ and 2 private subnets per AZ</h3><ol><li>Create a VPC with Name: Lakshmi-VPC CIDR range: 10.0.0.0/16 an Internet Gateway , 2 public subnets for the web tier, 2 private subnets for the app tier and 2 private subnets for the DB tier across two AZs (AZ-A: us-west-1a and AZ-B: us-west-1b), a Route Table for the public subnets, private route tables for private subnets.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KnULj67n2NVCjrcQ" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Fw_8Bb7sjWdOFDSJ" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/0*3xrCSc9Aem7oARQi" /></figure><p>2. VPC has been created. Check the details of the VPC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Im0eADkJgXsidDtA" /></figure><p>3. The following public and private subnets are created in the VPC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/0*_stQ1mcN52zy5G3_" /></figure><p>4.The following public and private route tables are created in the VPC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iAXmx1iFF3e1vZGk" /></figure><p>5. Check the public route table has a route to the Internet Gateway.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-tkK6vENTr-kZqOO" /></figure><p>6. Check each private route table has a route to the Nat Gateway.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7Erg7zOgGkeC7mUH" /></figure><p>****************************************************************************</p><h3>Web Tier</h3><h3>Step 2: Create a Launch Template for the web tier EC2 instances</h3><ol><li>Navigate to EC2 → Launch template → create launch template</li><li>Name the Launch template <strong>LK-Web-Tier-LT</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5FMfGxwxiQuLPmOD" /></figure><p>3. Under quick start → select the Amazon Linux 2 AMI</p><p>4. Instance type : t2.micro</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jTxulh_UuIVQqFGT" /></figure><p>5. Create a security group → Under Inbound security group rules allow SSH and HTTP traffic from anywhere.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*obNUx8HEglp3nZ-a" /></figure><p>6. Under Advanced details → <strong>User data</strong> add bash script to bootstrap each instance</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vQLqgq--sq5pkgmG" /></figure><p>7. Check the Web Tier launch template details</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bJI_scUHM-aRudnD" /></figure><h3>Step 3: Create an Auto Scaling Group</h3><ol><li>Under Actions click on<strong> Create Auto Scaling group</strong></li><li>Give the ASG a name <strong>LK-Web-Tier-ASG </strong>and click Next</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/0*ioxYiiJUjrbpkHtl" /></figure><p>3. Under Network → Select the <strong>Lakshmi-vpc</strong></p><p>4. Under <strong>Availability Zones and subnets</strong> → Select the two public subnets (public-web-A &amp; public-web-B) in AZs <strong>us-west-1a</strong> and <strong>us-west-1b </strong>then click Next</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FBEQ_7d1U46T_wyW" /></figure><p>5. Under Load balancing select <strong>Attach to a new load balancer</strong></p><p>6. Load balancer type: Application Load Balancer → Load balancer name: <strong>LK-Web-Tier-ALB</strong> → Load balancer scheme: Internet-facing → VPC and Availability Zones and subnets have been already selected. They should be the public web tier subnets in the Lakshmi-vpc</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*70Pg0SXqv1ZT91bv" /></figure><p>7. Under Default routing select <strong>Create a target group</strong> → the target group name is the name of the Load balancer</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/0*FmQiisxr8paPptEk" /></figure><p>8. Under Group size set desired capacity:2, minimum capacity: 2 and maximum capacity:5</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lxGQ9B-gkv1ik2gZ" /></figure><blockquote><em>9. Tag new instances with Key: Name , Value: web-tier this way I can identify the instances launched.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kXqr25jLYql6suVx" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JfjmAqgCrA4iYHyf" /></figure><h3>Step 4: Verify that you can access the web tier web page from the internet</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VOol2kPtY9gIB4EY" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*igE-1aRaqy1s00Uq" /></figure><p>Web tier is functioning successfully as desired!</p><p>****************************************************************************</p><h3>App Tier</h3><p><em>Note: For greater redundancy, I could create another NAT Gateway every AZ. However, I will only create the one NAT Gateway in a single availability zone as this saves costs and stays within the scope of this architecture.</em></p><h3>Step 5: Check NAT Gateway and Private Route</h3><ol><li>Navigate to VPC → NAT gateways → Check NAT gateway</li><li>Navigate to VPC → Route Tables → Select the <strong>lk-private-routetable</strong> that was created earlier.</li></ol><p>3. Click on Routes → check routes and make sure Destination: 0.0.0.0/0 and Target: NAT Gateway</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wF6Kk6ZCbAuDlJ7c" /></figure><h3>Step 6: Create a Launch Template for the app tier EC2 instances</h3><ol><li>Name the Launch template <strong>LK-App-Tier-LT</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*f0uATxealUltOaZB" /></figure><p>2. Select the Amazon Linux 2 AMI, Instance type: t2.micro</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6TZCS7RHqPuAJfk7" /></figure><p>3. Create a Security Group to allow inbound SSH and ICMP traffic from the web tier Security Group</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JhS19PNJ-jkexDUH" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6oQkQj2rneDbTjzt" /></figure><h3>Step 7: Create an Auto Scaling Group for the app tier</h3><ol><li>Create an Auto Scaling group → Name: <strong>LK-App-Tier-ASG</strong></li><li>Select Launch template: <strong>LK-App-Tier-LT</strong> then click next</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MZIUre5dVmaAwVT-" /></figure><p>3. Under Network → Select <strong>Lakshmi-VPC</strong>, select the private app tier subnets from the list. Now I will configure another load balancer between the web and application tiers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cpHgcEQ687Mv9zPW" /></figure><h3>Step 8: Configure the internal Application Load Balancer</h3><ol><li>Under Configure advanced options → Select Attach a new load balancer</li><li>Load balancer type: Application Load Balancer, Name: <strong>LK-App-Tier-ALB</strong>, Load balancer scheme: Internal</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HezYbvNuWgP4gJGo" /></figure><p>3. Create a target group → the target group name is the name of the Load balancer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/0*ce9Pgkh3wkp7n1LO" /></figure><p>4. Group size → Desired capacity: 2, Minimum capacity: 2, Maximum capacity: 5 then click next</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pmGD5XM6Peib0jkl" /></figure><p>5. For Tags → Tag new instances → Key: Name Value: app-tier this way I can identify the instances launched</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JzldvTDHy0ezcnOW" /></figure><p>6. Review then click Create Auto Scaling Group</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cOL4E27s1yGQzDeu" /></figure><h3>Step 9: Verify that you can ping the app tier from a web tier EC2 instance</h3><ol><li>SSH into a web tier instance → ping the app-tier EC2 instances from the web tier. We can ping both web tier instances in both AZs and the internal ALB</li></ol><p>ping internal-LK-App-Tier-ALB-9577363.us-west-2.elb.amazonaws.com</p><p>ping 10.0.30.30</p><p>ping 10.0.40.197</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_9gebN_uJHuST5UC" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5S2siI7RAuJBhOAA" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*W7Vdl5IIJH3UJZPx" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9ALy7qo7OegoWb07" /></figure><p>App tier is functioning successfully as desired!</p><p>****************************************************************************</p><h3>Database Tier</h3><h3>Step 10: Create a security group for the database tier</h3><ol><li>Configure the inbound rules to allow MySQL/Aurora traffic on port 3306 from the app tier’s security group; this will allow traffic between the database tier and the application tier.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iOPOIMa2qVD-bWaS" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2WMnuR2vM1DcW3sL" /></figure><h3>Step 11: Create an RDS MySQL database</h3><ol><li>Navigate to the RDS service</li><li>Click on Create a database, choose the free tier</li><li>For options and settings, select the following:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/0*V9YLWaKperszpxuC" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/0*x3KLAO8iJqEVVfnl" /></figure><p>4. In a new tab, navigate to RDS → Subnet groups → Create DB subnet group</p><p>5. Enter the subnet group details, name, description and VPC</p><p>6. Under Add subnets select the AZs us-west-2a and us-west-2b</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*J77QfrowAwoDMfjf" /></figure><p>7. Select the subnets for the DB tier, it is CDIR 10.0.50.0/24 and CIDR 10.0.60.0/24</p><p>8. Click create</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6H29LNCz8BwPhv7y" /></figure><p>9. Now back to creating the RDS database tab; Under connectivity, refresh the section with the refresh button shown below → the subnet group that was created will now appear.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*e_witI5TrveJS08Y" /></figure><p>10. Under Existing VPC security groups, select <strong>LK-DB-Tier-SG</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*81nMpdlg5SIRFN3B" /></figure><p>11. Click create. It may take some time to provision the database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lLj2l7C2L34wtEc7" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IRfvYlINjwFEDpUu" /></figure><p>Database tier is successfully created as desired!</p><p><em>Note: I now have a MySQL RDS database in us-west-2a. However, I only have one database instance in a single Availability Zone. To provide redundancy and high availability, it is best to deploy a standby database instance in a different AZ, I would normally do this in a Dev/Test or a Production environment. Free tier restricts me to using a single DB instance with no standby instance.</em></p><p>****************************************************************************</p><p>References:</p><p><a href="https://www.youtube.com/watch?v=V30UQceo-_o">Architect 3-Tier Apps on AWS</a></p><p><a href="https://insightsoftware.com/blog/5-benefits-of-a-3-tier-architecture/">Benefits of 3-Tier architecture</a></p><p>****************************************************************************</p><p>This concludes my 3-tier highly available architecture using AWS console. I hope you have enjoyed my 3-Tier architecture project! Keep learning!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90c37500309" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>