- Go to AWS Management Signin
- Click on
Create a new account
- Enter your details:
- Root user email:
Your email
- AWS account name:
Your name
- Root user email:
- Verify your email
- Set root user password:
Your password
- Choose
Personal
for Personal or professional - Enter your Full name:
Your name
- Choose Phone number
- Enter Country code:
Your country code
- Enter Address:
Your address
- Provide your credit card details and click on
Verify
- Choose
Basic plan (free)
and click onContinue
- Click on
Create account and continue
- Login with your email and password
- Go to this link
- Click on
Create bucket
- Copy the bucket name and bucket region and paste it in your
.env
file
- Search for
IAM
in the search bar and click on it - Click on
Policies
and then click onCreate policy
- Choose
Visual
and selectS3
, and then we will give few permissions to the user- For
Read
, selectGetObject
- For
Write
, selectPutObject
andDeleteObject
- Click on
Review policy
- For
- Click on the
Resources
and select the bucket name, so click on the specific bucket and then click onAdd ARNs
add the bucket name and click onAdd
then select any object from the bucket - Give the policy a name and description and then click on
Create policy
- Go to
Users
and click onAdd user
give username check onProvide user access to AWS Management Console
- Select
I want to create an IAM user
- Give custom password and uncheck on
Require password reset
- Attach existing policies which we have created and then click on
Next
- Click on
Create user
and then download the csv file and then click onClose
- Click on the user and then click on
Security credentials
and then click onGenerate access key
and choose other - Click on the
Create access key
and then download the csv file and then click onClose
- Now you will see the access key id and secret access key
Finally, copy that access key id and secret access key and paste it in your .env
file.