https://github.com/discretetom/custom-lens-gen
Generator for AWS Well-Architected custom lens.
https://github.com/discretetom/custom-lens-gen
Last synced: about 2 months ago
JSON representation
Generator for AWS Well-Architected custom lens.
- Host: GitHub
- URL: https://github.com/discretetom/custom-lens-gen
- Owner: DiscreteTom
- Created: 2022-06-10T08:48:51.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-10T09:52:11.000Z (almost 3 years ago)
- Last Synced: 2025-02-05T06:38:58.425Z (4 months ago)
- Language: TypeScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Custom Lens Generator
Generator for AWS Well-Architected custom lens.
## Features
- Support two edit mode.
- TypeScript/JSON mode.
- YAML mode.
- Intellisense(TypeScript/JSON only).
- `SimpleLens` to simplify lens model.
- Auto-generate fields for fast prototyping.
- `schemaVersion`
- `description`
- `pillar.id`
- `question.id`
- `question.description`
- `choice.id`
- `choice.improvementPlan`
- `choice.improvementPlan.displayText`
- Auto add default risk rule.
- Option: `{ defaultRisk: "NO_RISK" }`.## Usage
### TypeScript/JSON Mode
1. Clone this repo.
2. Install dependencies: run `yarn`.
3. Edit `src/main.ts`.
4. Run `yarn dev` to generate `output.json`.### YAML Mode
1. Clone this repo.
2. Install dependencies: run `yarn`.
3. Compile TypeScript to JavaScript: `yarn build`.
4. Edit `definition.yml`.
5. Run `yarn dev:yaml` to generate `output.json`.