State records the current status of the DevOps platform defined, created and managed by DevStream. DevStream relies on the State (and config, for that matter) to calculate required actions to ensure your DevOps platform is the same as defined in the config.
backend is where to store the state, which we can configure in the config. At the moment, the following types of backends are supported:
2 How to Config the State¶
config.state section of the config, we can define where and how to store DevStream state.
2.1 Local File¶
config: state: backend: local options: stateFile: devstream.state # optional, defaults to "devstream.state"
config: state: backend: k8s options: namespace: devstream # optional, defaults to "devstream", create if not exist configmap: state # optional, defaults to "state", create if not exist
config: state: backend: s3 options: bucket: devstream-remote-state region: ap-southeast-1 key: devstream.state
key under the options are mandatory keys for s3 backend.