Offloading analytics data to S3
Configure analytics to offload data to AWS S3 storage.
Before you begin
To configure the analytics data offload, you must be assigned the following permissions in the provider organization:
- api-analytics:view
- api-analytics:manage
Procedure
- Create an AWS S3 bucket to store your data:
- Sign in to the Amazon Web Services S3 page.
If you don't have an AWS account, you can create it now by clicking Complete Sign Up in the page banner.
- Create an S3 bucket.
Create an S3 bucket in the same region as your API Connect instance (for example, for us-east, use the
us-east-1 region
). Provide a name for the bucket, and select the default storage options. Your Analytics data will be offloaded to this bucket.For information on creating and using AWS S3 storage, see the Amazon S3 User Guide.
- Sign in to the Amazon Web Services S3 page.
- Create an IAM policy to control access to your new S3 bucket.
- Navigate to the AWS Identity and Access Management page.
- In the IAM navigation list, click Policies.
- On the Policies page, click Create policy.
- Select the JSON tab.
- Paste the following JSON code to define the access policy. Attention: In the code, replace
<BUCKET_NAME>
with the name of your new S3 bucket, making sure not to delete or overwrite the * that follows the bucket's name.{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:ListBucket", "s3:GetBucketLocation", "s3:DeleteObject", "s3:PutObject", "s3:GetObject", "s3:AbortMultipartUpload", "s3:ListMultipartUploadParts", "s3:ListBucketMultipartUploads" ], "Resource": "arn:aws:s3:::<BUCKET_NAME>*" } ] }
For information on creating an access policy, see the AWS Identity and Access Management User Guide.
- Optional: Click Next: Tags and create tags to identify the policy.
- Click Next: Review.
- Create an IAM role (the role will be assigned to the new access
policy).
- In the IAM navigation list, click Roles.
- On the Roles page, click Create role.
- In the "Select Trusted Entity" section, select AWS account as the trusted entity type.
- Then, for "An AWS account" select Another AWS account and
provide the following information about the account:
- Account ID: Enter
623947394061
as the ID for API Connect Enterprise as a Service. - Options: Select Require external ID
- External ID: Provide an identifier for the API Connect Enterprise as a
Service account; for example,
ibm-apiconnect-offload
. The ID must be unique within your AWS account.
- Account ID: Enter
- Click Next.
- In the "Add permissions" section, select the IAM policy that you created in step 2, and click Next.
- Provide a Name and Description for the new role.
- Click Create.
- When the confirmation page displays, note down the following values for use in
configuring data offload to the new S3 bucket:
- Role ARN (Amazon Resource Name)
- External ID
- S3 bucket name
- Configure Analytics data offloading in API Connect Enterprise as a
Service:
- Open your API Connect service instance.
- Click Analytics > Offload settings.
- Select S3 as your storage type.
- Provide the following information about your S3 bucket:
- Click Save.
Configuring analytics offload settings takes approximately 15 minutes to finish; the "Offload configured" message displays when the configuration is complete.