Prerequisite We have to have a website in PHP/HTML with a database connection in PHP format. Here we have used HTML for the website designing the form which contains the registration of the student and in the form, we have provided the action of the PHP which contain the basic configuration of the database…
Category: Cloud Computing
Install Cloudwatch agent on on-premises Windows server
First create an IAM user with programmatic access and attach below mentioned policy: CloudWatchAgentAdminPolicy AmazonSSMManagedInstanceCore Now, create credentials file as per below image: Now download and install Amazon Cloudwatch agent from the below link: https://s3.amazonaws.com/amazoncloudwatch-agent/windows/amd64/latest/amazon-cloudwatch-agent.msi Update the common-config.toml file: File is located at C:\ProgramData\Amazon\AmazonCloudWatchAgent Open file in any editor and change the credentials file as…
Install Cloudwatch agent on on-premises Linux server
Configure AWS CLI in your machine using the following command: sudo apt install awscli Create access key and secret key of any user in your AWS account and provide it in your machine using below command: aws configure Now download and install cloudwatch agent on linux host: wget https://s3.amazonaws.com/amazoncloudwatch-agent/ubuntu/amd64/latest/amazon-cloudwatch-agent.deb sudo dpkg -i -E ./amazon-cloudwatch-agent.deb Now,…
Deploy Flask website using AWS CLI with AWS Lambda, AWS API Gateway and Zappa
Prerequisites: Python pip virtualenv awscli To deploy a Flask website, first create a virtual environment using below commands in cmd terminal… >mkdir demo >cd demo demo> virtualenv <name_virtualenv> demo> %HOME_Path%\ <name_virtualenv> \Scripts\activate To check environment is now active like below: (<name_virtualenv>) C:\> Now, Install all necessary dependencies in a virtual environment (<name_virtualenv>) C:\> pip install flask (<name_virtualenv>) C:\> pip install…
Deploy Django website using AWS Elastic Beanstalk CLI in windows
Prerequisites: Python pip virtualenv awsebcli To deploy a Django website, first create a virtual environment using below commands in cmd terminal… >mkdir demo >cd demo demo> virtualenv <name_virtualenv> demo> %HOME_Path%\ <name_virtualenv> \Scripts\activate To check enviroment is now active like below: (<name_virtualenv>) C:\> Now, Install django in virtual environment (<name_virtualenv>) C:\> pip install django (<name_virtualenv>) C:\>…
Simple Web-application deployment on EC2 using AWS CodeDeploy & S3 services
Prerequisite AWS CLI Installations:– Click Here Configure Service Role for S3. Go to IAM Click on Role. Select AWS services –> Ec2. Click on Next Permission. Select S3FullAccess Click on Tag (optional)–>Click on Review. Define Role Name –> Click on Create. Configure Service Role for CodeDeploy. Go to IAM Click on Role. Select AWS services –>…