AWS S3 Transfer
Last updated
Was this helpful?
Last updated
Was this helpful?
The EDC provides the capability to transfer data from and to AWS S3 buckets. This guide provides step-by-step instructions on how to:
Set up AWS S3 buckets using the AWS Console
Prepare the necessary parameters for providing and consuming S3 buckets
Configure the EDC to provide an S3 bucket as a data source
Initiate a data transfer using a consuming EDC
To enable access to an AWS S3 bucket, follow these steps using the AWS Console.
This guide holds for AWS long-term credentials
.
Create a S3 Bucket
Follow the AWS guide:
Create an IAM User
Follow the AWS guide:
Navigate to IAM
> Users
> Add User
Assign the necessary permissions to allow access to the S3 bucket
Reference:
Policies could be configured such that it is only possible to read/write certain objects in certain buckets
Create an Access Key
Go to the IAM user details page
Select the Security credentials
tab
Generate an Access Key
: Thirdparty-Service
AWS_S3_REGION
The region that has been chosen for the S3 bucket during the Create a S3 Bucket
step
AWS_S3_BUCKET_NAME
The name that has been chosen for the S3 bucket during the Create a S3 Bucket
step
AWS_S3_OBJECT_NAME
The object stored in the S3 bucket that needs to be provided/created
AWS_KEY_ID
The keyId created in step Create an Access Key
AWS_SECRET
The secret of the key created in step Create an Access Key
To configure an EDC instance as a data provider, follow these steps:
Refer to the general EDC data provisioning guide
Define Policies
and ContractDefinitions
(same as for other data sources)
Configure the Asset
for AWS S3 with the EDC Management API using the following JSON payload:
To consume an S3 bucket from another connector, a Contract Agreement must be successfully negotiated. This can be achieved using the EDC UI:
Follow the guide for Finding Offers & Contracting in this documentation.
The following variables are required for starting the Transfer Process
later:
All of them can be seen by using the Contracts
page of the EDC-Ui and viewing the details of the corresponding contract.
COUNTER_PARTY_DSP
(Data Space Protocol endpoint of the provider)
COUNTER_PARTY_BPN
(Business Partner Number of the provider)
ASSET_ID
(Identifier of the asset to be consumed)
CONTRACT_AGREEMENT_ID
(Agreement ID of the negotiated contract)
Initiating a Data Transfer
Use the following JSON payload to start a data transfer request using the Transfer Process within the Management API.
Follow the AWS guide: