Skip to main content


Showing posts from 2018

How do I change the time zone of my Amazon RDS database instance?

As we know bydefault time in the format of UTC in mysql.We can set local time zone to our AWS RDS Instance for our application. or any other time zone prefared Cloud Based Website Hosting Service Provider Steps 1: Go to Services and Select RDS Now to change time zone we have to change "Parameter Group" in left side that is associated with DB instance first we can check default Parameter Group for our instance is Parameter group default.mysql5.7  ( in-sync ) like this. So we have to change the time zone in this Parameter Group.  now open that parameter group (default.mysql5.7)  and click on edit parameter. then search for time_zone (because we want to change it.) then we have to change time_zone only by default it is engine-default (that is utc)  we have to select Asia/Calcutta.  More information we can ref.

How to create an IAM user and S3 bucket and upload images to that bucket

How we began You have to follow some steps if you want to upload images on S3 bucket. All steps are given below. I   will also give a detail description about these points which surely helps you to upload images on s3 bucket. 1.        Create your AWS account. 2.        Log in 3.        Create an IAM user. 4.        Create a bucket and etc         How to create an IAM user:     . Search for an IAM user and open it.             2. Click on users.        3. Now you have to click on Add User.        4.     Give user name and give programmatic access to user and click on next.               5 .        Give access to users. I give only two excess to user. 1.        AmazonS3FullAccess 2.        Amazonec2FullAccess              6.        Click next and then create user. When we click on create user then it will give secret key and              access key of user. Through these keys we will access our bucket. Download these    

How To Enable GZIP Compression In Tomcat Server At AWS EC2 Instance

1  1.      Before enable gzip compression there is no content-encoding : gzip in Response Header.      How to see response header? Firstly, inspect your project in browser . For inspect right click and then select a option inspect. Then your screen will look likes 2.       Connect EC2 instance through any SSH tool like Putty  Putty is login as ec2-user. Now go to tomcat installed directory by entering command given below. cd /usr/share/tomcat8/conf List down all the files under this directory by entering command ls Open server.xml file in edit mode by entering command sudo vi server.xml Then you will see a screen like this. You have  to search for a tag  <Service name="Catalina"> Under  <Service name="Catalina"> this tag    you have to search for a tag like given below and make all changes under this tag. See the highlighted part and make all changes.              <Connector p

How to upload EC2 Instance files or Folder (Project Images) to S3 Bucket

First, think to keep in mind this method only work when you have installed a custom ec2 instance of aws with Amazon Linux ami. 1) First Create an IAM User. (Give him Ec2FullAcess or S3FullAccess ) 2) Open your server through ssh or any other tool. Try to run the following command 1) aws configure It will ask 4 thinks like showing this images 1) AWS Access Key Id : (It is given at the time of creating IAM User) 2) AWS Secret Access Key (It will also be given at the time of creating IAM User) 3) Default Region Name (It would depend on the region you are but by default give it as "us-east-2") 4) Default output format: table   [You can also give it as JSON that totally depends on you] after completing all these steps you have to check your list AWS bucket present in your AWS  s3 account. Run the following command : aws s3 ls like as shown in below image. If you want to create some bucket from AWS CLI command then we have to run the following command