Create file in AWS S3 Using REST AWS SigV4 Account
The following example Pipeline demonstrates how we can create a new file in AWS S3 bucket.
Broadly, creating a new file in AWS S3 is a three step process:
.png)
Prerequisites
- Configure a valid REST AWS SigV4 Account to authenticate the REST APIs.
- Configure Filename as your Pipeline parameter and an S3 account for the bucket.
Create File Operation
- Configure the REST POST Snap to perform the create file operation. To this end,
we configure the Snap as follows:
.png)
- Configure the Mapper Snap to map the response.entity to the
XMLOutput column.
.png)
- Configure another Mapper Snap to extract the uploadId of the entity.
.png)
- Upon validation, the Snap generates the output with uploadId as follows:
.png)
Upload File operation
- Configure the REST PUT Snap as follows to perform the upload file
operation.
.png)
- Configure the Mapper Snap to extract the etag and uploadId.
.png)
- Upon validation, the Snap generates the output with etag and
uploadId entities as follows:
.png)
Complete File operation
- Configure the REST HTTP POST Snap to complete the file operation.
.png)
- Upon validation, the Snap generates the output preview as follows:
.png)
- Configure the REST GET Snap to extract the required details from the uploaded
file.
.png)
- Upon validation, the Snap generates the output preview as follows:
.png)
- Ensure that you have a valid SnapLogic account and project creation permissions.
- Verify that the REST Post Snap successfully creates a project before running the REST Delete Snap.
- Confirm that the REST Delete Snap output indicates successful deletion.