github cloudposse/atmos v1.36.0

latest releases: v1.72.0, v1.71.0, v1.70.0...
11 months ago

what

  • Add timeout parameter to atmos validate component command
  • Add timeout parameter to settings.validation section in the stack config
  • Update docs

why

  • If validation is configured for a component, Atmos executes the configured OPA Rego policies. If a policy is misconfigured (e.g. invalid Rego syntax or import), the validation can take a long time and eventually fail. Use the --timeout parameter to specify the required timeout

  • The timeout (in seconds) can be specified on the command line:

atmos validate component infra/vpc -s tenant1-ue2-dev --timeout 15

Or it can be specified in the YAML config in the settings.validation section

components:
  terraform:
    infra/vpc:
      metadata:
        component: infra/vpc
      settings:
        # Validation
        # Supports JSON Schema and OPA policies
        # All validation steps must succeed to allow the component to be provisioned
        validation:
          check-infra-vpc-component-config-with-opa-policy:
            schema_type: opa
            # 'schema_path' can be an absolute path or a path relative to 'schemas.opa.base_path' defined in `atmos.yaml`
            schema_path: validate-infra-vpc-component.rego
            description: Check 'infra/vpc' component configuration using OPA policy
            # Validation timeout in seconds
            timeout: 10

Don't miss a new atmos release

NewReleases is sending notifications on new releases.