سؤال

I need to use a program called s3cmd in a ShellCommandActivity. How can I do this? Do I have to create a new EC2 Image ( and then install everything thats needed for pipeline etc..) and specify it in the pipeline or is there an existing Pipeline EC2 Image I can add something to? I also tried installing it in the script by running sudo su yum -y install s3cmd

which failed: "sudo: sorry, you must have a tty to run sudo"

هل كانت مفيدة؟

المحلول

If you need custom stuff on your instance, you should build a custom AMI with whatever you want already installed. This works well with data pipelines because it reduces the risk of something failing when you bring up the instance for the step by already having everything installed.

نصائح أخرى

You can use UserData which are custom scripts run by the instance at startup. The process is outlined here

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top