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:-
- Go to the IAM console.
- Select Policies from navigation panel.
- Choose Create policy.
Note:- A welcome message must appear if you are creating your first policy. Click on Get Started. - Many options will list there. Choose to create Policy on the JSON Tab.
- 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/*"] } ] }
- Next, enter the Name for your policy and give an optional Description.
- 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.
- Go to the IAM console.
- Choose User from the navigation pane and choose Add User option.
- Next, name the user and choose to allow only Programmatic Access. Click on Next:Permissions.
- In the next page, Choose Attach Existing Policy. Next, search and select the above created policy by name. Proceed to add Tags then.
- Tags are optional. You can skip them for now.
- On the Review Page, verify the fields and proceed to Create User.
- 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.