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
Copy file name to clipboardExpand all lines: apps/docs/content/references/import.mdx
+65-79Lines changed: 65 additions & 79 deletions
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,8 @@ project:
29
29
name: project0
30
30
# Project description
31
31
description: "This project is an example only"
32
+
# Project core package - LIGHT/SERIOUS
33
+
corePackage: SERIOUS
32
34
# List of project tags for filtering
33
35
tags:
34
36
- test
@@ -121,8 +123,8 @@ services:
121
123
</DropdownItem>
122
124
</Dropdown>
123
125
124
-
:::warning
125
-
This is a general guideline; not all keys are valid for every service type. For technology-specific details, refer to the **Create service** page in the **How To** section of the Zerops documentation.
126
+
:::note
127
+
The example above is a general guideline; not all keys are valid for every service type. For technology-specific details, refer to the **Create service** page in the **How To** section of the Zerops documentation.
126
128
:::
127
129
128
130
---
@@ -137,9 +139,6 @@ The project configuration is used to define the project you want to import.
137
139
138
140
#### Usage
139
141
140
-
<Dropdown>
141
-
<DropdownItemtitle="Project Structure">
142
-
143
142
<tableclassName="w-full my-1.5">
144
143
<thead>
145
144
<tr>
@@ -150,38 +149,38 @@ The project configuration is used to define the project you want to import.
150
149
</thead>
151
150
<tbody>
152
151
<tr>
153
-
<tdclassName="w-fit">project</td>
152
+
<tdclassName="w-fit font-semibold">project</td>
154
153
<tdclassName="w-fit">object</td>
155
-
<tdclassName="w-fit">
156
-
_REQUIRED, if a whole project is imported_
157
-
Only one project can be defined.
158
-
</td>
154
+
<tdclassName="w-fit">_REQUIRED, if a whole project is imported_ <br/>Only one project can be defined.</td>
159
155
</tr>
160
156
<tr>
161
-
<tdclassName="w-fit">name</td>
157
+
<tdclassName="w-fit font-semibold">name</td>
162
158
<tdclassName="w-fit">string, REQUIRED</td>
163
-
<tdclassName="w-fit">
164
-
The name of the new project. Duplicates are allowed.
165
-
</td>
159
+
<tdclassName="w-fit">The name of the new project. Duplicates are allowed.</td>
<tdclassName="w-fit">Core package of the new project. <br/>Values: <b>LIGHT</b>/<b>SERIOUS</b> (default LIGHT)</td>
173
170
</tr>
174
171
<tr>
175
-
<tdclassName="w-fit">tags</td>
172
+
<tdclassName="w-fit font-semibold">tags</td>
176
173
<tdclassName="w-fit">list of strings</td>
177
-
<tdclassName="w-fit">
178
-
One or more string tags. Tags do not have a functional meaning, they only provide better orientation in projects.
179
-
</td>
174
+
<tdclassName="w-fit">One or more string tags.<br/>Tags do not have a functional meaning, they only provide better orientation in projects.</td>
180
175
</tr>
181
176
</tbody>
182
177
</table>
183
-
</DropdownItem>
184
-
</Dropdown>
178
+
179
+
:::warning
180
+
The `corePackage` value can't be changed later. Make sure to choose a suitable core package for your project.
181
+
:::
182
+
183
+
This example will create a project named `project0` with [serious core](/features/infrastructure#serious-core) package and the description `This project is an example only`. The project will have two tags: `test` and `dev`:
185
184
186
185
```yml
187
186
# ==== Define a project to import ====
@@ -190,24 +189,22 @@ project:
190
189
name: project0
191
190
# Project description
192
191
description: "This project is an example only"
192
+
# Project core package
193
+
corePackage: SERIOUS
193
194
# List of project tags for filtering
194
195
tags:
195
196
- test
196
197
- dev
197
198
```
198
199
199
-
This will create a project with the name `project0` and the description `This project is an example only`. The project will have two tags: `test` and `dev`.
200
-
201
-
The `project` object requires only the `name` parameter - both `description` and `tags` are optional.
202
-
203
200
### Service Configuration
204
201
205
202
The service configuration is used to define the services, environment variables, and other settings you want to import into the project(You require at least one service and you need to have a project to import into or define the project in the yaml).
Define your own AWS S3 bucket access policy. See [AWS docs](https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-policy-language-overview.html) for details.
280
266
Use `{{ .BucketName }}` placeholder if you need to use bucket name in your custom policy rules.
<td className="w-fit whitespace-nowrap">string or object</td>
633
619
<td className="w-fit">Provide the name of the service from your zerops.yml (find it under `-setup: {name}`) or insert full [zerops.yml configuration file](/zerops-yml/specification).</td>
0 commit comments