@0x4447/grapes 中文文档教程

发布于 6年前 浏览 32 项目主页 更新于 3年前

Grapes

Grapes CLI 工具是在我们处理大量 CloudFormation 文件时遇到越来越多的挫败感之后创建的。 我们对 AWS CloudFormation 的功能及其帮助管理 AWS 基础设施的方式感到惊讶,但处理一个巨大的文件过于费力,而且容易出现无数错误和无尽的挫败感。

我们决定为此做点什么。 最终结果是 Grapes,这是一个简单的 CLI 工具,可以将创建堆栈所花费的时间减半。 除了使其易于组织和扩展之外,它还使整个过程更加愉快。

Grapes 使您能够将整个 CloudFormation 文件结构分解为更小的块,因此更容易对其进行推理。 您可以按照对您有意义的任何方式组织文件夹结构——没有任何限制。

我们几乎每天都使用 Grapes,希望您也能使用。

Examples

How to Install

] sudo npm install -g @0x4447/grapes

How to Use

] grapes -s PATH_TO_FOLDER

Where to get Help

] grapes -h

What to expect

The build feature

每次运行该命令时,CloudFormation.json 文件都会出现在您使用 -s 参数指向的文件夹中。 该文件包含最终的 CloudFormation 文件,您可以直接将其上传到 AWS 进行部署。 每次运行 Grapes 时都会覆盖此文件。

The init feature

初始化命令在您指定的路径中创建一个完整的文件夹结构。 最终结果是 Grapes 在构建最终文件时所期望的确切结构。 该工具的唯一要求是永远不要更改根文件夹名称。 这些文件夹中的任何内容都由您决定。 您可以随意命名您的文件,并将它们组织在您认为合适的任何文件夹结构中。

The End

如果您喜欢这个项目,请考虑给它一个????。 并查看我们的 0x4447 GitHub 帐户,您可以在其中找到您可能会觉得有用或有趣的其他资源。

该项目由 0x4447 LLC 提供,这是一家专门在 AWS 上构建自定义解决方案的软件公司。 点击此链接了解更多信息:https://0x4447.com。 或者,发送电子邮件至 hello@0x4447.email

???? Grapes

The Grapes CLI tool was created after we experienced increasing frustration as we worked with massive CloudFormation files. We're amazed by what AWS CloudFormation can do and the way it helps with managing the AWS infrastructure, but working with one gigantic file is too labor intensive and prone to countless errors and endless frustration.

We decided to do something about this. The end result is Grapes, a simple CLI tool that cuts the amount of time spent creating a stack in half. It makes the entire process more enjoyable, in addition to making it easy to organize and extend.

Grapes enables you to break down the entire CloudFormation file structure into smaller chunks so it becomes much easier to reason about it. You can literally organize the folder structure in any way that makes sense to you – no constraints.

We use Grapes almost every day, and we hope you will too.

Examples

How to Install

] sudo npm install -g @0x4447/grapes

How to Use

] grapes -s PATH_TO_FOLDER

Where to get Help

] grapes -h

What to expect

The build feature

Every time you run the command, a CloudFormation.json file appears in the folder you pointed to using the -s parameter. The file contains the final CloudFormation file, which you can then upload straight to AWS for deployment. This file is overwritten every time you run Grapes.

The init feature

The initialization command creates a complete folder structure in the path you specified. The end result is the exact structure that Grapes expects when building the final file. The only requirement for the tool is that you never change the root folder names. Anything inside those folders is up to you. You can name your files anything you like and organize them in whatever folder structure makes sense to you.

The End

If you enjoyed this project, please consider giving it a ????. And check out our 0x4447 GitHub account, where you'll find additional resources you might find useful or interesting.

This project is brought to you by 0x4447 LLC, a software company specializing in building custom solutions on top of AWS. Follow this link to learn more: https://0x4447.com. Alternatively, send an email to hello@0x4447.email.

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文