- Launching instance inside VPC using portal
Follow following link to
1) Create VPC
2) Create security group for VPC
3) Launch instance inside VPC
4) Assigning an Elastic IP Address to your instance
- Creating vm and bootstraping node which is created under VPC follow following steps
1) Create VPC as per instruction given in Step I of http://docs.aws.amazon.com/AmazonVPC/latest/GettingStartedGuide/getting-started-create-vpc.html
2) Crete Security group for VPC in Step 2 i.e. http://docs.aws.amazon.com/AmazonVPC/latest/GettingStartedGuide/getting-started-create-security-group.html
Note: Make sure you are creating security group inside VPC
3) Run knife ec2 server create command using appropriate options.
Following is the command used by us
knife ec2 server create -I ami-d05e75b8 -N <node name> --subnet <vpc subnet-id> -g <security group id inside vpc> --identity-file <somekey.pem> --ssh-user ubuntu --associate-public-ip -c <path to knife.rb> --bootstrap-protocol ssh --flavor <AMI flavor> --server-connect-attribute 'public_ip_address' -VV
No comments:
Post a Comment