You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enhancement: Change the referenced names of the modules to reflect the upcoming name change. A few improvements and consolidations to docs. (#407)
* enhancement: Change the referenced names of the modules to reflect the upcoming name change. A few improvements and consolidations to docs.
* Update README.md
Co-authored-by: David Cheung <davidcheung@live.ca>
Co-authored-by: David Cheung <davidcheung@live.ca>
Copy file name to clipboardExpand all lines: README.md
+5-174Lines changed: 5 additions & 174 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,42 +71,7 @@ ___
71
71
72
72
## Getting Started
73
73
74
-
### How to Install and Configure Zero
75
-
76
-
There are multiple ways to install Zero:
77
-
78
-
- Install Zero using your systems package manager.
79
-
80
-
```
81
-
# MacOS
82
-
brew tap commitdev/zero
83
-
brew install zero
84
-
```
85
-
86
-
- Install Zero by downloading the binary.
87
-
88
-
Download the latest [Zero binary] for your systems architecture. Unzip your downloaded package and copy the Zero binary to the desired location and add it to your system PATH.
89
-
90
-
Zero currently supports:
91
-
| System | Support| Package Manager |
92
-
|---------|:-----:|:------:|
93
-
| MacOS | ✅ |`brew`|
94
-
| Linux | ✅ |`deb, rpm, apk`|
95
-
| Windows | ❌ | n/a |
96
-
97
-
### Prerequisites
98
-
99
-
In order to use Zero, run the `zero check` command on your system to find out which other tools / dependencies you might need to install.
You need to [register a new domain](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/domain-register.html) / [host a registered domain](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/MigratingDNS.html) you will use to access your infrastructure on [Amazon Route 53](https://aws.amazon.com/route53/).
106
-
107
-
> We recommended you have two domains - one for staging and another for production. For example, mydomain.com and mydomain-staging.com. This will lead to environments that are more similar, rather than trying to use a subdomain like staging.mydomain.com for staging which may cause issues in your app later on.
108
-
109
-
___
74
+
[See the getting started guide at the Zero docs site.](https://getzero.dev/docs/zero/getting-started/installation)
110
75
111
76
### Building blocks of Zero
112
77
@@ -120,134 +85,6 @@ Also declares dependency used to determine the order of execution with other mod
120
85
121
86
See [`zero-module.yml` reference](./docs/module-definition.md) for details.
122
87
___
123
-
## Using zero to spin up your own stack
124
-
125
-
Using Zero to spin up your infrastructure and application is easy and straightforward. Using just a few commands, you can configure and deploy your very own scalable, high-performance, production-ready infrastructure.
126
-
127
-
A few caveats before getting started:
128
-
129
-
- For Zero to provision resources, you will need to be authenticated with AWS [(authenticate with aws-cli)](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html#cli-configure-files-methods).
130
-
131
-
- It is recommended practice to [create a GitHub org](https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/creating-a-new-organization-from-scratch) where your code is going to live. If you choose, after creating your codebases, Zero will automatically create repositories and check in your code for you. You will need to [create a Personal Access Token](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) to enable this.
132
-
133
-
<details>
134
-
<summary>If using CircleCI as your build pipeline ...</summary>
135
-
136
-
- Grant [CircleCi Organization access](https://github.com/settings/connections/applications/78a2ba87f071c28e65bb) to your repositories to allow pulling the code during the build pipeline.
137
-
138
-
- You will need to [create a CircleCi access token](https://circleci.com/docs/2.0/managing-api-tokens/) and enter it during the setup process; you should store your generated tokens securely.
139
-
140
-
- For your CI build to work, you need to opt into the use of third-party orbs. You can find this in your CircleCi Org Setting > Security > Allow Uncertified Orbs.
141
-
</details>
142
-
143
-
### zero init
144
-
145
-
The `zero init` command creates a new project and outputs an infrastructure configuration file with user input prompted responses into a file. -> 📁 `YOUR_PROJECT_NAME/zero-project.yml`
146
-
147
-
```shell
148
-
# To create and customize a new project you run
149
-
$ zero init
150
-
151
-
## Sample project initialization
152
-
✔ Project Name: myapp-infra
153
-
🎉 Initializing project
154
-
✔ EKS + Go + React + Gatsby
155
-
✔ Should the created projects be checked into github automatically? (y/n): y
156
-
✔ What's the root of the github org to create repositories in?: github.com/myapp-org
157
-
✔ Existing AWS Profiles
158
-
✔ default
159
-
160
-
Github personal access token: used for creating repositories for your project
161
-
Requires the following permissions: [repo::public_repo, admin::orgread:org]
162
-
The token can be created at https://github.com/settings/tokens
163
-
✔ Github Personal Access Token with access to the above organization: <MY_GITHUB_ORG_ACCESS_TOKEN>
164
-
165
-
CircleCI api token: used for setting up CI/CD for your project
166
-
The token can be created at https://app.circleci.com/settings/user/tokens
167
-
✔ Circleci api key for CI/CD: <MY_CIRCLE_CI_ACCESS_TOKEN>
168
-
✔ us-west-2
169
-
✔ Production Root Host Name (e.g. mydomain.com) - this must be the root of the chosen domain, not a subdomain.: commitzero.com
170
-
✔ Production Frontend Host Name (e.g. app.): app.
171
-
✔ Production Backend Host Name (e.g. api.): api.
172
-
✔ Staging Root Host Name (e.g. mydomain-staging.com) - this must be the root of the chosen domain, not a subdomain.: commitzero-stage.com
173
-
✔ Staging Frontend Host Name (e.g. app.): app.
174
-
✔ Staging Backend Host Name (e.g. api.): api.
175
-
✔ What do you want to call the zero-aws-eks-stack project?: infrastructure
176
-
✔ What do you want to call the zero-deployable-backend project?: backend-service
177
-
✔ What do you want to call the zero-deployable-react-frontend project?: frontend
178
-
179
-
```
180
-
181
-
### zero create
182
-
183
-
The `zero create` command renders the infrastructure modules you've configured into your project folder and pushes your code to GitHub.
184
-
185
-
```shell
186
-
# Template the selected modules and configuration specified in zero-project.yml and push to the repository.
187
-
$ cd zero-init # change your working dir to YOUR_PROJECT_NAME
Copy file name to clipboardExpand all lines: doc-site/docs/getting-started/prerequisites.md
+34-1Lines changed: 34 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,31 @@ sidebar_label: Prerequisites
4
4
sidebar_position: 2
5
5
---
6
6
7
+
8
+
Using Zero to spin up your infrastructure and application is easy and straightforward. Using just a few commands, you can configure and deploy your very own scalable, high-performance, production-ready infrastructure.
9
+
10
+
A few caveats before getting started:
11
+
12
+
- For Zero to provision resources, you will need to be [authenticated with the AWS CLI tool ](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html#cli-configure-files-methods).
13
+
14
+
- It is recommended practice to [create a GitHub org](https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/creating-a-new-organization-from-scratch) where your code is going to live. If you choose, after creating your codebases, Zero will automatically create repositories and check in your code for you. You will need to [create a Personal Access Token](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) to enable this.
15
+
16
+
<details>
17
+
<summary>If using CircleCI as your build pipeline...</summary>
18
+
<ul>
19
+
<li>
20
+
Grant <a href="https://github.com/settings/connections/applications/78a2ba87f071c28e65bb">CircleCi Organization access</a> to your repositories to allow pulling the code during the build pipeline.
21
+
</li>
22
+
<li>
23
+
You will need to <a href="https://circleci.com/docs/2.0/managing-api-tokens/">create a CircleCi access token</a> and enter it during the setup process; you should store your generated tokens securely.
24
+
</li>
25
+
<li>
26
+
For your CI build to work, you need to opt into the use of third-party orbs. You can find this in your CircleCi Org Setting > Security > Allow Uncertified Orbs.
27
+
</li>
28
+
</ul>
29
+
</details>
30
+
31
+
7
32
### `zero check`
8
33
In order to use Zero, run the `zero check` command on your system to find out which other tools / dependencies you might need to install.
9
34
@@ -13,5 +38,13 @@ In order to use Zero, run the `zero check` command on your system to find out wh
13
38
14
39
You need to [register a new domain](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/domain-register.html) / [host a registered domain](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/MigratingDNS.html) you will use to access your infrastructure on [Amazon Route 53](https://aws.amazon.com/route53/).
15
40
16
-
> We recommended you have two domains - one for staging and another for production. For example, mydomain.com and mydomain-staging.com. This will lead to environments that are more similar, rather than trying to use a subdomain like staging.mydomain.com for staging which may cause issues in your app later on.
41
+
:::tip
42
+
We recommended you have two domains - one for staging and another for production. For example, mydomain.com and mydomain-staging.com. This will lead to environments that are more similar, rather than trying to use a subdomain like staging.mydomain.com for staging which may cause issues in your app later on.
Copy file name to clipboardExpand all lines: doc-site/docs/getting-started/zero-create.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,4 +27,6 @@ $ zero create
27
27
✅ Done - run zero apply to create any required infrastructure or execute any other remote commands to prepare your environments.
28
28
29
29
30
-
```
30
+
```
31
+
32
+
After this step you will be able to examine the created repositories before proceeding to `zero apply`. If you chose not to have zero create a repository for you, you can still use the `zero apply` command to create the infrastructure but you will need to check these repositories into your version control system of choice.
0 commit comments