Relative Content

Tag Archive for amazon-web-servicesamazon-ec2

How to do Smart Scheduling of EC2 Instances without lambda and code scripts?

I have a cron job that is scheduled every Saturday and Sunday from an airflow scheduler. The job is such that it performs ssh to a particular instance and then executes a java -cp command to run execute a particular file from a jar which is already present on a particular path. To be specific, there are 5 cron job each of which run once every weekend on a fixed time.
The instance is absolutely free during the weekdays. I need a solution which can can help me reduce the cost of this instance, maybe the instance get stopped or terminated automatically on monday and start again on friday night. I don’t want to go with the lambda approach where I mention the instance id or any identifier which triggers the start and stop of the instance.

How to do Smart Scheduling of EC2 Instances without lambda and code scripts?

I have a cron job that is scheduled every Saturday and Sunday from an airflow scheduler. The job is such that it performs ssh to a particular instance and then executes a java -cp command to run execute a particular file from a jar which is already present on a particular path. To be specific, there are 5 cron job each of which run once every weekend on a fixed time.
The instance is absolutely free during the weekdays. I need a solution which can can help me reduce the cost of this instance, maybe the instance get stopped or terminated automatically on monday and start again on friday night. I don’t want to go with the lambda approach where I mention the instance id or any identifier which triggers the start and stop of the instance.

EBS attached with two ec2 not showing same files and folders

I have attached an EBS (elastic block storage) volume to two EC2 instances to achieve a requirement where one ec2 instance performs some actions and creates files in the volume in specific directory and other ec2 instance uses these file to do some further actions. However it is not working as expected, the files and directories created on from first ec2 are not showing in same volume when accessed through another ec2. It there anything I am missing. Please suggest how it can be done if its not the correct way.