Connection

Work with teamspace data connections.

Usage:

lightning connection [OPTIONS] COMMAND [ARGS]...

Commands

Command

Description

credentials

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] CONNECTION

Arguments

Name

Type

Required

Description

CONNECTION

text

yes

No description provided.

Options

Option

Type

Required

Default

Description

--teamspace

TEXT

no

—

The teamspace to use, as a bare name or an ‘owner/teamspace’ slug. Defaults to the current teamspace.

--org

TEXT

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.)

--user

TEXT

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.)

--format

[credential-process|profile]

no

'credential-process'

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?

What went wrong?

↑↓ Navigate↵ Open⌘↵ New tabesc Close