A simple web application that takes the base and exponent numbers and finds the result using the following AWS services.
-
AWS Amplify: Build full-stack web and mobile apps
-
Amazon API Gateway: It is a fully managed service that makes it easy for developers to create, publish, maintain, monitor, and secure APIs.
-
AWS Lambda: It is a cloud service that lets you run code without provisioning or managing servers (serverless).
-
Amazon DynamoDB: Serverless, NoSQL database.
-
AWS IAM: Manage identities and access to AWS services and resources
-
Create a web page (check the index.html)
-
Create a zip file of the index.html
-
Deploy the zip file (index.zip) using AWS amplify
-
Create a Lambda function called powerOfNumbers
-
Create a Rest API using Amazon API Gateway
-
Create a method and call the lambda function
-
Select resource and enable CORS -> https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-cors-console.html
-
Finally Deploy the API.
- Save the result into the DynamoDB
-
Create a Table
- Update index.html to reach the API Gateway
-
Replace "YOUR API GATEWAY ENDPOINT" value in the index.html with your API Gateway's endpoint.
- After completing your work/test, delete all the AWS resources that you have created:
-
Delete the app from AWS Amplify
-
Delete the table from DynamoDB
-
Delete the function from Lambda
-
Delete the API from API Gateway
-
Delete the roles from IAM