Launching EC2 instance and creating EBS volume then attaching it to instance using AWS CLI and bash scripting
The AWS Command Line Interface (CLI) is a unified tool to manage your AWS services. With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts. For more info: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides secure, resizable compute capacity in the cloud. For more info: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts.html Amazon Elastic Block Store (Amazon EBS) provides block-level storage volumes for use with EC2 instances. For more info: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AmazonEBS.htmlUsing the AWS CLI and Bash scripting:
- Create a key-pair
- Create a security-group
- Launch an EC2 instance & attach above key-pairs and SG
- Create an EBS Volume and attach it to the EC2 instance created above