35 lines
756 B
Markdown
35 lines
756 B
Markdown
|
|
---
|
||
|
|
name: analyze-config
|
||
|
|
description: Analyze the .fission configuration of an existing Fission Python project
|
||
|
|
---
|
||
|
|
|
||
|
|
Analyze the Fission configuration of a project by running the analyze-config script.
|
||
|
|
|
||
|
|
## Usage
|
||
|
|
|
||
|
|
```bash
|
||
|
|
./fission-python/analyze-config.sh <project-path>
|
||
|
|
```
|
||
|
|
|
||
|
|
- `project-path`: Path to the Fission Python project directory
|
||
|
|
|
||
|
|
Requires `jq` to be installed for JSON parsing.
|
||
|
|
|
||
|
|
## What it does
|
||
|
|
|
||
|
|
Reads `.fission/deployment.json` (and override files) and outputs:
|
||
|
|
- Environments defined
|
||
|
|
- Packages and their build commands
|
||
|
|
- Functions and their configurations
|
||
|
|
- HTTP triggers and URLs
|
||
|
|
- Cron triggers
|
||
|
|
- Secrets and configmaps
|
||
|
|
|
||
|
|
## Example
|
||
|
|
|
||
|
|
User asks: "Analyze the Fission config of ./my-api"
|
||
|
|
|
||
|
|
```bash
|
||
|
|
./fission-python/analyze-config.sh ./my-api
|
||
|
|
```
|