AWS

AWS S3 File Upload Spring Boot Controller And Service

AWS
This blog posts explains on how to upload your file to Amazon S3 services using spring/spring boot. Prerequisite: endpoint Url Access Key secret Key BucketName Pom.xml file: Here it is spring boot project, so if your is spring then just add the required dependencies for AWS. <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <!-- https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk --> <dependency> <groupId>com.amazonaws</groupId> <artifactId>aw...

How to do docker import export from two AWS Machines ?

AWS, Docker
Step 1: Docker Export in Machine 1: sudo docker export ngjenkins | gzip > ngjenkins.gz Step 2: Run From Machine 1 to copy .gz file to Machine 2: scp -i "my-docker-pair.pem" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ngjenkins.gz ec2-user@YOUR_AWS_HOST_NAME:/home/ec2-user/ .pem file is mandatory to connect with any AWS machine in AWS environments. If you don't have that file in your server, make sure to copy that in your aws machine from your local computer using the below command. scp -i my-docker-pair.pem d:/aws/my-docker-pair.pem ec2-user@YOUR_AWS_HOST_NAME:/home/ec2-user/my-docker-pair.pem Step 3: Docker Import in Machine 2: zcat ngjenkins.gz | docker import - ngjenkins Step 4: Docker Run in Machine 2: docker run -i -t ngjenkins /bin/...

AWS Developer Certification – Exam Tips

AWS, Tutorials
AWS provides certifications in 3 major categories called Developer certification, Sysops/devops certification and  solutions architect certifications. Each category has Associate and Professional level certifications, like AWS developer certification assoicate and AWS developer certification professional etc. For any professional certifications, relevant associate certification is mandatory to complete. We are going to see the complete details which you need to know about AWS developer certification and exam tips in this post. AWS Official link for AWS Developer Certification AWS Certified Developer–Associate (DVA-C01) Examination Guide   AWS Developer Certification - Topics: IAM (Identity Access Management) Users, Groups, Roles and Policies are part of IAM.

Steps to Increase AWS Disk Size

AWS
Steps to Increase AWS Disk Size 1. Login to AWS Console 2. Click EC2 and navigate to your currently running instances. 3. Click the instance and note down your Root device and Block Device 4. Click on Block Devices then click EBS ID to navigate to your volume page. In other way, you can directly click the volumes under Elastic Block Storage and reach the same page:   5. Click the Actions -> Modify Volume and Increase the size then click yes to confirm. 6. Login to your aws console through SSH and Run lsblk command and note down the volumn names Here, xvda is the recently changed volume size ` - xvdal previous size, 50G, we are trying to increase the size from 50GB to 80GB in this case.   If you run df -h now you will be able...

How to deploy angular 2/4/5/6 application from bitbucket to Nginx Server in AWS EC2

Angular, AWS, Git/Bitbucket, Nginx
How to deploy angular 2/4/5/6 application from bitbucket to Nginx Server in AWS EC2: Prerequisite: Make sure you have installed following in your linux machines: Nginx server. git. Account in bitbucket (atleast in github to clone some angular app).   1. Create temp folder in root path and do git clone: sudo git clone -b my-Branch https://YOURUSERNAME@bitbucket.org/YOURUSERNAME/YOURPROJECT Here my-Branch is branch name, if you want the master to be cloned then your url will be like this, sudo git clone https://YOURUSERNAME@bitbucket.org/YOURUSERNAME/YOURPROJECT 2. Now get into your project folder and run the below steps: sudo sudo npm install and sudo sudo ng build --prod sudo sudo given two times to solve the permission related issues, prefer to give...

Connecting aws ec2 mysql from workbench

AWS, Database
Hello all, After a lot of struggle I finally made connection to aws ec2 mysql from workbench, posting here to help you guys. Connecting aws ec2 mysql from workbench:     If you are getting any other exceptions then do validate the below steps once again,   Step 1: Creating root user with all the privileges: CREATE USER 'root'@'18.188.178.178' IDENTIFIED BY 'root1'; GRANT ALL PRIVILEGES ON javadomain.* TO 'root'@'18.188.178.178'; javadomain => database schema (which I created directly in linux mysql login). If you like to allow all databases then try ON . instead of javadomain.* Please do restart your mysql sudo service mysqld restart   can be used in aws ec2 instance for restart your mysql in aws. Step 2: Add bind-address ...