Hosting Web application using Amazon Elastic Beanstalk Steps: 1. Search for elastic beanstalk in AWS console. 2. Give name to your application. 3. Select node js as platform, then create application. 4. Application creation under progress 5. Successfully deployed 6. Open the link
Hosting a static website on AWS S3 Steps: 1. Search for S3 service in AWS Console. 2. Create a new bucket. 3. Give Proper name and region to host your website in. Then Create the bucket 4. Now we have to upload our website files to this S3 bucket. But before that keep your website files ready. 5. Click upload and select the files you want to upload. 6. Finally click on upload 7. Once the files are uploaded, go back to bucket properties and find the static hosting option. 8. Enable the static hosting and give names of your index and error document files. Then click on save changes. 9. Now go back to your Bucket permissions, then edit the block public access settings. Uncheck " Block all public access " 10. Edit object ownership 11. Also make your object ACL public. 12. Now copy the public url for object and paste in web browser. The pages will be accessible.
Installing and attaching MYSQL database to EC2 instance Steps: 1. Make sure you have one EC2 instance running that you can access it from your terminal. 2. Switch to root mode and move to root directory sudo su cd / 3. Update existing packages. sudo apt-get update 4. Now install mysql server. sudo apt-get install mysql-server 5. Now run command for secure installation. sudo mysql_secure_installation 6. Give appropriate password 7. If password is not accepted you can access mysql as sudo then alter the user password 8. Now we can interact with databases.
Comments
Post a Comment