p0 file-transfer
Last updated
The p0 file-transfer command copies a local file to an AWS EC2 instance. In a single command, P0 requests just-in-time access, uploads the file to a temporary S3 staging bucket, connects to the instance over SSH, and has the instance download the file from the bucket with curl.
For setup, the full transfer flow, and troubleshooting, see the File Transfer integration guide.
Logged-in user
p0 login <org-slug>The File Transfer integration installed for the target AWS account. See Transfer a file to an instance for setup.
p0 file-transfer <source> <destination> [options]source
Path to the local file to transfer. Must point to a regular file.
destination
Instance ID or name of the target EC2 instance β the same identifier you use for p0 ssh.
--reason <text>
string
The reason you need access. Approvers see this when they review the request.
--debug
boolean
Print debug information, such as the download URL's expiry and underlying AWS errors.
Transfer a local config.yaml to instance i-1234567890abcdef0:
P0 prompts you through approval, uploads the file, and downloads it to your home directory on the instance, at /home/<your-username>/config.yaml.
Transfer a file to an instance β full transfer flow and troubleshooting.
p0 scp β copy files over SSH for smaller transfers or remote-to-local copies.
Last updated
p0 file-transfer ./config.yaml i-1234567890abcdef0 --reason "Deploy updated config"