Use API-Level (s3api) commands with the AWS CLI in OnPremise Server

0

https://docs.aws.amazon.com/cli/latest/userguide/cli-services-s3-apicommands.html

I would like to upload logs to S3 using s3api on an on-premise server. Is this possible according to the specifications?

Best Regards,

1 Antwort
2
Akzeptierte Antwort

Hello.

If you can use the AWS CLI, it is possible to upload files from on-premises to S3 using the "aws s3api" command.
You can use "put-object" when uploading files.
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3api/put-object.html

aws s3api put-object --bucket S3_BUCKET_NAME --key sample2/aaa/1 --body test.txt
profile picture
EXPERTE
beantwortet vor 2 Monaten
profile picture
EXPERTE
überprüft vor 2 Monaten
profile pictureAWS
EXPERTE
überprüft vor 2 Monaten
  • CLI is one option but you can also do same thing via the AWS SDK of your preferred language: Python, Java, C#, etc. if you need to integrate this feature in a large programmed framework.

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen