amazone s3 in mule

Click here to load reader

Upload: ramakrishna-kapa

Post on 07-Jan-2017

146 views

Category:

Software


1 download

TRANSCRIPT

Amazone S3 in Mule

The Anypoint Amazon S3 Connector provides connectivity to the the Amazon S3 API, enabling you to interface with Amazon S3 to store objects, download and use data with other AWS services, and build applications that call for internet storage.Instant access to the Amazon S3 API enables seamless integrations between Amazon S3 and other databases, CMS applications such as Drupal, and CRM applications such as Salesforce.Amazon S3 in Mule

Prerequisites

To use the Amazon S3 connector, you must have the following:Access to Amazon Web Services.To access AWS with the connector, you need the credentials in the form of IAM.Anypoint Studio Enterprise edition.

ParameterDescriptionNameEnter a name for the configuration to reference it.Access KeyAlphanumeric text string that uniquely identifies the user who owns the account.Secret KeyKey that plays the role of a password.

Amazon Simple Storage Service (Amazon S3) is storage for the Internet. You can use Amazon S3 to store and retrieve any amount of data at any time, from anywhere on the web. You can accomplish these tasks using the simple and intuitive web interface of the AWS Management Console.The AWS SDK for Java provides a Java API for AWS infrastructure services. The Amazon S3 connector is built using the SDK for Java

About Amazon S3Amazon S3 offers a range of storage classes designed for different use cases including Amazon S3 Standard for general-purpose storage of frequently accessed data, Amazon S3 Standard - Infrequent Access (Standard - IA) for long-lived, but less frequently accessed data, and Amazon Glacier for long-term archive. Amazon S3 also offers configurable lifecycle policies for managing your data throughout its lifecycle. Once a policy is set, your data will automatically migrate to the most appropriate storage class without any changes to your applications

Create a new mule projectDemo_amazoneS3

Drag Http component and S3 from palette

Configuration of S3 to create bucket name in S3

Create a global element for amazon S3 like below

Bucket created successfully

Run as mule applicationBy using the below url hit http://localhost:8081/s3We can get the following output:Bucket created successfully----------object

Using the Connector (operations)Abort Multipart UploadComplete Multipart UploadCopy ObjectCreate BucketCreate ObjectCreate Object Presigned URIDelete BucketDelete Bucket Cross Origin ConfigurationDelete Bucket Lifecycle ConfigurationDelete Bucket PolicyDelete Bucket Tagging ConfigurationDelete Bucket Website ConfigurationDelete ObjectDelete ObjectsGet Bucket ACLGet Bucket Cross Origin ConfigurationGet Bucket Lifecycle ConfigurationGet Bucket LocationGet Bucket Logging ConfigurationGet Bucket Notification Configuration

Get Bucket PolicyGet Bucket Tagging ConfigurationGet Bucket Versioning ConfigurationGet Bucket Website ConfigurationGet ObjectGet Object ACLGet Object ContentGet Object MetadataInitiate Multipart UploadList BucketsList Multipart UploadsList Next Batch of ObjectsList Next Batch of VersionsList Objects

List PartsList VersionsSet Bucket ACLSet Bucket Cross Origin ConfigurationSet Bucket Lifecycle ConfigurationSet Bucket Logging ConfigurationSet Bucket Notification ConfigurationSet Bucket PolicySet Bucket tagging ConfigurationSet Bucket Versioning ConfigurationSet Bucket Website ConfigurationSet Object ACLSet Object Storage ClassUpload PartUpload Part Copy