January 7th 2020¶
- I created a index.html file in the root of my Cloud9. This contains the code for “Hello, World!” that I will be using to test my new website once I have connected to Amplify.
1 2 3 4 5 6 7 8 9 | <!DOCTYPE html>
<html>
<head>
<title>AWS Serverless Web App</title>
</head>
<body>
Hello, World!
</body>
</html>
|
- Next, I pushed all the changes I have made to my github repo in my master terminal. This includes my index.html file.
- Finally, I connected this instance to Amplify. I did this by going to my dashboard and opening AWS amplify through the services tab. From there, I was able to create my Amplify instance connected to GitHub and deploy my hello world program. I was able to confirm through the provided URL that my code is up and running correctly.
- Created a role in IAM called ‘AWS_Serverless_Web_App’ through AWS Identitiy and Access Management (IAM). After creating my database, I will be able to use this role for AWS Lambda to access it.
- I created a lambda function in python that returns “Hello, World!” on AWS
- I was able to test and confirm that this function was running correctly using test cases
- using configured test event, I passed my name Trinity Armstrong into the function. It outputted “Hello, Trinity Armstrong”.