<?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 Thimitha Gamage on Medium]]></title>
        <description><![CDATA[Stories by Thimitha Gamage on Medium]]></description>
        <link>https://medium.com/@thimitha211?source=rss-8b0cd6c321c4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QV7GjVA1CymUrysG0S2Bxg.jpeg</url>
            <title>Stories by Thimitha Gamage on Medium</title>
            <link>https://medium.com/@thimitha211?source=rss-8b0cd6c321c4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 13:29:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thimitha211/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[Introduction to AWS Cognito for API Authentication]]></title>
            <link>https://medium.com/@thimitha211/introduction-to-aws-cognito-for-api-authentication-2074214f6a94?source=rss-8b0cd6c321c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/2074214f6a94</guid>
            <category><![CDATA[cognito]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Thimitha Gamage]]></dc:creator>
            <pubDate>Mon, 18 Feb 2019 16:41:56 GMT</pubDate>
            <atom:updated>2019-02-18T16:41:56.973Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What is AWS Cognito ?</strong></p><p>Cognito is basically an Identity provider service. It can be used to authenticate and authorize web applications and mobile applications. And it can be used as an Identity broker too.</p><p>Cognito User Pools work as an identity provider. First Create a user pool, add users or user group to a user pool. Then these users can sign into your web or mobile application through AWS Cognito. We can use AWS CLI to test how authentication works after setting up a user pool and integrating it with a API hosted in AWS API Gateway.</p><p><strong>Basic Steps of creating a user pool</strong></p><ol><li>Log In to Amazon Cognito console</li><li>Go to <strong>Mange your user pools</strong></li><li>Give a name to the user pool and go to <strong>Review Defaults</strong> and save the name</li><li>On the <strong>Attributes</strong> page, choose <strong>Email address or phone number</strong> and <strong>Allow email addresses</strong></li><li>Select <strong>Next Step </strong>to save</li><li>Select <strong>Application Client </strong>and add client.</li><li>Select <strong>Review </strong>from the navigation bar on the left.</li><li>Select <strong>Review</strong> and then select <strong>Create Pool</strong></li><li>Then add some users to the created user pool</li></ol><p><strong>Adding Cognito User Pool Authenticator to an API in AWS API Gateway</strong></p><ol><li>Log into AWS API Gateway</li><li>Go to Authorizers under your API</li><li>Go to Create and select Cognito User Pool Authorizer .</li><li>Select the cognito region and select the user pool which you created earlier</li><li>Choose create</li></ol><p>Then go to an api resource, select a method and go to method request. Select Authorization to use the user pool we created from the drop down list. And redeploy the API.</p><p>Now that resource will be using cognito user pool authentication.</p><p>To test it use the following cli command. &lt;user-pool-id&gt; is the id of the cognito user pool we created. &lt;app-client-id&gt; is the client id of the app we added to the user pool.</p><pre>aws cognito-idp admin-initiate-auth --user-pool-id &lt;user-pool-id&gt; --client-id &lt;app-client-id&gt; --auth-flow ADMIN_NO_SRP_AUTH --auth-parameters USERNAME=&lt;username&gt;,PASSWORD=&lt;password&gt;</pre><p>Get the IdToken from the response and use it as the Autherization header value when sending a request to the API resource we added the cognito authorizer. Without it the API will return “401 Unauthorized”. With the Autherization header it will return “200” and the expected response.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2074214f6a94" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Glimpse Into AWS Cloud Databases]]></title>
            <link>https://medium.com/@thimitha211/a-glimpse-into-aws-cloud-databases-931c9ca6bbcf?source=rss-8b0cd6c321c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/931c9ca6bbcf</guid>
            <category><![CDATA[dms]]></category>
            <category><![CDATA[mitrainnovation]]></category>
            <category><![CDATA[rds]]></category>
            <category><![CDATA[dynamodb]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Thimitha Gamage]]></dc:creator>
            <pubDate>Tue, 20 Feb 2018 04:45:59 GMT</pubDate>
            <atom:updated>2018-02-20T04:47:59.545Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>“Amazon”</strong></p><p>A few years back, when you heard the name “Amazon” you would have thought about an online bookstore. In those days if you heard something called Amazon Web Services, or AWS Databases you would have probably laughed back. However, since those days Amazon has come a long way from being an online bookstore to now; an industry-leading giant in web services or as a web infrastructure provider. In today’s world, there are millions of web applications using some sort of service provided by Amazon. Amazon has become the gold standard in in providing number of the provision of web services.</p><p>AWS Databases is one such service that has become more and more very popular in today’s technological world. They offer a huge collection of different database solutions for different needs. AWS provides fully managed database services including traditional relational databases, non-relational databases, in-memory data stores for caching real-time data, graph databases, and much more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DHZsi-9o3XDVOTSMHG7m5w.png" /></figure><p>This blog post is going to focus on the most widely used AWS Database Services.</p><h3>AWS Relational Database Service (RDS)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/274/1*YRgbkSs5MTnCH7IZ6FzrJQ.png" /></figure><p>AWS RDS offers relational databases in the cloud, which are easy to set up, operate, and scale according to needs. AWS has automated time-consuming tasks such as hardware provisioning, setting up databases and backing up data. Once set up, it is managed by Amazon so the developers or users do not have to worry about performance, maintenance, backing up, or patching database servers.</p><p>RDS provides popular database engines such as:</p><ul><li>Amazon Aurora</li><li>PostgreSQL</li><li>MySQL</li><li>MariaDB</li><li>Oracle</li><li>Microsoft SQL Server.</li></ul><h3><strong>Advantages of using RDS</strong></h3><p><strong>Easy to administer</strong></p><p>There are many ways to access RDS services. AWS Management console, AWS RDS Command Line Interface, or API calls can be used to access RDS services. Therefore there is no need of installing and maintaining database softwares.</p><p><strong>Highly scalable</strong></p><p>Computing and storage resources can be scaled according to needs in a very quick manner without downtime in most cases. Amazon RDS engine types allow launching one or more Read Replicas to offload read traffic from primary database instances.</p><p><strong>High Availability</strong></p><p>When a Multi Availability Zone DB instance is provisioned, AWS RDS synchronously replicates data to another instance in a different availability zone. They offer automated backups, database snapshots and automatic host replacement.</p><p><strong>Good performance</strong></p><p>There are SSD backed storage options, which can offer higher performance according to demand.</p><p><strong>Security</strong></p><p>Running database instances in Amazon Virtual Private Cloud enables isolating database instances and connecting to existing IT infrastructure through encrypted IPsec VPN. Many Amazon RDS engine types offer encryption at rest and encryption in transit.</p><h3>AWS DynamoDB</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/289/1*eYmVmA4f4JQH7gvAckcxjw.png" /></figure><p>DynamoDB is the NoSQL counterpart of the AWS RDS. It is a fast, flexible and scalable NoSQL data service. One of the best features in DynamoDB is very low latency at any given scale. Databases are fully managed and support key-value store model as well as document storing. Because it supports automatic scaling of throughput, DynamoDB is well suited for applications where near real time data is stored and processed.</p><h3>Advantages of AWS DynamoDB</h3><p><strong>Fast Performance</strong></p><p>DynamodB provides very fast data read/write times. Average latencies are in single digit milliseconds. DynamoDB uses automatic partitioning and SSD technologies to cater growing throughput requirements to deliver same fast performance at any scale.</p><p><strong>Scalability</strong></p><p>In DynamoDB, auto-scaling is enabled by default. Actual throughput utilization is continuously monitored and provisioned throughput will be adjusted accordingly. Data replication can be done using “Global Tables” which will automatically replicate data across selected AWS regions.</p><p><strong>Event Driven Programming Support</strong></p><p>DynamoDB integrates with AWS Lambda making it easier to make applications which react to data changes.</p><p><strong>Granular Access Controls</strong></p><p>Integration with AWS Identity and Access Management (IAM) make it easy to control user access to services and resources.</p><p>With all these benefits, you might want to migrate to AWS databases, and at the same time you might be thinking how painstaking of a task it can be; System downtimes, possible data losses, data mismatches and all. Don’t you worry now. Once again Amazon is here to the rescue with AWS Database Migration Service.</p><h3>AWS Database Migration Service</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/134/1*LGUqmmy90R8QJYFFPU0AkQ.png" /></figure><p>AWS database migration service can help users migrate to AWS databases quickly and efficiently. While the migration is in progress, the source database will continue to operate in a normal manner, thereby minimizing downtime. AWS database migration supports most commonly used open source and commercial databases. It supports homogeneous database migrations as well as heterogeneous database migrations such as migrations from Oracle to Microsoft SQL or mySql.</p><p>It also allows you to stream data to Amazon Redshift, Amazon DynamoDB, and Amazon S3 from any of the supported sources including;</p><ul><li>Amazon Aurora</li><li>PostgreSQL</li><li>MySQL</li><li>MariaDB</li><li>Oracle</li><li>SAP ASE</li><li>SQL Server</li><li>MongoDB.</li></ul><p>This enables easy and efficient Data Analytics.</p><p>These are a few of the most used AWS database services. And there are many more services such as AWS Aurora, Amazon Elasticache, Amazon Neptune among AWS database services.</p><p>All these database services help developers focus more on developing new features in their applications rather than worrying about database management and infrastructure maintenance. That’s the real advantage of using AWS database services. This is why cloud databases are embraced rapidly in today’s fast paced technological world. The conclusion is, cloud databases are here, and they are here to stay, and that is great for application users as well as developers.</p><p><strong>References</strong></p><ul><li><a href="https://aws.amazon.com/products/databases/">https://aws.amazon.com/products/databases/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=931c9ca6bbcf" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>