---
title: "Discussion on \"How to get, upload and delete an object from s3 using aws-sdk for nodejs\" | Hashnode"
description: "Discussion on \"How to get, upload and delete an object from s3 using aws-sdk for nodejs\". Here's the TLDR.\n\nCreate a file to where all the methods will be present.\n\n// s3.js\nimport * as AWS from '@aws-sdk/client-s3';\nconst bucket = process.env.AWS_BUCKET_NAME;\nconst region = process.env.AWS_REGION;\nconst endpoint = process.env.AWS_ENDPOIN..."
url: "https://hashnode.com/posts/how-to-get-upload-and-delete-an-object-from-s3-using-aws-sdk-for-nodejs/639d7afa0fed24c7474ae464"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to get, upload and delete an object from s3 using aws-sdk for nodejs](https://harshmaur.com/how-to-get-upload-and-delete-an-object-from-s3-using-aws-sdk-for-nodejs?utm_source=hashnode&utm_medium=feed)

Here's the TLDR. Create a file to where all the methods will be present. // s3.js import \* as AWS from '@aws-sdk/client-s3'; const bucket = process.env.AWS\_BUCKET\_NAME; const region = process.env.AWS\_REGION; const endpoint = process.env.AWS\_ENDPOIN...

Dec 17, 2022 · 2 min read · harshmaur.com  
Read the article

-   [#aws](https://hashnode.com/tag/aws)
-   [#amazon-s3](https://hashnode.com/tag/amazon-s3)
-   [#s3](https://hashnode.com/tag/s3)
-   [#nodejs](https://hashnode.com/tag/nodejs)

## Written by

[Harsh Maur](https://hashnode.com/@harshmaur)

@harshmaur

  
[View profile](https://hashnode.com/@harshmaur)

Software Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
