Manage an external data-source connection (SFTP, AWS S3)
manage_connectionCreate, test, list, or delete workspace connections to SFTP and AWS S3 data sources. Manages keypairs and IAM roles, and verifies connectivity before triggers.
Instructions
Create, list, test, or delete a workspace connection to an external data source. For sftp, create generates a keypair and returns the public key to install in the remote server's authorized_keys. For aws_s3, create generates an ExternalId and trust policy for an IAM role the customer must create. A connection must pass test before it can be used in a trigger.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Connection type. Required for create; defaults to sftp. | |
| action | Yes | Which operation to perform. | |
| roleArn | No | aws_s3 only. The IAM role the customer will create/update. Required for create. | |
| hostname | No | sftp only. Remote server hostname. Required for create. | |
| username | No | sftp only. Remote username. Optional for create; defaults to sftpuser. | |
| workspaceId | No | Workspace to act on. Defaults to your only workspace if you have exactly one. | |
| connectionId | No | Existing connection to test or delete. Required for test/delete. |