S3 Buckets
These action nodes allow you to manage and maintain AWS S3 resources.
Configure S3 buckets in Spot Connect
-
In the left main menu, click Connect and click Settings.
-
Under the Resources tab, select S3 Buckets.
-
Configure a new integration instance.
-
Click Add Resource.
Details needed to set up an S3 Buckets instance in Spot Connect:
Parameter Description Required Resource Alias A name for the integration instance True Target Account AWS account which has the S3 bucket True S3 Bucket Name of the S3 bucket True -
Enter a Resource Alias and select a target account.
-
Select the S3 bucket to add.
-
Click Add Resource.
Integration Actions
You can add these actions in the Spot Connect workflow builder as part of your workflow.
- S3 Create Bucket
- S3 Delete Buckets
- S3 Enable Logging
- S3 Get Buckets Size
- S3 Get Key Data
- S3 Make Bucket Public
- S3 Pick Bucket
- S3 Put Bucket Cors
- S3 Set Bucket Policy
S3 Create Bucket
Use the action in your Spot Connect Workflow to create an S3 bucket in your target AWS account.
Input
Parameter | Description | Required |
---|---|---|
Target Account Alias | Target account alias to be used to perform given operation | True |
Bucket Name | S3 Bucket Name | True |
Region | AWS region for the new S3 bucket | True |
Acl | ACL of bucket ('private'|'public-read'|'public-read-write'|'authenticated-read') | True |
Region Name | AWS region name | False |
Output
Parameter | Type | Description |
---|---|---|
bucket_name | String | Name of the created bucket |
bucket_location | String | Location where the bucket is created |
execution_status | String | Status of run (ie: S_OK / E_FAIL) |
Action Example
Input
Output
S3 Delete Buckets
Use this action node to delete an S3 bucket(s) from your target AWS account.
Input
Parameter | Description | Required |
---|---|---|
Target Account Alias | Target account alias to be used to perform given operation | True |
Bucket Names | S3 Bucket Names | True |
Region Name | AWS region name | False |
Output
Parameter | Type | Description |
---|---|---|
bucket_names | String | Name of the deleted buckets |
execution_status | String | Status of run (ie: S_OK / E_FAIL) |
Action Example
Input
Output
S3 Enable Logging
Use this action node to enable S3 buckets to log.
Input
Parameter | Description | Required |
---|---|---|
Target Account Alias | Target account alias to be used to perform given operation | True |
Region Name | AWS region name | True |
Target Bucket Name | Target Bucket Name | True |
Output
Parameter | Type | Description |
---|---|---|
successfully_enabled | StringMap | S3 buckets with logging enabled |
failed_to_enable | StringMap | S3 buckets where logging could not be enabled |
already_enabled | StringMap | S3 buckets with logging enable already |
total_buckets_count | Integer | Total count of buckets |
target_bucket_name | String | Name of bucket which stores logs |
execution_status | String | Status of run (ie: S_OK / E_FAIL) |
Action Example
Input
Output
The execution of the workflow above will enable all S3 buckets to log.
S3 Get Buckets Size
Use this action node to calculate the size of S3 buckets.
Input
Parameter | Description | Required |
---|---|---|
Target Account Alias | Target account alias to be used to perform given operation | True |
Bucket Names | S3 Bucket Names | True |
Region Name | AWS region name | False |
Output
Parameter | Type | Description |
---|---|---|
bucket_sizes | StringMap | Size of buckets |
total_size | String | Total size |
execution_status | String | Status of run (ie: S_OK, E_FAIL) |
Action Example
Input
Output
S3 Get Key Data
Use this action node to read contents of an S3 key (up to 100KB).
Input
Parameter | Description | Required |
---|---|---|
Target Account Alias | Target account alias to be used to perform given operation | True |
Bucket | S3 Bucket | True |
Key | Name of S3 key | True |
From End | Behave like tail instead of head | False |
Max Size | Only get this much data, defaults to MAX_OUTPUT | False |
Output
Parameter | Type | Description |
---|---|---|
output | String | Content of the object |
is_truncated | Boolean | Denotes if content is truncated |
execution_status | String | Status of run (ie: S_OK, E_FAIL) |
Action Example
Input
Output
S3 Make Bucket Public
Use this action node to make an S3 bucket public.
Input
Parameter | Description | Required |
---|---|---|
Target Account Alias | Target account alias to be used to perform given operation | True |
Bucket Name | S3 Bucket Name | True |
Region Name | Region name | False |
Output
Parameter | Type | Description |
---|---|---|
request_id | String | Request ID |
host_id | String | Host ID |
execution_status | String | Status of run (ie: S_OK, E_FAIL) |
Action Example
Input
Output
S3 Pick Bucket
This action node enables you to select from a list of S3 buckets.
Input
Parameter | Description | Required |
---|---|---|
Target Account Alias | Target account alias to be used to perform given operation | True |
Bucket Name | S3 Bucket Name | True |
Output
Parameter | Type | Description |
---|---|---|
bucket | String | Target bucket name |
alias | String | Target account alias |
execution_status | String | Status of run (ie: S_OK, E_FAIL) |
Action Example
Input
Output
S3 Put Bucket Cors
Use this action node to set the S3 bucket cors configuration.
Input
Parameter | Description | Required |
---|---|---|
Target Account Alias | Target account alias to be used to perform given operation | True |
Bucket Name | S3 Bucket Name | True |
Allowed Methods | HTTP methods that are allowed ie: [POST, GET] | True |
Allowed Origins | Request origin allowed ie: [0.0.0.0, example.com ] | True |
Region Name | AWS region name | False |
Output
Parameter | Type | Description |
---|---|---|
bucket_name | String | Target Bucket Name |
request_id | String | Request ID |
host_id | String | Host ID |
execution_status | String | Status of run (ie: S_OK, E_FAIL) |
Action Example
Input
Output
S3 Set Bucket Policy
Use this action node to set the S3 bucket resource policy.
Input
Parameter | Description | Required |
---|---|---|
Target Account Alias | Target account alias to be used to perform given operation | True |
Bucket Name | S3 Bucket Name | True |
Resource Policy | S3 Bucket resource policy in JSON | True |
Confirm Remove Self Bucket Access | Remove self access or not | False |
Region Name | AWS Region Name | False |
Output
Parameter | Type | Description |
---|---|---|
request_id | String | Request ID |
host_id | String | Host ID |
execution_status | String | Status of run (ie: S_OK, E_FAIL) |
Action Example
Input
Output