All pages
Powered by GitBook
1 of 1

Loading...

AWS API

It's possible to interact with different AWS services that support access via HTTP API and Signature V4 signing using the AWS API Connection.

An example of such request could be the creation of an S3 bucket. Let's review the steps needed to implement this use case in UI Bakery:

  1. Create a new IAM user.

When running UI Bakery in the Production environment, we strongly recommend limiting IAM user's access only to the operations they are allowed to perform. For more information, please refer to .

  1. .

  2. .

  3. .

Configuration

Connecting the UI Bakery AWS API data source

  1. On the Data sources page, click Connect, and select AWS API in the Data sources list.

  2. Paste the Access key ID and Secret access key ID you've created before.

  3. Configure the region where you want to create your bucket, for example, us-west-2. For the AWS service name, use s3.

Usage

Creating an S3 bucket via UI Bakery action

Once your datasource is configured, you can go to your project and open the actions panel. There, create a new action of the type and select the datasource you configured in the previous step.

According to , in order to create an S3 bucket, you need to send a PUT request to https://<your-new-bucket-name>.s3.<your-aws-region>.amazonaws.com with the body containing the following XML (replace LocationConstraint contents with your region):

Once the action is configured, you can execute it and check if the S3 bucket was created.

You can set the bucket name dynamically in the URL field based on the value of some input. For more information, refer to .

Click Test connection to check whether the data source can be connected, and then click Connect Datasource.

AWS documentation
Generate Access key ID and Secret Access key ID
Connect UI Bakery AWS API data source
Create an S3 bucket via UI Bakery action
HTTP Request
AWS S3 API
this article
<?xml version="1.0" encoding="UTF-8"?>
<CreateBucketConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
   <LocationConstraint>us-west-2</LocationConstraint>
</CreateBucketConfiguration>