virtualenv SaltStack source SaltStack/bin/activate pip install salt pip install apache-libcloud pip install awsclicreated a new user in AWS console using Identity Management console
testuser Access Key ID: ABCDEFGHIJKLMNO235M Secret Access Key: aVeBUeixIlt1ScfseCV344NMnrx4fecNnex9mNNmjyjWvNote: Above Key ID and Access Key are replaced with junk vales and will not work.
Above user “testuser” was added to AdministratorAccess policy in IAM (identity access management) in AWS console (Web interface).
In order to spin new instance and to be able to connect to them afterwards , we need a key pair. Either we can generate a new pair and upload it to AWS or generate it in AWS console (web interface) itself. In my case I had already generated the KeyPair. This key pair is called as “MyEC2Key”. This can be viewed under
“compute” -> “EC2” -> “Key Pair"
Now create a “Security Group” that will allow ssh.
aws ec2 create-security-group --group-name MySecurityGroupSSHOnly --description "Inbound SSH" aws ec2 authorize-security-group-ingress --group-name MySecurityGroupSSHOnly --cidr 0.0.0.0/0 --protocol tcp --port 22Following command will spin a FREE TIER instance in AWS cloud
aws ec2 run-instances --image-id ami-9d23aeea --key-name MyEC2Key --instance-type t2.micro --count 1 --security-groups MySecurityGroupSSHOnly
simply superb,mind blowing, i will share your blog to my friends also
ReplyDeleteAWS Online Training