Skip to main content

Posts

Showing posts with the label AWS EC2 Instance

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

Amazon EC2 Server Setup & Installing JDK 8 and Tomcat 8, Running on Port 80 & 443 and Redirect Request from port 80 to 8080 and 443 to 8443

Amazon EC2 Server Setup & Installing JDK 8 and Tomcat 8, Running on Port 80 & 443 and Redirect Request from port 80 to 8080 and 443 to 8443. Step 1 : Log in to your aws account by following this link then click on my account and choose option aws management console. Note: I am assuming you created your account with aws and you are ready with you account if you haven’t done then you can check out on google you will get many and it's a straight forward steps if you have still problem while creating an account you can comment in comment box i will also provide tutorial for that. Once you logged in aws management console you are able to see window like this one Note : Before we go ahead we have to select proper reason from right and side. I choose ohio region for this example. Step 2 : Now you have to choose EC2 Server from Services tab on left side top corner then choose EC2 Services from “Compute option ” You will get window like this one and r