Coder Social home page Coder Social logo

cuba-aws's Introduction

license

Overview

CUBA AWS add-on enables using Amazon Simple Storage Service (S3) and compatible services.

Installation

The add-on can be added to your project in one of the ways described below. Installation from the Marketplace is the simplest way. The last version of the add-on compatible with the used version of the platform will be installed. Also, you can install the add-on by coordinates choosing the required version of the add-on from the table.

In case you want to install the add-on by manual editing or by building from sources see the complete add-ons installation guide in CUBA Platform documentation CUBA Platform documentation.

From the Marketplace

  1. Open your application in CUBA Studio. Check the latest version of CUBA Studio on the CUBA Platform site.
  2. Go to CUBA -> Marketplace in the main menu.

marketplace

  1. Find the CUBA Amazon add-on there.

addons

  1. Click Install and apply the changes. The add-on corresponding to the used platform version will be installed.

By Coordinates

  1. Open your application in CUBA Studio. Check the latest version of CUBA Studio on the CUBA Platform site.

  2. Go to CUBA -> Marketplace in the main menu.

  3. Click the icon in the upper-right corner.

    by-coordinates

  4. Paste the add-on coordinates in the corresponding field as follows:

    com.haulmont.addon.cubaaws:cubaaws-global:<add-on version>

    where <add-on version> is compatible with the used version of the CUBA platform.

Platform Version Add-on Version
7.2.x 1.0.1
  1. Click Install and apply the changes. The add-on will be installed to your project.

Configuration

  1. To add Amazon S3 support, you need to register AmazonS3FileStorage class in the spring.xml file in the core module:
    <bean name="cuba_FileStorage" class="com.haulmont.addon.cubaaws.s3.AmazonS3FileStorage"/>
  1. Next, you should define your Amazon settings in the app.properties file in the core module:
  • cuba.amazonS3.accessKey - Amazon S3 access key.

  • cuba.amazonS3.secretAccessKey - Amazon S3 secret access key.

  • cuba.amazonS3.region - Amazon S3 region.

  • cuba.amazonS3.bucket - Amazon S3 bucket name.

  • cuba.amazonS3.chunkSize - Amazon S3 chunk size.

  • cuba.amazonS3.endpointUrl (optional) - Endpoint URL for Amazon S3 compatible storages.

The accessKey and secretAccessKey should be those of your AWS IAM user account, not the AWS account itself. You can find the correct credentials on the Users tab of your AWS console.

Example:

cuba.amazonS3.accessKey = AAAABBBBCCCCDD11CC22
cuba.amazonS3.secretAccessKey = AbCD+eFFGK3iAB9Ca9BCAB7ddDDABcabCabc9aBC
cuba.amazonS3.region = eu-north-1
cuba.amazonS3.bucket = s3-ec2-test
cuba.amazonS3.chunkSize = 5500

Example for Yandex Cloud Object storage

cuba.amazonS3.accessKey = AAAABBBBCCCCDD11CC22
cuba.amazonS3.secretAccessKey = AbCD+eFFGK3iAB9Ca9BCAB7ddDDABcabCabc9aBC
cuba.amazonS3.region = ru-central1
cuba.amazonS3.bucket = test
cuba.amazonS3.chunkSize = 5500
cuba.amazonS3.endpointUrl = https://storage.yandexcloud.net

cuba-aws's People

Contributors

glebshalyganov avatar soraksh avatar gglcrash avatar knstvk avatar basicus avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.