The Configuration as Code module requires database tables to be created. Run the following migration:
cd services/shared
npx prisma migrate dev --name add_config_as_codeOr if you prefer to use Prisma's auto-migration:
cd services/shared
npx prisma db pushThis will create the following tables:
config_files- Stores configuration filesconfig_file_versions- Stores version history
-
Enable the Module
- Navigate to Settings → Module Configuration
- Enable "Configuration as Code"
- Click "Save Configuration"
-
Access the IDE
- Navigate to Settings → Configuration as Code
- The IDE will automatically initialize with your current platform state
-
Manual Initialization (if needed)
- If files don't appear automatically, click "Initialize from platform state" in the file explorer
- This will export your current GRC resources as Terraform files
After initialization, you'll see:
controls/
└── main.tf # All controls
frameworks/
└── main.tf # All frameworks
policies/
└── main.tf # All policies
risks/
└── main.tf # All risks
vendors/
└── main.tf # All vendors
- Check browser console for errors
- Verify database migration was run successfully
- Click "Initialize from platform state" button manually
- Check backend logs for initialization errors
If you see errors about missing tables:
cd services/shared
npx prisma generate
npx prisma migrate dev- Ensure module is enabled in Settings → Module Configuration
- Refresh the page (hard refresh: Cmd+Shift+R / Ctrl+Shift+R)
- Check that
config-as-codeis in the enabled modules list