Posts

How to use s3 locally

Image
  This tutorial is about running s3 on local system  to avoid cost and no need to buy aws account service also fast your development.   P rerequisite     - Docker     - LocalStack image I am not going to write this deeply just let you know some steps. If you have not docker install the docker , i will share a docker compose file save this file with docker-compose.yml in your system open this file in vscode. or you can directly compose or build this file using docker command, to make it simple i just using vscode . Open file in vscode and write click on source code then click on option  compose file, this build and compose your file. once your file execute the service will run on localhost:5002   to use this internally in docker use this   http://host.docker.internal:5002 To learn more about it check out other tutorial and here is link how to use dynamodb locally you can follow up to see more steps using that.  how t...

Here is a guide on how to perform a multipart upload of a file to AWS S3

This tutorial will guide you through using the AWS SDK to perform multipart uploads of large files in Node.js. While the tutorial focuses on Node.js, you can apply the same principles to perform multipart uploads in JavaScript on the frontend.   Prerequisite   - AWS SDK   - Nodejs Step 1: Setup the project     Before we begin, let's make sure you have a Node.js project set up. If you don't already have a Node.js project, you can create one by running the npm init command and following the prompts. npm init Step 2: Install the package     To get started, you'll need to install the AWS SDK. You can do this by running the following command in your terminal: npm   install   aws-sdk This will install the necessary package for interacting with AWS services in your project." Before we dive into the details of performing a multipart upload, let's discuss the overall approach and the three methods we'll be using to upload the file in chunks ...

Some of basic docker commands

Image
#Inspect Docker list out container and other cmd      docker   ps  -- all      docker   ps  -- size      docker   system   df      docker   system   df  - v #Query container list out all exited docker container      docker   ps  - a  - f   status = exited #Remove docker containers      docker   rm  - f   $ ( docker   ps  - a  - q ) #Explore fileSystem      docker   exec  - t  - i  < Container - id / name > / bin / bash       #Explore volume dynamolocal_d_data is eg.      docker   run  - it  -- name   admin  - v  dynamolocal_d_data:/ var / lib / ubuntu      docker   run ...

Docker Commands to explore Volume and File System

Image
 You can use the following command to open the file system and volume of docker # Explore File System.  docker   exec -t -i  <container-id/name>  /bin/bash    Replace container-id/name with container id or name  and run this command this will open you file system of docker for the container. to find out container id or detail use this cmd and copy the container id which you want to explore file system docker container ls #Explore volume docker   run -it --name admin -v <volume-name>:/var/lib/ ubuntu You can use this command to explore the docker volume, to find out the available volume use this command .  docker   volume ls   Replace <volume-name> with volume name which you want to explore this will use Ubuntu file system or cmd to perform operation on this system. There is other way to explore file using this command docker   run -...

How to use dynamodb locally using docker image - aws

Image
 This blog will show you how to use dynamodb locally to test it locally during development and to avoid cost of real time AWS web services. i am using window 10 and docker for window then switch this docker to linux Prerequisites:     Docker      dynamodb image  Follow the steps:            I am using window so i will talk more scenario with window. Step 1: if you don't have docker install on your computer then install it you can use docker official website to download this according to your operation system.  to verify open you command prompt and then type docker -v to verify docker is installed Step 2:   Now copy the below image and the compose this image you can chose many other way to compose a file ( docker-compose.yml ) Docker-compose up This  command can use to compose docker file we will talk this  cmd   later. both below commands can be used to run docker and pull th...