Skip to main content

S3 Buckets

These action nodes allow you to manage and maintain AWS S3 resources.

Configure S3 buckets in Spot Connect

  1. In the left main menu, click Connect and click Settings.

  2. Under the Resources tab, select S3 Buckets.

  3. Configure a new integration instance.

  4. Click Add Resource.

    s3-int-1

    Details needed to set up an S3 Buckets instance in Spot Connect:

    ParameterDescriptionRequired
    Resource AliasA name for the integration instanceTrue
    Target AccountAWS account which has the S3 bucketTrue
    S3 BucketName of the S3 bucketTrue
  5. Enter a Resource Alias and select a target account.

  6. Select the S3 bucket to add.

  7. Click Add Resource.

Integration Actions

You can add these actions in the Spot Connect workflow builder as part of your workflow.

S3 Create Bucket

Use the action in your Spot Connect Workflow to create an S3 bucket in your target AWS account.

Input

ParameterDescriptionRequired
Target Account AliasTarget account alias to be used to perform given operationTrue
Bucket NameS3 Bucket NameTrue
RegionAWS region for the new S3 bucketTrue
AclACL of bucket ('private'|'public-read'|'public-read-write'|'authenticated-read')True
Region NameAWS region nameFalse

Output

ParameterTypeDescription
bucket_nameStringName of the created bucket
bucket_locationStringLocation where the bucket is created
execution_statusStringStatus of run (ie: S_OK / E_FAIL)

Action Example

Input

s3-int-2

Output

s3-int-3

S3 Delete Buckets

Use this action node to delete an S3 bucket(s) from your target AWS account.

Input

ParameterDescriptionRequired
Target Account AliasTarget account alias to be used to perform given operationTrue
Bucket NamesS3 Bucket NamesTrue
Region NameAWS region nameFalse

Output

ParameterTypeDescription
bucket_namesStringName of the deleted buckets
execution_statusStringStatus of run (ie: S_OK / E_FAIL)

Action Example

Input

s3-int-4

Output

s3-int-5

S3 Enable Logging

Use this action node to enable S3 buckets to log.

Input

ParameterDescriptionRequired
Target Account AliasTarget account alias to be used to perform given operationTrue
Region NameAWS region nameTrue
Target Bucket NameTarget Bucket NameTrue

Output

ParameterTypeDescription
successfully_enabledStringMapS3 buckets with logging enabled
failed_to_enableStringMapS3 buckets where logging could not be enabled
already_enabledStringMapS3 buckets with logging enable already
total_buckets_countIntegerTotal count of buckets
target_bucket_nameStringName of bucket which stores logs
execution_statusStringStatus of run (ie: S_OK / E_FAIL)

Action Example

Input

s3-int-6

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

ParameterDescriptionRequired
Target Account AliasTarget account alias to be used to perform given operationTrue
Bucket NamesS3 Bucket NamesTrue
Region NameAWS region nameFalse

Output

ParameterTypeDescription
bucket_sizesStringMapSize of buckets
total_sizeStringTotal size
execution_statusStringStatus of run (ie: S_OK, E_FAIL)

Action Example

Input

s3-int-7

Output

s3-int-8

S3 Get Key Data

Use this action node to read contents of an S3 key (up to 100KB).

Input

ParameterDescriptionRequired
Target Account AliasTarget account alias to be used to perform given operationTrue
BucketS3 BucketTrue
KeyName of S3 keyTrue
From EndBehave like tail instead of headFalse
Max SizeOnly get this much data, defaults to MAX_OUTPUTFalse

Output

ParameterTypeDescription
outputStringContent of the object
is_truncatedBooleanDenotes if content is truncated
execution_statusStringStatus of run (ie: S_OK, E_FAIL)

Action Example

Input

s3-int-9

Output

s3-int-10

S3 Make Bucket Public

Use this action node to make an S3 bucket public.

Input

ParameterDescriptionRequired
Target Account AliasTarget account alias to be used to perform given operationTrue
Bucket NameS3 Bucket NameTrue
Region NameRegion nameFalse

Output

ParameterTypeDescription
request_idStringRequest ID
host_idStringHost ID
execution_statusStringStatus of run (ie: S_OK, E_FAIL)

Action Example

Input

s3-int-11

Output

s3-int-12

S3 Pick Bucket

This action node enables you to select from a list of S3 buckets.

Input

ParameterDescriptionRequired
Target Account AliasTarget account alias to be used to perform given operationTrue
Bucket NameS3 Bucket NameTrue

Output

ParameterTypeDescription
bucketStringTarget bucket name
aliasStringTarget account alias
execution_statusStringStatus of run (ie: S_OK, E_FAIL)

Action Example

Input

s3-int-13

Output

s3-int-14

S3 Put Bucket Cors

Use this action node to set the S3 bucket cors configuration.

Input

ParameterDescriptionRequired
Target Account AliasTarget account alias to be used to perform given operationTrue
Bucket NameS3 Bucket NameTrue
Allowed MethodsHTTP methods that are allowed ie: [POST, GET]True
Allowed OriginsRequest origin allowed ie: [0.0.0.0, example.com ]True
Region NameAWS region nameFalse

Output

ParameterTypeDescription
bucket_nameStringTarget Bucket Name
request_idStringRequest ID
host_idStringHost ID
execution_statusStringStatus of run (ie: S_OK, E_FAIL)

Action Example

Input

s3-int-15

Output

s3-int-16

S3 Set Bucket Policy

Use this action node to set the S3 bucket resource policy.

Input

ParameterDescriptionRequired
Target Account AliasTarget account alias to be used to perform given operationTrue
Bucket NameS3 Bucket NameTrue
Resource PolicyS3 Bucket resource policy in JSONTrue
Confirm Remove Self Bucket AccessRemove self access or notFalse
Region NameAWS Region NameFalse

Output

ParameterTypeDescription
request_idStringRequest ID
host_idStringHost ID
execution_statusStringStatus of run (ie: S_OK, E_FAIL)

Action Example

Input

s3-int-17

Output

s3-int-18