Upload files into AWS EC2 using aws cli

We all have heard about codepipeline which simply triggered by a source commit and start a pipeline to build application then deploy automatically to ec2 servers. Upload files to aws ec2. Well this article is not about code pipeline but a simple script that will make...
Read More ⟶

How to upload images to S3 bucket using Nodejs code.

Uploading images to S3 bucket using Nodejs code. The below code will upload any assets to mentioned AWS S3 bucket and return the uploaded details along with assets size in bytes. const AWS = require('aws-sdk'); const { Storage } =...
Read More ⟶

Re-Installing codedeploy agent in linux sever

Login to you linux server Check if codedeploy agent installed. sudo codedeoploy-agent status Remove any existing if already installed. sudo yum erase codedeploy-agent Remove any remaining logs at opt folder cd /opt sudo rm -r codedeploy-agent/ cd...
Read More ⟶

SNS notification target rule is “unreachable” when tryin to send a notification from code pipeline

Whenever you create an SNS topic by itself, the default access policy will look something like this: The default access policy shown as below is wrong and will not work.  { "Version": "2008-10-17", "Id": "__default_policy_ID", "Statement": [ ...
Read More ⟶