Creating a project type
Create a project type in the console (from a project, another project type or a Git repository), with the Praxis CLI, or by asking a Praxis agent.
In the console, a project type is created from one of three sources:
- An existing project: its blueprint becomes the base for the new type.
- An existing project type: derive a variant from a type you already have.
- A custom Git repository: base the type on a template you maintain.
Create one in the Facets console, with the Praxis CLI, or by asking a Praxis agent. To load Facets' official modules, see Load modules from the catalog.
Create a project type
Using prompt
Create a project type called checkout-aws from my existing project "checkout".Say which of the three sources to use, an existing project, an existing project type, or a Git repository, and the agent creates the type for you.
or
Using command
# Allows every published module
raptor create project-type checkout-aws --description "Modules for checkout"
# Allows only the modules you list. Publish each one first
raptor create project-type checkout-aws --description "Modules for checkout" \
--resource-type service/aws --resource-type postgres/aws-rdsThe Praxis CLI starts the type's projects from an empty blueprint, and can't base a type on a project or a Git repository. --iac-tool picks Terraform or OpenTofu; OpenTofu is the default.
New to the CLI? Install it first.
- Go to Ops Center and open Project Type, then click Create Project Type.
- Basic information: enter a Name and an optional Description.
- Source configuration: choose where the type starts from.
- Existing Project: pick a project whose blueprint becomes the base. Its Git configuration is inherited.
- Existing Project Type: pick another type to derive from. Its Git configuration is inherited from that type's underlying project.
- Custom Git Linking: point at a repository directly (Git account, repository URL, Git ref, and relative path).
- Infrastructure settings: choose the IaC Tool (Terraform or OpenTofu) and its version. Projects of this type can only use modules that tool supports.
- Click Create.
Interactive walkthrough
Once the type exists, map the modules projects of that type can use.
To limit a project type to modules you wrote, see Bring your own modules.
Bring your own modules
Upload and publish Facets modules you wrote with the Praxis CLI, register their output types, and optionally create a project type that limits projects to them.
Modules
What a Facets module is, why it is shaped as an API, and the anatomy of a facets.yaml: types, spec, inputs, and outputs.