Project Setup
Create a Harness Project using the harness-project module.
Module directory: harness-project/
$ARGUMENTS
What This Creates
- •A new Harness Project within the specified organization
- •Project-level custom roles, user groups, resource groups
- •Project-level environments (Dev, Test, Prod)
- •OPA policies and policy sets
Required Inputs
| Input | Required | Description |
|---|---|---|
| Organization ID | Yes | Existing org — auto-detected from harness-organization state |
| Project Name | Yes | Name for the new project |
| Harness Account ID | Yes | Auto-detected from env var |
| Project ID | No | Custom identifier (auto-generated from name) |
| Description | No | Defaults to "Harness Project managed by Solutions Factory" |
| Tags | No | Custom resource tags |
Steps
- •
Check if organization exists by reading
harness-organization/terraform state:bashcd harness-organization && tofu output -json 2>/dev/null
If not deployed, warn: "An organization must exist first. Run
/harness-factory:org-setup." - •
Auto-populate
organization_idfrom the harness-organization output. - •
Ask the user for:
- •Project name (required)
- •Custom identifier? (optional)
- •Description? (optional)
- •
Generate
terraform.tfvars, init, plan, confirm, apply. - •
Capture outputs:
- •
project_identifier— save for downstream modules - •
project_url— show to user
- •
- •
Suggest next steps based on what the user might want:
- •CI pipelines:
/harness-factory:ci-pipelines - •Security scanning:
/harness-factory:security-scanning - •Build infrastructure:
/harness-factory:build-farm
- •CI pipelines:
Prerequisites
- •
harness-organizationmust be deployed (providesorganization_id)