Posts

Showing posts with the label aws

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 ...

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...