A company needs to implement a simple, automated solution to stop all non-production Amazon EC2 instances every evening at 19:00. The systems administrator plans to write a shell script on an on-premises server that will execute API commands to filter and stop these instances. Which AWS tool or service is best suited to execute these commands directly from the shell script with minimal development effort?
- AAWS Management Console
- AWS Command Line Interface (CLI)Answer
- CAWS CloudFormation
- DAWS Software Development Kit (SDK)
Answer
AWS Command Line Interface (CLI)
The AWS Command Line Interface (CLI) is the most efficient choice because it allows the administrator to run commands directly from the shell script, requiring only simple syntax and no programming language compilation or runtime overhead.
Step-by-Step Solution
Key Concept
Methods of Deploying and Operating in AWS