Menu Close
    Start a Project Request quote Reading list Switch to dark mode
    odoo-marketplace-mod

    Getting started with Amazon S3 Bucket

    Amazon Simple Storage Service (Amazon S3) is web based cloud storage service. It is an object base storage service capable of storing/managing any amount of data. Bucket is the fundamental storage container of AWS S3.

    Overview

    In this blog, we will see how to :-

    1. Create an Amazon S3 Bucket
    2. Accessibility to S3 Bucket
    3. Create an IAM Policy to have access to specific Bucket
    4. Create an IAM user with Access key id and Secret key

    Create an Amazon S3 Bucket

    You need to log on to AWS console using IAM user (with privileges enough to create an AWS S3 bucket) or as Admin.

    Follow below steps to create an Amazon S3 bucket.

    1. Go to S3 panel and Choose Create Bucket.
    2. Name your bucket and choose Region. Note:- It has to be unique globally.  
    3. In the next Configure Options Page, some options regarding object versioning and logging can be set. For now just Click on Next. Note:- Can click on Previous to return to last configuration screen.
    4. Next in Set Permissions page, some default precautionary settings can be changed. Keep them untouched for now and Click on Next.
    5. Next, you can Review all the bucket configuration. Click on Create Bucket.

    Once the bucket is created, you can check the bucket in AWS console.

    Accessibility to Buckets

    1.  Private Access:- By default, every bucket is private i.e. the access to bucket and its resources is restricted to the Account owner and the creator of the bucket.

    2.  Public Access:- Follow below steps to make a Bucket completely public.

    1. Select the specific bucket listed in Amazon S3 console and click on Edit Public access Settings.
    2. Dis-select the just top two options(to allow Public ACLs) and Save. Type “confirm” in new pop-up that appears.
    3. Now, click on your bucket. Click on Access Control List under Permissions sections. Click on check box in front of “everyone” under Public access . A new pop-up will appear where you can select the operations. Then, click on Save.Now you Bucket is public.

    3.  Restricted Access (Not Public):- You can allow restricted access to your bucket by using IAM policy or Bucket Access Policy. The access can be limited to just a specific Bucket or some if not all. The IAM policy helps you control what all operations a user will/should be able to perform on your bucket. For this, first you need to create an IAM policy that gives required access on specific buckets and attach it your IAM user. Then, the IAM user can use its Access key id and Secret key to perform operations on the specific buckets as per the IAM policy attached.  Follow ahead to read more regarding the steps involved.

     

    Create IAM Policy

    Follow below steps to create an IAM policy which would allow access to a specific S3 Bucket:-

    1.  Go to the IAM console.
    2.  Select Policies from navigation panel.
    3.  Choose  Create policy.
         Note:- A welcome message must appear if you are creating your first policy.   Click on Get Started.
    4. Many options will list there. Choose to create Policy on the JSON Tab.
    5. Paste the below Content.
      Note:- Remember to Change bucket-name accordingly. And click on Review Policy
    6. Next, enter the Name for your policy and give an optional Description.
    7. Click on Create Policy to save the policy.

    The Policy will be created.

     

    Create an IAM User

    Follow below steps to Create an IAM User and attach the above created policy.

      1. Go to the IAM console.
      2. Choose User from the navigation pane and choose Add User option.
      3. Next, name the user and choose to allow only Programmatic Access. Click on Next:Permissions
      4.  In the next page, Choose Attach Existing Policy. Next, search and select the above created policy by name. Proceed to add Tags then.
      5. Tags are optional. You can skip them for now.
    1. On the Review Page, verify the fields and proceed to Create User.
    2. You will get the Access Key ID and Secret key once the user is created.
         Note:-  Ensure to save Secret access key safely because it won’t be available afterwards.

    All Done!!

    Now, use the above generated Access Key ID and Secret Access Key to access Amazon S3 Bucket.

    Use Odoo Amazon S3 Cloud Storage to integrate Amazon S3 Bucket into Odoo.

    Feel free to contact us in case of query. Raise a ticket at http://webkul.uvdesk.com.

    . . .

    Comment

    Add Your Comment

    Be the first to comment.

    Back to Top
    css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again
    Close