-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #548 from merico-dev/docs-s3-remote-state-doc
docs: add s3 remote state doc
- Loading branch information
Showing
4 changed files
with
45 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# The State Section in the Main Config | ||
|
||
In the main config, we can specify which "backend" to use to store DevStream state. | ||
|
||
We support the following types of backend: | ||
|
||
- local | ||
- s3 | ||
|
||
## Local backend config example: | ||
|
||
```yaml | ||
varFile: variables-gitops.yaml | ||
|
||
toolFile: tools-gitops.yaml | ||
|
||
state: | ||
backend: local | ||
options: | ||
stateFile: devstream.state | ||
``` | ||
The `stateFile` under the `options` section is mandatory for local backend. | ||
|
||
## S3 backend config example: | ||
|
||
```yaml | ||
varFile: variables-gitops.yaml | ||
toolFile: tools-gitops.yaml | ||
state: | ||
backend: s3 | ||
options: | ||
bucket: devstream-remote-state | ||
region: ap-southeast-1 | ||
key: devstream.state | ||
``` | ||
|
||
The `bucket`, `region`, and `key` under the `ptions` section are all mandatory fields for s3 backend. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters