Amazon Simple Storage Service (AWS S3)
Many of the SAP Data Intelligence connectors support AWS S3, and there are common characteristics that this service has across the operators.
AWS S3 is an object store service, which is documented in the AWS S3
Website.
Connection
|
Value |
Description |
Parameters |
|---|---|---|
|
Bucket |
Optional bucket name to access. The Bucket works as a “fallback” of the connection root path configuration. |
|
|
Proxy |
Optional proxy to use in the connection to the service. |
|
|
Use SSL |
Specifies whether to use SSL/TLS when connecting to the service. |
|
Permissions
Permissions in AWS are required to operate over AWS S3 objects. Each operator can require a determined set of permissions to operate successfully.Read File Permissions
-
s3:GetObject for the given object. See also AWS S3 GET Object
in the AWS documentation. -
s3:GetObjectVersion for the given object.
-
s3:ListBucket to read multiple objects in a prefix ("directory"). ASW requires the permission for the bucket where the prefix is to be listed.
-
s3:DeleteObject for the given object when you use Delete After Send. For more information, see DELETE Object
in the AWS documentation.
Write File Permissions
To write an object ("file"), you need the permission s3:PutObject for the bucket to receive the object. For more information, Policies and Permissions in Amazon S3
in the AWS documentation.
If you use the mode "Append", you also need the permission s3:GetObject for the given object. This permission is required because of the write file permission restriction documented in Restrictions. For more information, see GetObject
in the AWS documentation.
Remove File Permissions
To remove an object ("file"), you need the permission s3:DeleteObject for the given object. For more information, see DeleteObject
in the AWS documentation.
Move File Permissions
Because moving files consists of copying and removing in AWS S3, use the permissions documented in Remove File Permissions and Copy File Permissions sections.
Copy File Permissions
-
s3:GetObject for the source object.
-
s3:PutObject for the bucket to receive the copied object.
If copying by prefix ("directory"), the operation is bound to the same permissions documented in Read File Permissions.
Restrictions
Directory Restrictions
-
Directories: For a path to be interpreted as a directory, end the path with a forward slash (/). For example: /tmp/ is a directory, while /tmp is a file named tmp.
-
Working directory: Because there's no concept of a "working directory", any relative directory given to or by this service has the root directory (/) as working directory.
Write File Restrictions
AWS S3 API doesn't support the "Append" mode. If you use the “Append” mode, the operation retrieves the whole file from the service, and then writes the data back to AWS S3, which compromises the operation's efficiency.
Move File Restrictions
AWS S3 API doesn't support the “move” operation. If you use the “Move” operation, the operation copies the file and then removes the source file. However, if there's a failure, the operation may copy the file but not remove the source file.
Copy File Restrictions
-
If the destination is a file, the source must also be a file.
-
If the destination is a directory, the directory must be empty.