Transfering a file from local machine to EC2 instance

0

I am running an Ubuntu ec2 instance using aws and I am trying to import a file from my local machine into it, but I created it without a key pair. How do I transfer the file?

Shanky
posta 6 mesi fa391 visualizzazioni
2 Risposte
1
  1. What I have done in the past is upload the file to a S3 bucket.
  2. Ensure the IAM role on the EC2 has access to the bucket
  3. Use AWS S3 cli to copy the file locally to the EC2
profile picture
ESPERTO
con risposta 6 mesi fa
0

Hello.

For Ubuntu, I think it is possible to use Systems Manager Session Manager.
How about connecting to EC2 with Session Manager and setting a private key for SCP?
https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-prerequisites.html

profile picture
ESPERTO
con risposta 6 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande