<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Shravani Kadam</title>
    <description>The latest articles on Forem by Shravani Kadam (@shravani10tech).</description>
    <link>https://forem.com/shravani10tech</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1027521%2F6302e4b4-3684-4578-92df-b4551693edaf.jpeg</url>
      <title>Forem: Shravani Kadam</title>
      <link>https://forem.com/shravani10tech</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/shravani10tech"/>
    <language>en</language>
    <item>
      <title>Using various services of AWS to build an end-to-end Web Application...</title>
      <dc:creator>Shravani Kadam</dc:creator>
      <pubDate>Wed, 15 Mar 2023 15:52:04 +0000</pubDate>
      <link>https://forem.com/shravani10tech/using-various-services-of-aws-to-build-an-end-to-end-web-application-4bi6</link>
      <guid>https://forem.com/shravani10tech/using-various-services-of-aws-to-build-an-end-to-end-web-application-4bi6</guid>
      <description>&lt;p&gt;&lt;strong&gt;Learning theory is simple, but putting it into practice is difficult and essential to really grasp the topic.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In this blog, we will be building a simple Web Application using various services of AWS.&lt;/p&gt;

&lt;p&gt;Workflow of the Project:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foe6ce9yn6giiiay1jsbp.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foe6ce9yn6giiiay1jsbp.jpg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Understanding the services which we will be using for building web application.&lt;/p&gt;

&lt;p&gt;AWS Amplify: To create/host webpage. &lt;br&gt;
AWS IAM: To handle various permissions and accessing request across services.&lt;br&gt;
AWS Lambda: To run your code for any type of application.&lt;br&gt;
AWS DynamoDB: NoSQL Database used to store and retrieve the data&lt;br&gt;
AWS API Gateway: To route HTTP request to Lambda/To invoke the Lambda Functionality.&lt;/p&gt;

&lt;p&gt;Github: &lt;a href="https://github.com/shravani10-tech/End-to-End_Application_Using_AWS" rel="noopener noreferrer"&gt;Repository for the Code&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Prerequisite: Create a free tier AWS Account &lt;a href="https://youtu.be/XhW17g73fvY" rel="noopener noreferrer"&gt;Click here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's get started!!&lt;br&gt;
We are going to make a simple "Power of Math" Application to understand these services&lt;/p&gt;

&lt;p&gt;Step 1: Let's deploy our code to AWS Amplify for building and hosting our webpage&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Search for Amplify in the search bar&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffucupjsvuk3es1ydnqcx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffucupjsvuk3es1ydnqcx.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Click on Deploy with Git Provider and continue..&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg4ola9h1vny3mush05jz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg4ola9h1vny3mush05jz.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Starting with the manual deployment

&lt;ol&gt;
&lt;li&gt;Name your application&lt;/li&gt;
&lt;li&gt;Write environment name as (dev) &lt;/li&gt;
&lt;li&gt;Select Method Drag and Drop&lt;/li&gt;
&lt;li&gt;Drag a zip file of (index-ORIGINAL.html) page you want to host ( 
Code/File uploaded on github ) &lt;/li&gt;
&lt;li&gt;Click save and deploy!!&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh1gzj4gitjqgzorkdg3u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh1gzj4gitjqgzorkdg3u.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl4mbciho0uxd1elhwx3t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl4mbciho0uxd1elhwx3t.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now you can see the Domain Link which you can share with your friends once the project is completed!!&lt;/p&gt;

&lt;p&gt;This is how your live page should look where the users can navigate to..&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcbtyk3lxqx9ppzel3xzj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcbtyk3lxqx9ppzel3xzj.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Congratulations on Successful Deployment...&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0nmtm0ukrj21jc5av4mr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0nmtm0ukrj21jc5av4mr.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 2: We will now use Lambda Function which will help us to do calculations for our application.&lt;br&gt;
Lambda function is a bit of code that runs and responds on some trigger. &lt;/p&gt;

