简体   繁体   English

使用Chef Cookbook创建AWS RDS实例

[英]Creating AWS RDS instance using Chef cookbook

Forgive me if my question is too vague. 如果我的问题太含糊,请原谅我。 I am new to both AWS and Chef automation tool. 我是AWS和Chef自动化工具的新手。 I am trying to create an RDS instance on AWS using Chef automation. 我正在尝试使用Chef自动化在AWS上创建RDS实例。 I want the details of the RDS instance to be in the cookbook and I do not want to go through the AWS console. 我希望RDS实例的详细信息在食谱中,并且我不希望通过AWS控制台。 I did some research and found a community cookbook that does this: 我做了一些研究,发现一本可以做到这一点的社区食谱:

https://github.com/gosuri/aws-rds-cookbook/blob/master/README.md https://github.com/gosuri/aws-rds-cookbook/blob/master/README.md

In my experience with Chef, I always had a node that I did sudo to, and it made sure that the node was following the policies listed in the cookbook. 根据使用Chef的经验,我总是有一个sudo做过的节点,它确保该节点遵循菜谱中列出的策略。

I am confused here as I do not even have a node in the first place. 我在这里很困惑,因为我根本没有节点。 I am trying to create one using cookbook. 我正在尝试使用食谱创建一个。 Is this possible? 这可能吗? Can someone point me in the right direction? 有人可以指出我正确的方向吗?

Chef is an agent-based system, so you need a node of some kind. Chef是基于代理的系统,因此您需要某种类型的节点。 With tools like chef-provisioning (you would want to use the AWS driver in this case) you sometimes use your workstation and run chef-client from there, or make a dedicated "provisioning node" which basically just sits there and does nothing but run provisioning recipes. 使用厨师配置 (在这种情况下,您想使用AWS驱动程序)之类的工具,您有时会使用工作站并从那里运行Chef-client,或者制作一个专用的“配置节点”,该节点基本上只坐在那里,除了运行外什么也不做供应食谱。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM