atmos validate component
purpose
Use this command to validate an atmos component in a Stack using JSON Schema and OPA policies.
Usage
Execute the validate component command like this:
atmos validate component <component> -s <stack> [options]
This command validates an atmos component in a stack using JSON Schema and OPA policies.
tip
Run atmos validate component --help to see all the available options
Examples
atmos validate component infra/vpc -s tenant1-ue2-dev
atmos validate component infra/vpc -s tenant1-ue2-dev --schema-path validate-infra-vpc-component.json --schema-type jsonschema
atmos validate component infra/vpc -s tenant1-ue2-dev --schema-path validate-infra-vpc-component.rego --schema-type opa
Arguments
| Argument | Description | Required |
|---|---|---|
component | atmos component | yes |
Flags
| Flag | Description | Alias | Required |
|---|---|---|---|
--stack | atmos stack | -s | yes |
--schema-path | Path to the schema file. Can be an absolute path or a path relative to schemas.jsonschema.base_pathand schemas.opa.base_path defined in atmos.yaml | no | |
--schema-type | Schema type: jsonschema or opa | no |