&lt;p&gt;In our project, the input values given by the user will trigger the lambda function to return the results for the inputs.&lt;br&gt;
Lambda Functions are serverless (you don't have to manually setup any server) AWS manages everything behind the scenes.&lt;/p&gt;

&lt;p&gt;We will use Python "math" Library to do the necessary calculations.&lt;/p&gt;

&lt;p&gt;For setting up Lambda Function,&lt;br&gt;
Search for Lambda in the search bar...&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftd8l28nntnz55obpwq12.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftd8l28nntnz55obpwq12.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click of create function ( top left corner )&lt;/li&gt;
&lt;li&gt;Select ( Author from Scratch )&lt;/li&gt;
&lt;li&gt;Give your function a name ( eg. powerofmathfunction )&lt;/li&gt;
&lt;li&gt;Select Runtime as Python 3.9&lt;/li&gt;
&lt;li&gt;Keep the rest as default &lt;/li&gt;
&lt;li&gt;Click on create function&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fojvprqa2fm80y0s27eod.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fojvprqa2fm80y0s27eod.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Replace the code with the ( PowerOfMathFunction-Lambda-Original ) code provided on Github. We will update the code later .&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5dhssgr3yfmalngmpz18.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5dhssgr3yfmalngmpz18.png" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
Importing json utility library and python math library to do the calculations.&lt;br&gt;
User will be passing two numbers ( base and exponent ) we will grab those values through the event object and plug in them into ( math.pow) for power which will give us the result , later we will return the result down in the json object.&lt;/p&gt;

&lt;p&gt;Save the code!!&lt;br&gt;
Click on Deploy.&lt;br&gt;
Now let us Test our Function.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click on the drop down arrow near Test button&lt;/li&gt;
&lt;li&gt;Select Configure test event&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5p2ywnsn07nevb6g73pp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5p2ywnsn07nevb6g73pp.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click on create new event. &lt;/li&gt;
&lt;li&gt;Enter the Event Name.&lt;/li&gt;
&lt;li&gt;Down below pass the values ( base and exponent ) as 2 and 3.&lt;/li&gt;
&lt;li&gt;Scroll down and click on Save.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F61jg64ckre09h7xsjvum.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F61jg64ckre09h7xsjvum.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We have successfully configured the Test Event. Now to run the test, Click on Test button and check the results. It should now return "Your test result is 8.0".&lt;/p&gt;

&lt;p&gt;Step 3: To invoke the Lambda Function we need a public endpoint or URL that can be called to trigger that function to run.&lt;/p&gt;

&lt;p&gt;API Gateway provides tools for creating and documenting web APIs that route HTTP requests to Lambda functions.&lt;br&gt;
An API gateway is an API management tool that sits between a client and a collection of backend services.&lt;/p&gt;

&lt;p&gt;Let's build our own API!!&lt;br&gt;
Go ahead search for API Gateway in the search bar..&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftxdw40n5h56huy3xzrsa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftxdw40n5h56huy3xzrsa.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click on Create API&lt;/li&gt;
&lt;li&gt;We will be using REST API, click on Build Button.&lt;/li&gt;
&lt;li&gt;Give a name to your API.&lt;/li&gt;
&lt;li&gt;Keep rest as default and click on Create API Button.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F87qveb2rg89je7tpbcuq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F87qveb2rg89je7tpbcuq.png" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
This is an empty API created, there are no methods that somebody will call. Let's do that next...&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;In the left select Resources.&lt;/li&gt;
&lt;li&gt;Select the backslash ()&lt;/li&gt;
&lt;li&gt;On the actions menu, select ( Create Method )&lt;/li&gt;
&lt;li&gt;Select the type of Method as POST( user will be sending the values).&lt;/li&gt;
&lt;li&gt;Click the checkmark.&lt;/li&gt;
&lt;li&gt;Enter your Lambda Function name.&lt;/li&gt;
&lt;li&gt;Click on save.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvdufw90gkf1xl4xer1pl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvdufw90gkf1xl4xer1pl.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Select Post and click on Enable CORS( Cross origin resource sharing ).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Web application running in one origin or domain(Amplify) will be able to access resources from different origins or domains(Lambda, Dynamodb etc)&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Enable CORS and Click on YES.&lt;/li&gt;
&lt;li&gt;In the actions, select deploy API.&lt;/li&gt;
&lt;li&gt;Give Deployment stage as New Stage.&lt;/li&gt;
&lt;li&gt;Give Stage name as dev.&lt;/li&gt;
&lt;li&gt;Click on Deploy.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdprg0wwbm18oipm3lj82.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdprg0wwbm18oipm3lj82.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Copy the invoke URL and save it in the text file.&lt;/p&gt;

&lt;p&gt;To test if the API is working, &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Go to Resources, Click on Post and Select Blue lightning bulb below Test.&lt;/li&gt;
&lt;li&gt;Pass the Base and the Exponent values in the Request Body.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpbnrfb2nuq3t00rl6bgh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpbnrfb2nuq3t00rl6bgh.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click on Test. You should get the result as 16.0.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Step 4: Creating a Database to store/return the math results.&lt;/p&gt;

&lt;p&gt;We will be using AWS DynamoDB.&lt;br&gt;
Amazon DynamoDB is a fully managed, serverless, key-value NoSQL database designed to run high-performance applications at any scale.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Search for DynamoDB in the search bar&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F45wa8wnvfge6d94hpqxf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F45wa8wnvfge6d94hpqxf.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click on Create table.
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx2xwa62ytctsd85f69re.png" alt="Image description"&gt;
&lt;/li&gt;
&lt;li&gt;Enter Table Name and Partition key
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Filj0mcs9qdxuja7y7h4x.png" alt="Image description"&gt;
&lt;/li&gt;
&lt;li&gt;Leave the rest as default and Click on Create Table.&lt;/li&gt;
&lt;li&gt;Click on the table which is you have created, in the General information, go to Additional info and copy the ARN provided.&lt;/li&gt;
&lt;li&gt;Save the ARN in a text file.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Step 5: Now we have to give permissions to our Lambda Function to write to this table using AWS IAM.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Go back to Lambda Function.&lt;/li&gt;
&lt;li&gt;In the Configuration section, Click on Permissions and the on the Execution Role Provided.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6kmb3yu3rrpgppajlvzl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6kmb3yu3rrpgppajlvzl.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;In the Add permissions, click on create inline policy.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flz3j9k78vikq7b866kir.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flz3j9k78vikq7b866kir.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click on the JSON tab and add the below policy
&lt;code&gt;{
"Version": "2012-10-17",
"Statement": [
{
    "Sid": "VisualEditor0",
    "Effect": "Allow",
    "Action": [
        "dynamodb:PutItem",
        "dynamodb:DeleteItem",
        "dynamodb:GetItem",
        "dynamodb:Scan",
        "dynamodb:Query",
        "dynamodb:UpdateItem"
    ],
    "Resource": "YOUR-TABLE-ARN"
}
]
}&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;With this policy, the Lambda Function will have the permissions to Put, Delete, Get, Scan, Query, and Update Item in DynamoDB.&lt;/p&gt;

&lt;p&gt;DONOT FORGET TO ADD THE TABLE ARN WHICH YOU COPIED EARLIER&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click on Create Policy and give name to the policy and again click on Create Policy.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffpjrojpelko4g2po20n0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffpjrojpelko4g2po20n0.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now let us update the Lambda Function to go and write to the database!!&lt;/p&gt;

&lt;p&gt;6 Copy the (PowerofMathFunction-Lambda-Final) code from the file provided on Github.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Go to the Lambda Function and paste the new code.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;MAKE SURE YOU CHECK THE TABLE NAME OF YOUR DATABASE AND UPDATE IT IN THE CODE.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fygnyk2ec7frlivsrgegn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fygnyk2ec7frlivsrgegn.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Save and Deploy the code.&lt;/li&gt;
&lt;li&gt;Test your function again.&lt;/li&gt;
&lt;li&gt;Now, go back to DynamoDB, click on Explore table Items.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frr0uc2zlw4q9myn8vber.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frr0uc2zlw4q9myn8vber.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Scroll down. You will now see the results stored in our Database.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiidny9f49oyyrx5bzxw0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiidny9f49oyyrx5bzxw0.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 6: Let's now connect our AWS Amplify to AWS API Gateway!!&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;We will now update the index.html page &lt;/li&gt;
&lt;li&gt;Open the index.html file in notepad++&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmls8tltiuuahmaedr33s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmls8tltiuuahmaedr33s.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Edit the code ( Paste the final code provided on Github as index.html )&lt;/li&gt;
&lt;li&gt;Enter the API Gateway URL copied earlier when creating the API Gateway.&lt;/li&gt;
&lt;li&gt;Update the code with your API URL.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft5d4af5yk1p5luvn5vif.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft5d4af5yk1p5luvn5vif.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create a zip file. &lt;/li&gt;
&lt;li&gt;Come back to AWS Amplify, add the updated/new zip file and click on deploy.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2oit8u2xgyj9grphx25q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2oit8u2xgyj9grphx25q.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click on the domain link and there you go....&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftn002yr2xathg8caq9sh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftn002yr2xathg8caq9sh.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Your very own end-to-end application using different AWS services is ready!!&lt;/p&gt;

&lt;p&gt;On our html page, as soon as the user inputs the values and clicks on results that script is going to call the API Gateway that triggers the Lambda Function to do the calculations and the result gets written to the database and we will get the message returned to us in the browser showing us the results through API Gateway.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5ksasdxcczd637cfnz8u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5ksasdxcczd637cfnz8u.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thank you for reading. All suggestions are appreciated!&lt;/p&gt;

</description>
      <category>devops</category>
      <category>aws</category>
    </item>
    <item>
      <title>Introduction to Cloud Computing..</title>
      <dc:creator>Shravani Kadam</dc:creator>
      <pubDate>Fri, 17 Feb 2023 16:39:42 +0000</pubDate>
      <link>https://forem.com/shravani10tech/introduction-to-cloud-computing-44bn</link>
      <guid>https://forem.com/shravani10tech/introduction-to-cloud-computing-44bn</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is Cloud Computing?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For a long time, the phrase &lt;em&gt;"cloud computing"&lt;/em&gt; has gained popularity in the IT sector. It provides businesses technical advantages and benefits. Many businesses view cloud computing as a crucial strategy as it is growing quickly. Large-scale commercial operations have undergone significant changes as a result. According to the studies and surveys , around &lt;strong&gt;94%&lt;/strong&gt; of US enterprises use cloud services and &lt;strong&gt;92%&lt;/strong&gt; of businesses have multi-cloud strategy in place or in the works.&lt;/p&gt;

&lt;p&gt;To fully understand Cloud Computing let us check what technology upon which it is built.&lt;/p&gt;

&lt;p&gt;When anything is referred to be &lt;em&gt;"virtual,"&lt;/em&gt; it is a depiction of something that is physically present somewhere else.&lt;/p&gt;

&lt;p&gt;Similar to this, the technique of &lt;em&gt;“Virtualization”&lt;/em&gt; in cloud computing enables us to build up virtual resources like &lt;em&gt;servers, networks, and storage&lt;/em&gt; in the cloud. We will obtain the software to provision and manage these virtual resources. All of these resources are allotted from an actual machine that is operating somewhere in the world. Cloud service providers manage the operation of these actual servers as well as maintenance and hardware requirements.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do you define cloud computing?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;According to &lt;em&gt;Amazon Web Services (AWS)&lt;/em&gt;, Cloud Computing is the on-demand delivery of IT resources over the Internet with pay-as-you-go pricing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Some of the major benefits of Cloud Computing are:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Anywhere, Anytime Accessibility Using Any Device&lt;/li&gt;
&lt;li&gt; Better Security&lt;/li&gt;
&lt;li&gt; Cost Efficient&lt;/li&gt;
&lt;li&gt; Global reach&lt;/li&gt;
&lt;li&gt; High Availability&lt;/li&gt;
&lt;li&gt; Scalability&lt;/li&gt;
&lt;li&gt; Reliability&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Cloud Service Models&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Software as a Service (SaaS)&lt;/em&gt;&lt;br&gt;
A product run and managed by the service providers. In a SaaS environment, the application is designed to be self-sufficient and does not require you to be technical. You use it just like you would using any other application on your computer. It is centrally hosted in the cloud, and there is no need to install any software on your local device to use it.&lt;br&gt;
Example of SaaS: Salesforce, Gmail, Office 365 etc.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Platform as a Service (PaaS)&lt;/em&gt;&lt;br&gt;
Platform as a Service focuses on deployment and management of your applications. Third party provider hosts application development platforms and tools on its own infrastructure and makes them available to the customers over the internet. &lt;br&gt;
Example of PaaS: AWS Elastic Beanstalk, Google App Engine etc.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Infrastructure as a Service (IaaS)&lt;/em&gt;&lt;br&gt;
With IaaS, a provider supplies the basic compute, storage and networking infrastructure along with the hypervisor -- the virtualization layer. Users must then create virtual instances such as VMs and containers, install OSes, support applications and data, and handle all of the configuration and management associated with those tasks.&lt;br&gt;
Examples of IaaS: AWS, Azure, GCP, IBM etc.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Other Cloud service models to consider include:&lt;/strong&gt;&lt;br&gt;
• Storage as a service (STaaS)&lt;br&gt;
• Network as a service (NaaS)&lt;br&gt;
• Communications as a service (CaaS)&lt;br&gt;
• Backup as a service (BaaS)&lt;br&gt;
• Database as a service (DBaaS)&lt;br&gt;
• Function as a service (FaaS)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cloud Deployment Models&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Public Cloud:&lt;/strong&gt; A public cloud is an IT model where public cloud service providers make computing services—including compute and storage, develop-and-deploy environments, and applications—available on-demand to organizations and individuals over the public internet. Public cloud is a shared infrastructure. The consumers need not worry about the physical location where their data is stored and managed. Maintenance of the physical servers used virtually by the consumers is looked by the third-party and it is not visible to the users.&lt;br&gt;
Types of Public Cloud: AWS, Microsoft Azure, Google Cloud, IBM.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Private Cloud:&lt;/strong&gt; The major difference between Public Cloud and private cloud is that the infrastructure of the private cloud is privately hosted and managed by the company itself. The company can have their own data centre. Organization/Company is responsible for managing the maintenance, upgrades, OS patches, middleware, and application software management. &lt;br&gt;
Types of Private Cloud: AWS, Azure, HPE, and Dell are examples of some popular Private Cloud providers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hybrid Cloud:&lt;/strong&gt; A hybrid cloud combines private and public cloud. As a result, you can construct your services such as storage, computing using the most effective model while combining the benefits of the public and private models. Using a combination of public clouds, on-premises computing, and private clouds in your data center, you can have a hybrid cloud infrastructure. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cross Cloud:&lt;/strong&gt; Cross cloud allows us to integrate services at one time from any two cloud providers i.e. Services from AWS and Azure can be integrated together.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Various Cloud Providers&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Amazon Web Services(AWS) &lt;/li&gt;
&lt;li&gt;Microsoft Azure&lt;/li&gt;
&lt;li&gt;Google Cloud Platform(GCP) &lt;/li&gt;
&lt;li&gt;IBM&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>discuss</category>
    </item>
  </channel>
</rss>
