amazon ec2 - How to set up a Chef Node on an ec2 instance? -
i trying use knife bootstrap command mac terminal "knife bootstrap node_domain_or_ip -x username -p password -n name_for_node --sudo"
but problem is, don't have user name , password, instead ec2-user has private key stored in local work station helps me connect server. find lot of examples debian os, hard find rhel on ec2.
os: rhel 6 chef: 11.1.6
kindly let me know if details need me better.
even host keys have username. typically, if using
ssh -i somekey user@host_or_ip
to ssh node, use
knife bootstrap node_domain_or_ip -x username -i samekey -n chef_name_you_want --sudo
notice, use -i
rather -p
. that's there it.
an better option people use knife ec2 server create
create node in first place. create node in aws , bootstrap it, in 1 command.
Comments
Post a Comment