How to use awscli inside ruby script?

Viewed 787

I have a awscli command to upload content to s3 bucket. I need to run this command on a ruby script. The command works when executed in terminal. I tried using several methods like backticks and Kernel#system.

value = `aws s3 cp #{published_files} s3://example_bucket/#{meeting_id} --recursive --region us-west-2`

But none of them seem to execute the task. Can anyone suggest any way? It would be of great help

1 Answers
Related