Skip to content

fetch a data hosted in a S3 bucket

The customer wants to use a playbook to fetch a data hosted in a S3 bucket on his own account.

Customer wants use playbook fetch data

Aws credentials

The customer needs to create an IAM user. For that he should go under IAM and click on Add users

Aws configuration

Then choose a name for the user and grant him an Access key

Aws configuration

Then set the rights. In this example we create a user that will access all S3 buckets in read only. For additional security, a boundary could be set, for example the rights could be restricted to a single bucket.

Aws configuration

Add some tags

Aws configuration

Review the user and click on create user

Aws configuration

In the Vault, create a new credential.

Mindflow configuration

Mindflow configuration

In Credential type, select AWS Signature V4.

Mindflow configuration

Mindflow configuration

Fill the configuration form with the previously created access key and secret.

Mindflow configuration

You’re done ! You can configure any AWS S3 step with this credential.

Aws assume role credentials

In the Vault, create a new credential.

Mindflow configuration

Mindflow configuration

In Credential type, select AWS Assume Role.

Mindflow configuration

Retrieve mindflows aws account id

Once selected, Mindflow account id will appear as an item of the configuration form.

Retrieve mindflows aws account id

Copy the id and save Mindflow’s tab for later. We need to create a role in the AWS Console before going further.

Create a Role under IAM.

Create aws iam role

Then add the Mindflow AccountId as the trusted entity.

Create aws iam role

Then add the appropriate rights to the role. In this example we add S3ReadOnly access role.

Create aws iam role

Review and Create role.

Create aws iam role

Back in Mindflow’s tab, fill the rest of the form with the created role’s ARN. Also make sure that the correct region and service are used.

Create credential

Finally the appropriate AWS service can be used.

Create credential