Connection
Work with teamspace data connections.
Usage:
lightning connection [OPTIONS] COMMAND [ARGS]...Commands
Command |
Description |
|---|---|
Print short-lived credentials for a data connection’s bucket. |
lightning connection credentials
Print short-lived credentials for a data connection’s bucket.
These credentials expire, usually within the hour. Rather than refreshing them yourself, wire this command into an AWS profile as a credential_process and let the tool re-run it on expiry - the AWS CLI, boto3, rclone, s5cmd and the Go SDK all understand that setting.
- Setup:
lightning connection credentials my-bucket –format profile >> ~/.aws/config
- Then use it:
aws s3 ls s3://my-bucket –profile my-bucket
Usage:
lightning connection credentials [OPTIONS] CONNECTIONArguments
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
yes |
No description provided. |
Options
Option |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
no |
— |
The teamspace to use, as a bare name or an ‘owner/teamspace’ slug. Defaults to the current teamspace. |
|
|
no |
— |
The organization owning the teamspace (if any). Defaults to the current organization.(DEPRECATED: Pass the owner as part of –teamspace instead, e.g. ‘–teamspace owner/teamspace’. This option will be removed in a future release.) |
|
|
no |
— |
The user owning the teamspace (if any). Defaults to the current user.(DEPRECATED: Pass the owner as part of –teamspace instead, e.g. ‘–teamspace owner/teamspace’. This option will be removed in a future release.) |
|
|
no |
|
credential-process emits the JSON AWS tools expect from a credential_process command. profile emits an ~/.aws/config stanza that calls this command to refresh. |
Was this page helpful?
Thanks for the feedback.