ArchLex
GitHubGitHub
  • Introduction
  • Getting Started
    • Language Specification
    • Public API
    • AWS Semantics
    • GCP Semantics
    • Kubernetes Semantics
    • Layout & Rendering
    • Playground
    • Use with AI agents
    • Remote MCP Server
    • Cloudflare Pack
    • Relationship Types
    • Dynamic CDN Icons
    • Share a diagram
    • System Architecture
    • Contribution Guide
    • Error System Overview

    • AL-PARSE-001
    • AL-PARSE-002
    • AL-PARSE-MISSING-BRACE
    • AL-PARSE-MISSING-ENDPOINT
    • AL-SEM-EMPTY-GRAPH
    • AL-SEM-UNKNOWN-RELATIONSHIP
    • AL-SEM-UNKNOWN-RESOURCE
    • AL-STRUCT-CONFLICTING-LABEL
    • AL-STRUCT-DUPLICATE-DIRECTIVE
    • AL-STRUCT-DUPLICATE-ID
    • AL-STRUCT-INVALID-DIRECTIVE
    • AL-STRUCT-LATE-DIRECTIVE
    • Diagnostic Reference

On This Page

  • Description
  • Remediation
  • Examples
  • Invalid
  • Valid
Question? Give us feedback →Edit this page
Error ReferenceAL-STRUCT-LATE-DIRECTIVE

AL-STRUCT-LATE-DIRECTIVE

Severity: error
Category: structural

Description

Directive ’${directiveName}’ must appear before all resource and relationship declarations

Remediation

Move ’${directiveName}’ directive to the top of the file, before any resources or relationships.

Examples

Invalid

lambda -> rds
provider: aws

Valid

provider: aws
lambda -> rds

← Back to Error Codes

AL-STRUCT-INVALID-DIRECTIVEDiagnostic Reference

2026 © ArchLex.