Quantcast
Channel: Webkul Blog
Viewing all articles
Browse latest Browse all 5488

AWS IAM setup for Odoo Amazon S3 Cloud Storage

$
0
0

Odoo Amazon S3 Cloud Storage is an Odoo module from Webkul that allows you to integrate Amazon S3 into your Odoo. You can find more details  here.

In order to setup Odoo Amazon S3 Cloud Storage, you need to:-

1. Create an IAM User with Access Key id and Secret Access Key.
2. Create an IAM Policy to authorise IAM User to access Specific S3 Bucket.

 

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
    {
        "Version": "2012-10-17",
        "Statement": [
            {
                "Effect": "Allow",
                "Action": [
                    "s3:GetBucketLocation",
                    "s3:ListAllMyBuckets"
                ],
                "Resource": "*"
            },
            {
                "Effect": "Allow",
                "Action": ["s3:ListBucket"],
                "Resource": ["arn:aws:s3:::mention-your-bucket-name-here"]
            },
            {
                "Effect": "Allow",
                "Action": [
                    "s3:PutObject",
                    "s3:GetObject",
                    "s3:DeleteObject"
                ],  
                "Resource": ["arn:aws:s3:::mention-your-bucket-name-here/*"]
            }
        ]
      }
  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.
  6. On the Review Page, verify the fields and proceed to Create User.
  7. 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!!

Use the above generated Access Key ID and Secret Access Key to configure Odoo Amazon S3 Cloud Storage

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


Viewing all articles
Browse latest Browse all 5488

Trending Articles