{"id":211050,"date":"2014-02-01T17:49:02","date_gmt":"2014-02-01T13:49:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=211050"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=211050","title":{"rendered":"<span class=\"post_title\">Chef \u0437\u0430 21 \u0434\u0435\u043d\u044c. \u0427\u0430\u0441\u0442\u044c \u0442\u0440\u0435\u0442\u044c\u044f. Chef \u0438 AWS<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439, \u0445\u0430\u0431\u0440\u0430\u044e\u0437\u0435\u0440. \u0412\u043e\u0442 \u0438 \u043f\u043e\u0434\u043e\u0441\u043f\u0435\u043b\u0430 <b>\u0442\u0440\u0435\u0442\u044c\u044f <\/b>\u0447\u0430\u0441\u0442\u044c \u043c\u043e\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0434\u044b\u0442\u043e\u0436\u0438\u0442 \u0446\u0438\u043a\u043b (<a href=\"http:\/\/habrahabr.ru\/company\/epam_systems\/blog\/208542\">\u0447\u0430\u0441\u0442\u044c 1<\/a> \u0438 <a href=\"http:\/\/habrahabr.ru\/company\/epam_systems\/blog\/209368\">\u0447\u0430\u0441\u0442\u044c 2<\/a>) \u0441\u0442\u0430\u0442\u0435\u0439 \u0434\u043b\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445. \u042d\u0442\u0430 \u0447\u0430\u0441\u0442\u044c \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c\u0443 \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f Chef \u0432 \u043e\u0431\u043b\u0430\u043a\u0435 <b>Amazon<\/b>. \u041a\u0430\u043a \u044f \u0443\u0436\u0435 \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043b \u2013 \u044d\u0442\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439. \u0414\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f, \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d \u0441\u043b\u0443\u0447\u0430\u0439 \u0441 \u0434\u0432\u0443\u043c\u044f <b>ec2-instance<\/b> (\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 Amazon), \u043e\u0434\u0438\u043d \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0440\u043e\u043b\u044c Chef-\u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0430 \u0432\u0442\u043e\u0440\u043e\u0439 \u2013 \u0443\u0437\u043b\u0430. <br \/>  <a name=\"habracut\"><\/a><br \/>  \u0421\u0440\u0430\u0437\u0443 \u0436\u0435 \u0443\u0442\u043e\u0447\u043d\u044e, \u0447\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c instance \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f <b>AWS CloudFormation<\/b>. \u041c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u0438\u043c\u0438 \u0432\u0440\u0443\u0447\u043d\u0443\u044e, \u043d\u043e \u043a\u0430\u043a\u043e\u0439 \u0441\u043c\u044b\u0441\u043b \u0432 \u0442\u0430\u043a\u043e\u0439 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438? <br \/>  <b>CloudFormation <\/b>\u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430 2 <i>\u043f\u043e\u043d\u044f\u0442\u0438\u044f<\/i>: <br \/>   \u2014 <i>template<\/i>, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0439 \u0441\u043e\u0431\u043e\u0439 json-\u0444\u0430\u0439\u043b, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432\u0441\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b \u043d\u0430\u043c \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 instance;<br \/>   \u2014 <i>stack<\/i>, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0439 \u0441\u043e\u0431\u043e\u0439 \u0441\u0430\u043c\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u044b AWS, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0432 template.<br \/>  \u0414\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 AWS, Amazon \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u044b\u0435 <i>sample template<\/i>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0441\u0432\u0435\u0449\u0430\u044e\u0442 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0430\u0441\u043f\u0435\u043a\u0442\u043e\u0432, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 AWS. \u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0430 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0430\u0442\u044c\u0438.<br \/>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u0441\u043e\u0431\u043e\u0439 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 <b>template<\/b>. \u0412 \u0431\u0430\u0437\u043e\u0432\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043d \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 4 \u0431\u043b\u043e\u043a\u043e\u0432: <i>Parameters, Mappings, Resources, Outputs<\/i>.<br \/>  \u0411\u043b\u043e\u043a <b>Parameters <\/b>\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438 \u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u044b \u0432 stack \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043e\u043d\u043e\u0433\u043e. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432, \u0430 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043f\u043e\u043b\u044f default \u0432 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430. \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u044e\u0431\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u043e\u0442 \u043f\u0430\u0440\u043e\u043b\u044f \u0438 \u043a\u043e\u043d\u0447\u0430\u044f \u0441\u0435\u0442\u0435\u0432\u044b\u043c \u043f\u043e\u0440\u0442\u043e\u043c \u0438\u043b\u0438 \u043f\u0443\u0442\u0435\u043c \u043a \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438. \u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430, \u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f Ref.<br \/>  \u0411\u043b\u043e\u043a <b>Mappings <\/b>\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432 \u0441\u0435\u0431\u0435 \u043d\u0430\u0431\u043e\u0440 \u043a\u043b\u044e\u0447\u0435\u0439 \u0441 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u0438 \u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438. \u0427\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u0438\u0434\u0435\u0442\u044c, \u043a\u0430\u043a mapping-\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0440\u0435\u0433\u0438\u043e\u043d\u043e\u0432 AWS \u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0438\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u0430\u043c (instance). \u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0442\u043e\u0433\u043e \u0438\u043b\u0438 \u0438\u043d\u043e\u0433\u043e mapping \u2013 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f Fn::FindInMap, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u043b\u044e\u0447 \u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e\u0438\u0441\u043a \u0442\u043e\u0433\u043e \u0438\u043b\u0438 \u0438\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f.<br \/>  \u0411\u043b\u043e\u043a <b>Resources <\/b>\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043d\u0430\u0448\u0438 <i>ec2-instance <\/i>\u043b\u0438\u0431\u043e \u0434\u0440\u0443\u0433\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b AWS. \u0418\u043c\u0435\u043d\u043d\u043e \u0432 \u044d\u0442\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043e\u0431\u0440\u0430\u0437\u044b \u0434\u043b\u044f Chef-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e \u0443\u0437\u043b\u0430. \u0412 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0442\u0438\u043f \u0440\u0435\u0441\u0443\u0440\u0441\u0430 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, AWS::EC2::Instance), \u0442\u0430\u043a\u0436\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c metadata, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043d\u0430\u0448\u0435\u0433\u043e \u0443\u0437\u043b\u0430 \u0438\u043b\u0438 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u044b \u043f\u043e pre-install \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0435 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043a\u0430\u043a\u043e\u0439-\u043b\u0438\u0431\u043e \u043f\u0430\u043a\u0435\u0442 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u043e\u0431\u0440\u0430\u0437\u0430). \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u044c\u044e \u0431\u043b\u043e\u043a\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0431\u043b\u043e\u043a <b>Properties<\/b>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c\u044b\u0439 \u043e\u0431\u0440\u0430\u0437. \u0412 \u044d\u0442\u043e\u043c \u0431\u043b\u043e\u043a\u0435 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u0442\u0438\u043f \u043e\u0431\u0440\u0430\u0437\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0449\u0435\u043d (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, Amazon Linux 32-bit), \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c\u043e\u0433\u043e \u043e\u0431\u0440\u0430\u0437\u0430 \u043a \u0442\u043e\u0439 \u0438\u043b\u0438 \u0438\u043d\u043e\u0439 <b>Security Group<\/b> (\u043f\u043e \u0441\u0443\u0442\u0438, \u044d\u0442\u043e <i>firewall<\/i>, \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c\u044b\u043c\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c\u0438 \u0434\u043b\u044f \u0442\u0440\u0430\u0444\u0438\u043a\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u2014 deny). \u041e\u0434\u043d\u0430\u043a\u043e, \u0441\u0430\u043c\u043e\u0439 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u044c\u044e \u0431\u043b\u043e\u043a\u0430 Properties \u2013 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <b>User Data<\/b>. \u0418\u043c\u0435\u043d\u043d\u043e \u0442\u0443\u0442 \u043c\u044b \u043e\u043f\u0438\u0448\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u043d\u0430\u0448 \u0431\u0435\u0437\u043b\u0438\u043a\u0438\u0439 instance \u0432 Chef-\u0441\u0435\u0440\u0432\u0435\u0440 \u0438\u043b\u0438 Chef-\u043a\u043b\u0438\u0435\u043d\u0442. <br \/>  <b>Template<\/b>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e, \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d \u043d\u0438\u0436\u0435 \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c, \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0435\u0433\u043e \u0438 \u044f \u043f\u0440\u043e\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u044e \u0435\u0433\u043e.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Template<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code>{   &quot;AWSTemplateFormatVersion&quot; : &quot;2010-09-09&quot;,   &quot;Description&quot; : &quot;Template for stack&quot;,    &quot;Parameters&quot; : {      &quot;KeyName&quot; : {       &quot;Description&quot; : &quot;Name of an existing EC2 KeyPair to enable SSH access to the instances&quot;,       &quot;Type&quot; : &quot;String&quot;,       &quot;MinLength&quot; : &quot;1&quot;,       &quot;MaxLength&quot; : &quot;255&quot;,       &quot;AllowedPattern&quot; : &quot;[\\\\x20-\\\\x7E]*&quot;,       &quot;ConstraintDescription&quot; : &quot;can contain only ASCII characters.&quot;     },      &quot;HostKeys&quot; : {       &quot;Description&quot; : &quot;Public Key&quot;,       &quot;Type&quot; : &quot;String&quot;     },      &quot;SecretAccessKey&quot; : {       &quot;Description&quot; : &quot;Name of an existing EC2 KeyPair to enable SSH access to the instances&quot;,       &quot;Type&quot; : &quot;String&quot;     },      &quot;InstanceType&quot; : {       &quot;Description&quot; : &quot;Chef Server EC2 instance type&quot;,       &quot;Type&quot; : &quot;String&quot;,       &quot;Default&quot; : &quot;m1.small&quot;,       &quot;AllowedValues&quot; : [ &quot;t1.micro&quot;,&quot;m1.small&quot;],       &quot;ConstraintDescription&quot; : &quot;must be a valid EC2 instance type.&quot;     },      &quot;SSHLocation&quot; : {       &quot;Description&quot; : &quot; The IP address range that can be used to SSH to the EC2 instances&quot;,       &quot;Type&quot;: &quot;String&quot;,       &quot;MinLength&quot;: &quot;9&quot;,       &quot;MaxLength&quot;: &quot;18&quot;,       &quot;Default&quot;: &quot;0.0.0.0\/0&quot;,       &quot;AllowedPattern&quot;: &quot;(\\\\d{1,3})\\\\.(\\\\d{1,3})\\\\.(\\\\d{1,3})\\\\.(\\\\d{1,3})\/(\\\\d{1,2})&quot;,       &quot;ConstraintDescription&quot;: &quot;must be a valid IP CIDR range of the form x.x.x.x\/x.&quot;     }    },    &quot;Mappings&quot; : {     &quot;AWSInstanceType2Arch&quot; : {       &quot;t1.micro&quot;    : { &quot;Arch&quot; : &quot;64&quot; },       &quot;m1.small&quot;    : { &quot;Arch&quot; : &quot;64&quot; }           },      &quot;AWSRegionArch2AMI&quot; : {       &quot;us-east-1&quot;      : { &quot;32&quot; : &quot;ami-d7a18dbe&quot;, &quot;64&quot; : &quot;ami-bba18dd2&quot;, &quot;64HVM&quot; : &quot;ami-0da96764&quot; },       &quot;us-west-2&quot;      : { &quot;32&quot; : &quot;ami-def297ee&quot;, &quot;64&quot; : &quot;ami-ccf297fc&quot;, &quot;64HVM&quot; : &quot;NOT_YET_SUPPORTED&quot; },       &quot;us-west-1&quot;      : { &quot;32&quot; : &quot;ami-923909d7&quot;, &quot;64&quot; : &quot;ami-a43909e1&quot;, &quot;64HVM&quot; : &quot;NOT_YET_SUPPORTED&quot; }     }   },  \t&quot;Resources&quot; : {  ChefClient&quot; : {\t           &quot;Type&quot; : &quot;AWS::EC2::Instance&quot;,       &quot;Metadata&quot; : {         &quot;Description&quot; : &quot;Chef Client&quot;,          &quot;AWS::CloudFormation::Init&quot; : {           &quot;config&quot; : {             &quot;packages&quot; : {               &quot;yum&quot; : {                 &quot;git&quot;  : []               }             }           }           }     },          &quot;Properties&quot;: {         &quot;ImageId&quot; : { &quot;Fn::FindInMap&quot; : [ &quot;AWSRegionArch2AMI&quot;, { &quot;Ref&quot; : &quot;AWS::Region&quot; }, { &quot;Fn::FindInMap&quot; : [ &quot;AWSInstanceType2Arch&quot;, { &quot;Ref&quot; : &quot;InstanceType&quot; }, &quot;Arch&quot; ] } ] },         &quot;InstanceType&quot;   : { &quot;Ref&quot; : &quot;InstanceType&quot; },         &quot;SecurityGroups&quot; : [ {&quot;Ref&quot; : &quot;WebServerSecurityGroup&quot;} ],         &quot;KeyName&quot;        : { &quot;Ref&quot; : &quot;KeyName&quot; },                  &quot;UserData&quot;       : { &quot;Fn::Base64&quot; : { &quot;Fn::Join&quot; : [&quot;&quot;, [           &quot;#!\/bin\/bash -v\\n&quot;,                      &quot;yum update -y aws-cfn-bootstrap\\n&quot;,              &quot;function error_exit\\n&quot;,             &quot;{\\n&quot;,             &quot;  cfn-signal -e 1 -r \\&quot;$1\\&quot; '&quot;, { &quot;Ref&quot; : &quot;WaitHandle&quot; }, &quot;'\\n&quot;,             &quot;  exit 1\\n&quot;,             &quot;}\\n&quot;,            &quot;yum update -y\\n&quot;,           &quot;yum install git -y\\n&quot;,           &quot;\/sbin\/service iptables stop\\n&quot;,           &quot;\/sbin\/service ip6tables stop\\n&quot;,           &quot;\/sbin\/chkconfig iptables off\\n&quot;,           &quot;\/sbin\/chkconfig iptables off\\n&quot;,           &quot;yum install git -y\\n&quot;,             &quot;\/usr\/bin\/curl -L https:\/\/www.opscode.com\/chef\/install.sh | bash\\n&quot;,           &quot;cd \/root\/\\n&quot;,           &quot;\/usr\/bin\/git git:\/\/github.com\/opscode\/chef-repo.git\\n&quot;,           &quot;\/bin\/mkdir -p \/root\/chef-repo\/.chef\\n&quot;,           &quot;\/bin\/mkdir -p \/etc\/chef\\n&quot;,         \t  &quot;\/bin\/mkdir \/root\/.aws\\n&quot;,           &quot;\/bin\/touch \/root\/.aws\/config\\n&quot;,           &quot;\/bin\/echo '[default]' &gt;&gt; \/root\/.aws\/config\\n&quot;,           &quot;\/bin\/echo 'region = &quot;,  {&quot;Ref&quot; : &quot;AWS::Region&quot; }, &quot;' &gt;&gt; \/root\/.aws\/config\\n&quot;,           &quot;\/bin\/echo 'aws_access_key_id = &quot;, { &quot;Ref&quot; : &quot;HostKeys&quot; }, &quot;' &gt;&gt; \/root\/.aws\/config\\n&quot;,           &quot;\/bin\/echo 'aws_secret_access_key = &quot;, { &quot;Ref&quot; : &quot;SecretAccessKey&quot; }, &quot;' &gt;&gt; \/root\/.aws\/config\\n&quot;,             &quot;\/usr\/bin\/aws s3 cp s3:\/\/storage\/admin.pem \/root\/chef-repo\/.chef\\n&quot;,           &quot;\/usr\/bin\/aws s3 cp s3:\/\/storage\/chef-validator.pem \/root\/chef-repo\/.chef\\n&quot;,           &quot;\/usr\/bin\/aws s3 cp s3:\/\/storage\/knife.rb \/root\/chef-repo\/.chef\\n&quot;,           &quot;\/usr\/bin\/aws s3 cp s3:\/\/storage\/client.rb \/etc\/chef\\n&quot;,           &quot;\/usr\/bin\/aws s3 cp s3:\/\/storage\/json_attribs.json \/etc\/chef\\n&quot;,           &quot;\/bin\/cp -p \/root\/chef-repo\/.chef\/chef-validator.pem \/etc\/chef\/validation.pem\\n&quot;,           &quot;\/usr\/sbin\/ntpdate -q 0.europe.pool.ntp.org\\n&quot;,             &quot;\/bin\/echo '\\nchef_server_url \\&quot;&quot;, { &quot;Ref&quot; : &quot;ChefServerURL&quot; }, &quot;\\&quot;' &gt;&gt; \/etc\/chef\/client.rb\\n&quot;,           &quot;\/bin\/echo '\\nchef_server_url \\&quot;&quot;, { &quot;Ref&quot; : &quot;ChefServerURL&quot; }, &quot;\\&quot;' &gt;&gt; \/root\/chef-repo\/.chef\/knife.rb\\n&quot;,                      &quot;\/usr\/bin\/chef-client\\n&quot;,            &quot;\/opt\/aws\/bin\/cfn-signal -e 0 -r \\&quot;ChefClient setup complete\\&quot; '&quot;, { &quot;Ref&quot; : &quot;WaitHandle&quot; }, &quot;'\\n&quot;          ]]}}       }     },      &quot;WaitHandle&quot; : {       &quot;Type&quot; : &quot;AWS::CloudFormation::WaitConditionHandle&quot;     },      &quot;WaitCondition&quot; : {       &quot;Type&quot; : &quot;AWS::CloudFormation::WaitCondition&quot;,       &quot;DependsOn&quot; : &quot;ChefClient&quot;,       &quot;Properties&quot; : {         &quot;Handle&quot; : {&quot;Ref&quot; : &quot;WaitHandle&quot;},         &quot;Timeout&quot; : &quot;1200&quot;       }     },      &quot;ChefServer&quot; : {       &quot;Type&quot; : &quot;AWS::EC2::Instance&quot;,       &quot;Metadata&quot; : {         &quot;Description&quot; : &quot;Bootstrap ChefServer&quot;,          &quot;AWS::CloudFormation::Init&quot; : {           &quot;config&quot; : {             &quot;packages&quot; : {               &quot;yum&quot; : {                 &quot;wget&quot; : []               }             }           }           }     },          &quot;Properties&quot;: {         &quot;ImageId&quot; : { &quot;Fn::FindInMap&quot; : [ &quot;AWSRegionArch2AMI&quot;, { &quot;Ref&quot; : &quot;AWS::Region&quot; }, { &quot;Fn::FindInMap&quot; : [ &quot;AWSInstanceType2Arch&quot;, { &quot;Ref&quot; : &quot;InstanceType&quot; }, &quot;Arch&quot; ] } ] },         &quot;InstanceType&quot;   : { &quot;Ref&quot; : &quot;InstanceType&quot; },         &quot;SecurityGroups&quot; : [ {&quot;Ref&quot; : &quot;WebServerSecurityGroup&quot;} ],         &quot;KeyName&quot;        : { &quot;Ref&quot; : &quot;KeyName&quot; },                  &quot;UserData&quot;       : { &quot;Fn::Base64&quot; : { &quot;Fn::Join&quot; : [&quot;&quot;, [           &quot;#!\/bin\/bash\\n&quot;,            &quot;cfn-init --region &quot;, { &quot;Ref&quot; : &quot;AWS::Region&quot; },             &quot;    -s &quot;, { &quot;Ref&quot; : &quot;AWS::StackId&quot; }, &quot; -r ChefServer &quot;, &quot; -c orderby &quot;,             &quot;         --access-key &quot;, { &quot;Ref&quot; : &quot;HostKeys&quot; },             &quot;         --secret-key &quot;, {&quot;Ref&quot; : &quot;SecretAccessKey&quot;}, &quot; || error_exit 'Failed to run cfn-init'\\n&quot;,            &quot;yum update -y aws-cfn-bootstrap\\n&quot;,              &quot;function error_exit\\n&quot;,             &quot;{\\n&quot;,             &quot;  cfn-signal -e 1 -r \\&quot;$1\\&quot; '&quot;, { &quot;Ref&quot; : &quot;WaitHandle&quot; }, &quot;'\\n&quot;,             &quot;  exit 1\\n&quot;,             &quot;}\\n&quot;,            &quot;yum update -y\\n&quot;,           &quot;\/sbin\/service iptables stop\\n&quot;,           &quot;\/sbin\/service ip6tables stop\\n&quot;,           &quot;\/sbin\/chkconfig iptables off\\n&quot;,           &quot;\/sbin\/chkconfig ip6tables off\\n&quot;,            &quot;#Install ChefServer package\\n&quot;,           &quot;cd \/root\/\\n&quot;,           &quot;\/usr\/bin\/wget https:\/\/opscode-omnibus-packages.s3.amazonaws.com\/el\/6\/x86_64\/chef-server-11.0.10-1.el6.x86_64.rpm\\n&quot;,           &quot;\/bin\/rpm -ivh \/root\/chef-server-11.0.10-1.el6.x86_64.rpm\\n&quot;,           &quot;\/usr\/bin\/wget https:\/\/s3.amazonaws.com\/storage\/default.rb\\n&quot;,           &quot;\/bin\/cp -f default.rb \/opt\/chef-server\/embedded\/cookbooks\/runit\/recipes\/default.rb\\n&quot;,   &quot;#Configure ChefServer\\n&quot;,           &quot;su - -c '\/usr\/bin\/chef-server-ctl reconfigure'\\n&quot;,           &quot;su - -c '\/usr\/bin\/chef-server-ctl restart'\\n&quot;,   &quot;#AWS creds installation\\n&quot;,           &quot;\/bin\/mkdir \/root\/.aws\\n&quot;,           &quot;\/bin\/touch \/root\/.aws\/config\\n&quot;,           &quot;\/bin\/echo '[default]' &gt;&gt; \/root\/.aws\/config\\n&quot;,           &quot;\/bin\/echo 'region = &quot;,  {&quot;Ref&quot; : &quot;AWS::Region&quot; }, &quot;' &gt;&gt; \/root\/.aws\/config\\n&quot;,           &quot;\/bin\/echo 'aws_access_key_id = &quot;, { &quot;Ref&quot; : &quot;HostKeys&quot; }, &quot;' &gt;&gt; \/root\/.aws\/config\\n&quot;,           &quot;\/bin\/echo 'aws_secret_access_key = &quot;, { &quot;Ref&quot; : &quot;SecretAccessKey&quot; }, &quot;' &gt;&gt; \/root\/.aws\/config\\n&quot;,   &quot;#Upload files for client\\n&quot;,           &quot;\/usr\/bin\/aws s3 cp \/etc\/chef-server\/admin.pem s3:\/\/storage\/\\n&quot;,           &quot;\/usr\/bin\/aws s3 cp \/etc\/chef-server\/chef-validator.pem s3:\/\/storage\/\\n&quot;,  &quot;#Chef client and dirs for it\\n&quot;,           &quot;\/usr\/bin\/curl -L https:\/\/www.opscode.com\/chef\/install.sh | \/bin\/bash\\n&quot;,           &quot;\/bin\/mkdir \/root\/.chef\\n&quot;,           &quot;\/bin\/mkdir \/etc\/chef\\n&quot;,           &quot;\/bin\/mkdir \/etc\/chef\/cookbooks\\n&quot;,           &quot;\/bin\/mkdir \/etc\/chef\/roles\\n&quot;,            &quot;#Knife client config files from S3\\n&quot;,                               &quot;\/bin\/cp \/etc\/chef-server\/admin.pem \/etc\/chef\/client.pem\\n&quot;,           &quot;\/usr\/bin\/aws s3 cp s3:\/\/storage\/knife_admin.rb \/root\/.chef\/knife.rb\\n&quot;,  &quot;#Roles and cookbooks from S3\\n&quot;,           &quot;\/usr\/bin\/aws s3 cp s3:\/\/storage\/roles\/ \/etc\/chef\/roles\/ --recursive\\n&quot;,                &quot;\/usr\/bin\/aws s3 cp s3:\/\/storage\/cookbooks\/ \/etc\/chef\/cookbooks\/ --recursive\\n&quot;,   &quot;#Cookbooks from community\\n&quot;,           &quot;\/usr\/bin\/knife cookbook site download cron\\n&quot;,           &quot;\/usr\/bin\/knife cookbook site download jenkins\\n&quot;,           &quot;\/usr\/bin\/knife cookbook site download ntp\\n&quot;,           &quot;\/usr\/sbin\/ntpdate -q 0.europe.pool.ntp.org\\n&quot;,           &quot;yum remove ruby -y\\n&quot;,           &quot;yum install ruby19 -y\\n&quot;,  &quot;#Unpack and move cookbooks\\n&quot;,           &quot;\/bin\/mv \/root\/*.tar.gz \/etc\/chef\/cookbooks\\n&quot;,                    &quot;for i in `\/bin\/ls \/etc\/chef\/cookbooks\/*.tar.gz`; do \/bin\/tar zxf $i -C \/etc\/chef\/cookbooks\/; \/bin\/rm -f $i; done\\n&quot;,           &quot;for i in `\/bin\/ls \/etc\/chef\/cookbooks`; do \/usr\/bin\/knife cookbook upload $i; done\\n&quot;,  &quot;#Upload cookbooks and roles\\n&quot;,           &quot;\/usr\/bin\/knife cookbook upload * -c '\/root\/.chef\/knife.rb'\\n&quot;,           &quot;\/usr\/bin\/knife role from file \/etc\/chef\/roles\/*.rb\\n&quot;,     \t\t    &quot;\/bin\/echo -e \\&quot;*\/5 * * * * root \/usr\/bin\/knife exec -E 'nodes.find(\\\\\\&quot;!roles:BaseRole\\\\\\&quot;) { |n| puts n.run_list.add(\\\\\\&quot;role[BaseRole]\\\\\\&quot;); n.save}' -c '\/root\/.chef\/knife.rb'\\&quot; &gt;&gt; \/etc\/crontab\\n&quot;, \t\t      &quot;\/bin\/echo -e \\&quot;*\/5 * * * * root \/usr\/bin\/knife exec -E 'nodes.find(\\\\\\&quot;env_role:master AND !roles:master\\\\\\&quot;) { |n| puts n.run_list.add(\\\\\\&quot;role[master]\\\\\\&quot;); n.save}' -c '\/root\/.chef\/knife.rb'\\&quot; &gt;&gt; \/etc\/crontab\\n&quot;, \t\t      &quot;\/bin\/echo -e \\&quot;*\/5 * * * * root \/usr\/bin\/knife exec -E 'nodes.find(\\\\\\&quot;env_role:slave AND !roles:slave\\\\\\&quot;) { |n| puts n.run_list.add(\\\\\\&quot;role[slave]\\\\\\&quot;); n.save}' -c '\/root\/.chef\/knife.rb'\\&quot; &gt;&gt; \/etc\/crontab\\n&quot;,            &quot;\/opt\/aws\/bin\/cfn-signal -e 0 -r \\&quot;ChefServer setup complete\\&quot; '&quot;, { &quot;Ref&quot; : &quot;WaitHandle&quot; }, &quot;'\\n&quot;          ]]}}       }     },          &quot;WaitHandle&quot; : {       &quot;Type&quot; : &quot;AWS::CloudFormation::WaitConditionHandle&quot;     },      &quot;WaitCondition&quot; : {       &quot;Type&quot; : &quot;AWS::CloudFormation::WaitCondition&quot;,       &quot;DependsOn&quot; : &quot;ChefServer&quot;,       &quot;Properties&quot; : {         &quot;Handle&quot; : {&quot;Ref&quot; : &quot;WaitHandle&quot;},         &quot;Timeout&quot; : &quot;1200&quot;       }     },      &quot;WebServerSecurityGroup&quot; : {       &quot;Type&quot; : &quot;AWS::EC2::SecurityGroup&quot;,       &quot;Properties&quot; : {         &quot;GroupDescription&quot; : &quot;Enable HTTP access via port 80 and SSH access&quot;,         &quot;SecurityGroupIngress&quot; : [           {&quot;IpProtocol&quot; : &quot;tcp&quot;, &quot;FromPort&quot; : &quot;80&quot;, &quot;ToPort&quot; : &quot;80&quot;, &quot;CidrIp&quot; : &quot;0.0.0.0\/0&quot;},           {&quot;IpProtocol&quot; : &quot;tcp&quot;, &quot;FromPort&quot; : &quot;8080&quot;, &quot;ToPort&quot; : &quot;8080&quot;, &quot;CidrIp&quot; : &quot;0.0.0.0\/0&quot;},           {&quot;IpProtocol&quot; : &quot;tcp&quot;, &quot;FromPort&quot; : &quot;443&quot;, &quot;ToPort&quot; : &quot;443&quot;, &quot;CidrIp&quot; : &quot;0.0.0.0\/0&quot;},           {&quot;IpProtocol&quot; : &quot;tcp&quot;, &quot;FromPort&quot; : &quot;22&quot;, &quot;ToPort&quot; : &quot;22&quot;, &quot;CidrIp&quot; : { &quot;Ref&quot; : &quot;SSHLocation&quot;}}         ]       }     },  } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0418\u0437 template \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u044b <i>\u043f\u044f\u0442\u044c <\/i>\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432. \u0414\u0432\u0430 \u0438\u0437 \u043d\u0438\u0445 \u0438\u043c\u0435\u044e\u0442 \u0432 \u0441\u0435\u0431\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u2013 \u0442\u0438\u043f \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u043e\u0433\u043e <i>instance <\/i>(\u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e m1.small) \u0438 \u043f\u043e\u0434\u0441\u0435\u0442\u044c IP \u0430\u0434\u0440\u0435\u0441\u043e\u0432, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d <b>SSH<\/b>-\u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0443\u0437\u043b\u0443. \u041f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 stack-\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u0443\u0434\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u044c 3 <b>\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 <\/b>\u2013 \u043a\u043b\u044e\u0447 \u0434\u043b\u044f SSH-\u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0443\u0437\u043b\u0430\u043c (\u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0432 AWS Console), \u043a\u043b\u044e\u0447 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0438 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 (\u043e\u0431\u0430 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043f\u0440\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a AWS).<br \/>  \u0412 <b>mapping<\/b>-\u0430\u0445 \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0434\u0432\u0430 \u0442\u0438\u043f\u0430 instance, \u043e\u0431\u0430 \u0441 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043e\u0439 <i>64-bit<\/i>. \u0410 \u0442\u0430\u043a\u0436\u0435, \u0432 AWSRegionArch2AMI \u2013 \u043e\u043f\u0438\u0441\u0430\u043d\u044b ID \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043e\u0431\u0440\u0430\u0437\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442 instance \u0441 \u041e\u0421 Amazon Linux (\u0434\u0430\u043d\u043d\u044b\u0435 ID \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432 AWS Console).<br \/>  \u0414\u0430\u043b\u0435\u0435, \u0443 \u043d\u0430\u0441 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f <b>\u0440\u0435\u0441\u0443\u0440\u0441\u044b <\/b>Chef-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438 Chef-\u043a\u043b\u0438\u0435\u043d\u0442\u0430. \u0412 \u043e\u0431\u043e\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u0447\u0435\u0440\u0435\u0437 \u0440\u0430\u0437\u0434\u0435\u043b <b>Metadata<\/b>, \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438\u0437 <b>User Data<\/b> \u0440\u0430\u0437\u0434\u0435\u043b\u0430, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f <i>wget <\/i>(\u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439, \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043e\u0431\u0440\u0430\u0437\u044b Amazon Linux \u0434\u043e\u043b\u0436\u043d\u044b \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u044b). \u0421\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438 <i>ImageId <\/i>\u0438 <i>InstanceType <\/i>(\u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0435 \u0440\u0430\u043d\u0435\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 Amazon Linux, m1.small \u0438 64-bit \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430). \u0414\u0430\u043b\u0435\u0435 \u0438\u0434\u0435\u0442 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u0442\u0435\u043b\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430 \u2013 <b>User Data<\/b>. \u041e\u043d\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0442\u0435\u043b\u043e bash-\u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043d\u0430\u0448 instance \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f. <br \/>  \u0412\u043a\u0440\u0430\u0442\u0446\u0435, \u0434\u043b\u044f \u0443\u0437\u043b\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 <b>Chef-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c<\/b> \u043f\u0440\u043e\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f:  <\/p>\n<ul>\n<li> \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 iptables (\u0434\u0430\u0431\u044b \u043d\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u043b\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 drop-\u043e\u043c \u043f\u0430\u043a\u0435\u0442\u043e\u0432);<\/li>\n<li> \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Open Source Chef Server;<\/li>\n<li> \u043f\u043e\u0434\u043c\u0435\u043d\u0430 default.rb (\u0434\u0430 \u0443\u0436, \u0431\u0430\u0433 Amazon Linux \u043e\u0431\u0440\u0430\u0437\u043e\u0432 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u043d\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043d\u0435 \u043a\u0430\u043a redhat, \u0447\u0435\u043c \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u043e \u0441\u0443\u0442\u0438, \u0430 \u043a\u0430\u043a amazon, \u0438 \u0441\u0435\u0440\u0432\u0438\u0441 Chef-server \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c);<\/li>\n<li> \u0430\u0432\u0442\u043e-\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0430;<\/li>\n<li> \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b AWS \u043a\u043e\u043d\u0441\u043e\u043b\u0438;<\/li>\n<li> \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 admin.pem \u0438 chef-validator.pem \u043d\u0430 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 (\u043e\u043d\u0438 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f \u043d\u0430\u043c \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435);<\/li>\n<li> \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 chef-client \u043d\u0430 \u0443\u0437\u043b\u0435 (\u0434\u0430-\u0434\u0430, Chef-\u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u0432\u043e\u0435\u0433\u043e knife);<\/li>\n<li> \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u043e\u0432 client.pem \u0438 knife.rb \u0434\u043b\u044f knife, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0433\u043e \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 (\u044d\u0434\u0430\u043a\u0438\u0439 starter-kit \u0438\u0437 \u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0441\u0442\u0430\u0442\u044c\u0438);<\/li>\n<li> \u0432\u043e\u0441\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 chef-repo, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u043d\u0430\u0448\u0438 cookbook-\u0438, \u0444\u0430\u0439\u043b\u044b \u0440\u043e\u043b\u0435\u0439 \u0438 \u0442.\u043f.;<\/li>\n<li> \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 cookbook-\u043e\u0432 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 (\u043d\u0430\u0448\u0438 cookbook-\u0438 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435, \u0430 \u0447\u0430\u0441\u0442\u044c \u0431\u0435\u0440\u0435\u0442\u0441\u044f \u0441 community);<\/li>\n<li> \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0440\u043e\u043b\u0435\u0439 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440;<\/li>\n<li> \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u043a\u0430\u0436\u0434\u044b\u0435 5 \u043c\u0438\u043d\u0443\u0442 \u043e\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0443\u0437\u043b\u044b \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u0443\u044e \u0440\u043e\u043b\u044c \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u043d\u043e\u0432\u044b\u0439.<\/li>\n<\/ul>\n<p>  \u042f \u043f\u043e\u043d\u0438\u043c\u0430\u044e, \u0447\u0442\u043e \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0441\u0443\u043c\u0431\u0443\u0440\u043d\u044b\u043c \u0438 \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0435\u043c, \u043e\u0434\u043d\u0430\u043a\u043e \u043d\u0430 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0443\u0448\u043b\u043e \u0431\u044b \u043c\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u2013 \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u2013 \u0441\u043c\u0435\u043b\u043e \u043f\u0438\u0448\u0438\u0442\u0435 \u043c\u043d\u0435 \u0432 \u041b\u0421 \u0438\u043b\u0438 \u0436\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438.<br \/>  \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u043a \u043d\u0430\u0448\u0435\u043c\u0443 template-\u0443. \u0414\u043b\u044f \u0443\u0437\u043b\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 <b>Chef-\u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c<\/b>, \u043f\u0440\u043e\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f:  <\/p>\n<ul>\n<li> \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 iptables (\u0434\u0430\u0431\u044b \u043d\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u043b\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 drop-\u043e\u043c \u043f\u0430\u043a\u0435\u0442\u043e\u0432);<\/li>\n<li> \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Chef Client;<\/li>\n<li> \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b AWS \u043a\u043e\u043d\u0441\u043e\u043b\u0438;<\/li>\n<li> \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0441 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430;<\/li>\n<li> \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0430\u0434\u0440\u0435\u0441\u0430 Chef-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 (\u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u0441\u044f \u0434\u0430\u0436\u0435 \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u0432, \u043b\u0438\u0431\u043e \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 stack \u0437\u0430\u043d\u043e\u0432\u043e);<\/li>\n<li> \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 Chef client.<\/li>\n<\/ul>\n<p>  \u0421\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0442\u0430\u043a\u043e\u0439 \u043e\u043f\u0446\u0438\u0438, \u043a\u0430\u043a <i>json_attribs<\/i>, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043c\u0435\u0442\u043a\u0443 \u0434\u043b\u044f \u0443\u0437\u043b\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0435\u0433\u043e <b>\u0440\u043e\u043b\u044c<\/b> \u0432 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435. \u042d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u044f, \u043a\u043e\u0433\u0434\u0430 \u0441\u0440\u0435\u0434\u0438 Chef-\u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0443\u0437\u043b\u044b, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0449\u0438\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u044b\u0435 \u0440\u043e\u043b\u0438. <br \/>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u2013 <b>WaitHandle <\/b>\u0438 <b>WaitCondition <\/b>\u2013 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442 \u0443\u0441\u043b\u043e\u0432\u0438\u044f, \u043f\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f stack \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u0438\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d. \u0415\u0441\u043b\u0438 WaitHandle \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0441\u0438\u0433\u043d\u0430\u043b \u043e\u0431 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u043c \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0438 \u0442\u0430\u0439\u043c-\u0430\u0443\u0442\u0430, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0432 WaitCondition \u2013 \u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f stack \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442\u0441\u044f\/\u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442\u0441\u044f.<br \/>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c\u044b\u0439 \u0440\u0435\u0441\u0443\u0440\u0441 \u2013 \u044d\u0442\u043e <b>Security Group<\/b> \u2013 firewall \u0434\u043b\u044f \u043d\u0430\u0448\u0438\u0445 \u0443\u0437\u043b\u043e\u0432. \u0412 \u0433\u0440\u0443\u043f\u043f\u0435 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c\u044b\u0435 \u043f\u043e\u0440\u0442\u044b \u0438 source address \u043f\u0430\u043a\u0435\u0442\u043e\u0432.<br \/>  \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0431\u043b\u043e\u043a \u2013 <b>Outputs <\/b>\u2013 \u0441\u043b\u0443\u0436\u0438\u0442 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 stack \u0438 instance \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043a\u0430\u043a\u0438\u0435-\u043b\u0438\u0431\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u0435 \u043d\u0430\u0441. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a instance.<br \/>  \u0412 \u0438\u0442\u043e\u0433\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 <b>template<\/b> \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u00ab\u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c\u00bb \u043d\u0430\u0448\u0443 \u0441\u043a\u0440\u043e\u043c\u043d\u0443\u044e \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 (\u0435\u0441\u043b\u0438 \u0436\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e instance \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 Auto-Scaling Group) \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\u043c \u043e\u0434\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f AWS. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 <b>CloudFormation<\/b>.<br \/>  \u0427\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435? \u0414\u0430\u043b\u044c\u0448\u0435 \u0412\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0443\u0437\u043b\u044b \u043f\u0443\u0442\u0435\u043c knife, cookbook-\u043e\u0432 \u0438 \u0440\u043e\u043b\u0435\u0439. \u041c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c<i> community cookbook<\/i>, \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0438, \u043f\u0438\u0441\u0430\u0442\u044c <i>wrapper<\/i>-\u044b \u043a \u0434\u0440\u0443\u0433\u0438\u043c <i>cookbook<\/i>-\u0430\u043c. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u043c\u043d\u043e\u0433\u043e \u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u0432\u0441\u0435 \u043e\u0442 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438.<br \/>  \u0412 \u044d\u0442\u043e\u043c \u0446\u0438\u043a\u043b\u0435 \u0441\u0442\u0430\u0442\u0435\u0439 \u044f \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u043b\u0441\u044f, \u043f\u0443\u0441\u0442\u044c \u0438 \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u043d\u043e, \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u0440\u043a\u043e\u043c \u041f\u041a \u0438 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0438 \u0441 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u043c\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438 AWS. \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0434\u043b\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445 <i>DevOps<\/i> \u044d\u0442\u0438 \u0441\u0442\u0430\u0442\u044c\u0438 \u0431\u0443\u0434\u0443\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b. <br \/>  \u0415\u0441\u043b\u0438 \u0431\u0443\u0434\u0443 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u2013 \u0441\u043c\u0435\u043b\u043e \u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u0434\u0438\u0430\u043b\u043e\u0433\u0438 \u0438\u043b\u0438 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u043a \u043c\u043e\u0438\u043c \u0441\u0442\u0430\u0442\u044c\u044f\u043c. \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0432\u0441\u0435\u043c, \u043a\u0442\u043e \u0443\u0434\u0435\u043b\u0438\u043b \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0447\u0442\u0435\u043d\u0438\u044e \u0441\u0442\u0430\u0442\u0435\u0439. <br \/>  <b>\u0414\u043e \u0441\u043a\u043e\u0440\u044b\u0445 \u0432\u0441\u0442\u0440\u0435\u0447!<\/b><\/p>\n<p>  <b>\u0421\u0441\u044b\u043b\u043a\u0438<\/b>:  <\/p>\n<ul>\n<li>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e AWS \u2014 <a href=\"http:\/\/aws.amazon.com\/documentation\/\">aws.amazon.com\/documentation\/<\/a><\/li>\n<li>AWS CloudFormation \u2014 <a href=\"http:\/\/aws.amazon.com\/documentation\/cloudformation\/\">aws.amazon.com\/documentation\/cloudformation\/<\/a><\/li>\n<li>AWS EC2 \u2014 <a href=\"http:\/\/aws.amazon.com\/documentation\/ec2\/\">aws.amazon.com\/documentation\/ec2\/<\/a><\/li>\n<li>AWS Sample Templates \u2014 <a href=\"http:\/\/aws.amazon.com\/cloudformation\/aws-cloudformation-templates\/\">aws.amazon.com\/cloudformation\/aws-cloudformation-templates\/<\/a><\/li>\n<li>AWS Console \u2014 <a href=\"http:\/\/docs.aws.amazon.com\/awsconsolehelpdocs\/latest\/gsg\/getting-started.html\">docs.aws.amazon.com\/awsconsolehelpdocs\/latest\/gsg\/getting-started.html<\/a><\/li>\n<\/ul>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/company\/epam_systems\/blog\/211050\/\"> http:\/\/habrahabr.ru\/company\/epam_systems\/blog\/211050\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439, \u0445\u0430\u0431\u0440\u0430\u044e\u0437\u0435\u0440. \u0412\u043e\u0442 \u0438 \u043f\u043e\u0434\u043e\u0441\u043f\u0435\u043b\u0430 <b>\u0442\u0440\u0435\u0442\u044c\u044f <\/b>\u0447\u0430\u0441\u0442\u044c \u043c\u043e\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0434\u044b\u0442\u043e\u0436\u0438\u0442 \u0446\u0438\u043a\u043b (<a href=\"http:\/\/habrahabr.ru\/company\/epam_systems\/blog\/208542\">\u0447\u0430\u0441\u0442\u044c 1<\/a> \u0438 <a href=\"http:\/\/habrahabr.ru\/company\/epam_systems\/blog\/209368\">\u0447\u0430\u0441\u0442\u044c 2<\/a>) \u0441\u0442\u0430\u0442\u0435\u0439 \u0434\u043b\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445. \u042d\u0442\u0430 \u0447\u0430\u0441\u0442\u044c \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c\u0443 \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f Chef \u0432 \u043e\u0431\u043b\u0430\u043a\u0435 <b>Amazon<\/b>. \u041a\u0430\u043a \u044f \u0443\u0436\u0435 \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043b \u2013 \u044d\u0442\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439. \u0414\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f, \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d \u0441\u043b\u0443\u0447\u0430\u0439 \u0441 \u0434\u0432\u0443\u043c\u044f <b>ec2-instance<\/b> (\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 Amazon), \u043e\u0434\u0438\u043d \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0440\u043e\u043b\u044c Chef-\u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0430 \u0432\u0442\u043e\u0440\u043e\u0439 \u2013 \u0443\u0437\u043b\u0430.   <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-211050","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/211050","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=211050"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/211050\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=211050"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=211050"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=211050"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}