With a configured AWS account, here's how to use those scripts. Before starting make sure that you have installed aws command line interface tools (sudo pip install awscli
)
- give the execution rights for all scripts:
chmod +x aws_*.sh
- (only the first time) create your security group with aws_security_group.sh
- (only the first time) create your key pair:
./aws_keypair.sh
- execute aws_request.sh
- check your request state with aws_check.sh
- once your request state is 'active' you can retrieve its IP address with aws_set_ip.sh
- to get the instance_ip environment variable, type
source ~/.bashrc
- connect to your instance with aws_connect.sh
- whenever you're done, terminate your instance with aws_kill.sh