Web API Edition | ComponentOne
Services / Cloud Services / Configure AWS Web API Service
In This Topic
    Configure AWS Web API Service
    In This Topic

    To configure AWS Web API Service and perform different operations, follow these steps:

    1. Configure Storage Connection String
    2. Register the Cloud Service
    3. Perform Operations

    Step 1: Configure Storage Connection String

    1. Create a Bucket. For creating an Amazon S3 bucket, see Create an S3 Bucket.
    2. Generate an access token and Secret Access Key for your application. For detailed information on how to obtain access token, see Understanding and Getting Your Security Credentials.
    3. Check region for your AWS app.
    Back to Top

    Step 2: Register the Cloud Service

    1. Create a new C1 Web API Application and make sure the following references are added to the application:
      • C1.Web.Api.dll
      • C1.Web.Api.Cloud.dll
      • AWSSDK.S3
    2. Register the AWS cloud service using the following code:
      Code
      Copy Code
      app.UseStorageProviders().AddAWSStorage("AWS", “aWSAccessTocken”, “secretKey”, “bucketName”, region);
      
    Back to Top

    Step 3: Perform Operations

    You can choose to perform various operations, such as listing data, uploading, deleting or downloading a file, after registering the cloud service. To understand how to perform these operations, see Perform Operations.

    Back to Top