Step-by-Step Tutorial to Upload File to AWS S3 Using NestJS | Create IAM User & Policy for S3

Step-by-Step Tutorial to Upload File to AWS S3 Using NestJS | Create IAM User & Policy for S3

In this tutorial, we will setup IAM user & policy to upload file to AWS S3 bucket using NestJS application. We will create NestJS project using AWS SDK to upload file to S3 Bucket. We will learn to create AWS IAM user & policy to read, write & access S3 bucket.

GIT Repository with Java AWS SDK Example Code

Repo - https://github.com/codeonedigest/NestjsCompleteTutorial.git

NestJS AWS SDK Example Code - ?

https://github.com/codeonedigest/NestjsCompleteTutorial/tree/master/NestJS%20Project%20to%20Upload%20File%20to%20S3%20Bucket

?

AWS S3 Simple Storage Service ?

Object storage built to store and retrieve any amount of data from anywhere. Amazon Simple Storage Service (Amazon S3) is an object storage service that offers industry-leading scalability, data availability, security, and performance. You can use Amazon S3 to store and retrieve any amount of data at any time, from anywhere.

?

IAM User

An AWS Identity and Access Management (IAM) user is an entity that you create in AWS. The IAM user represents the human user or workload who uses the IAM user to interact with AWS. A user in AWS consists of a name and credentials.

?

IAM User Policy

Policy is to manage access in AWS by creating policies and attaching them to IAM identities (users, groups of users, or roles) or AWS resources. A policy is an object in AWS that, when associated with an identity or resource, defines their permissions.

?

AWS SDK

AWS SDK for simpli?es use of AWS Services by providing a set of libraries that are consistent and familiar for JS developers. It provides support for API lifecycle consideration such as credential management, retries, data marshaling, and serialization. The AWS SDK for JS also supports higher level abstractions for simplified development.

?

?

? NestJS Framework

A progressive Node.js framework for building efficient, reliable and scalable server-side applications. A complete development kit for building scalable server-side apps.

?

?

Previous Video Tutorial

Setting up your first AWS S3 bucket - A step-by-step guide https://youtu.be/0KEia_M39ug

?

Topic Covered

1.?????? Welcome to NestJS Example Tutorial for AWS S3 Bucket

2.?????? Create IAM User for S3 Bucket

3.?????? Create Policy for IAM User

4.?????? Attach Policy to IAM User

5.?????? Create User Access Key & Secret

6.?????? Create NestJS Project to upload file to AWS S3 Bucket

7.?????? Run & validate NestJS application

?

CHAPTER

0:00 Welcome to NestJS Tutorial to upload file to S3 Bucket

1:20 Create IAM User for S3 Bucket

2:24 Create Policy for IAM User

3:30 Attach Policy to IAM User

4:35 Create User Access Key & Secret

6:40 NestJS Project Setup

8:27 Install NestJS CLI

9:17 Create NestJS Project

11:14 Load Project in VSCode IDE

12:05 Install AWS-SDK & Multer Dependencies

13:16 Explaining Controller & Service class Logic

14:00 Coding NestJS Controller POST Endpoint

15:26 Coding NestJS Service class to upload file to S3 Bucket

19:44 Running NestJS application

20:49 Testing Post endpoint to upload file to S3 Bucket

23:53 Summary of NestJS S3 Tutorial

?

?

?

?

?

?

#awss3bucket

?

?

?

?

CHECK OUT OUR OTHER VIDEOS

Shopify Ecommerce & Retail POS tutorial for Commerce Developer https://youtube.com/shorts/9gFn1FcXaL4?feature=share

Create AWS EC2 Instance and Run Springboot Microservice and MongoDB in EC2 Server

https://youtu.be/FI2M61Cotpw

Introduction to Salesforce Commerce Cloud https://youtube.com/shorts/V9LC7ZUFeM8?feature=share

Kubernetes Tutorial for Beginners https://youtube.com/shorts/aygEGpIIGv0?feature=share

Kubernetes Architecture Component & Cluster https://youtube.com/shorts/CogT46yLBF4?feature=share

Kubernetes Node Affinity Taints & Tolerations https://youtube.com/shorts/BfLD9k4D9o8?feature=share

Why Python is Number1 language https://www.youtube.com/shorts/YgBKYKy0xto

What is Python function? https://www.youtube.com/shorts/dcGy7v6RxOQ

?

CHECK OUR PLAYLISTS

Shopify Ecommerce & Retail POS playlist https://www.youtube.com/playlist?list=PL2NZAYdLkYvhJTo-bewt5UwvWladmRpnk

AWS Cloud and Docker Containers Complete Tutorial

https://youtube.com/playlist?list=PL2NZAYdLkYvhZQo2VTVCSug_zVjekNodi

Salesforce commerce cloud SFCC B2B B2C SFMC Capabilities https://www.youtube.com/playlist?list=PL2NZAYdLkYviJnkM92HZoadf_sRDQgLvs

CodeOneDigest Learning Shorts

https://youtube.com/playlist?list=PL2NZAYdLkYvhwdsvjUr7gw6jVb2IgyE07

Kubernetes Cluster Architecture Master & Worker Node Tutorial? https://youtube.com/playlist?list=PL2NZAYdLkYviE7B06At6INbSCsDSRX8Ya

Complete Python Learning Tutorial Playlist

https://www.youtube.com/playlist?list=PL2NZAYdLkYvhkIFy2Lq7yZX_jUCC0UBYR

Spring Boot Complete Tutorial https://youtube.com/playlist?list=PL2NZAYdLkYvg_VlNmszrb-Um0wRx5yGDF

?

ABOUT OUR CHANNEL

CodeOneDigest is a youtube channel for the videos on programming language, cloud and docker container technology in English and Hindi languages.

Dosto, CodeOneDigest youtube channel pe aapko programming languages, container technology, cloud computing, software engineering se related videos milenge.

Check out our channel here:

https://www.youtube.com/channel/UC9V0QYsWKz_OD2uooCtEtRg

Don’t forget to subscribe!

?

OUR WEBSITE

https://codeonedigest.wordpress.com/

?

GET IN TOUCH

Contact us on [email protected]

?

FOLLOW US ON SOCIAL - LIKE, SHARE & SUBSCRIBE

Get updates or reach out to Get updates on our Social Media Profiles!

Subscribe: https://bit.ly/3NeWQ8U

Youtube: https://www.youtube.com/channel/UC9V0QYsWKz_OD2uooCtEtRg

Twitter: https://twitter.com/codeonedigest

Facebook: https://www.facebook.com/codeonedigest

Instagram: https://www.instagram.com/codeonedigest/

Linkedin: https://www.dhirubhai.net/in/codeone-digest-10b418255/

Reddit: https://www.reddit.com/user/codeonedigest

Github: https://github.com/codeonedigest

Website: https://codeonedigest.wordpress.com/

Tumblr: https://www.tumblr.com/codeonedigest

Pinterest: https://in.pinterest.com/codeonedigest/

要查看或添加评论,请登录

codeonedigest cod的更多文章

社区洞察

其他会员也浏览了