Architecture as Code (AasC) is an approach where software architecture is continuously defined, managed, and evolved through a machine-readable, version-controlled code-base.
It involves representing architectural decisions, constraints, and structures in version-controlled files (e.g., YAML or JSON), which allows for automated validation, consistency checks, and integration into CI/CD pipelines.
This practice ensures alignment between design and implementation by directly embedding prescriptive architectural elements, such as structure, rules, and constraints, within the code.
Leveraging automation and development practices, AasC supports the continuous evolution of architecture and the generation of up-to-date architectural artifacts throughout the software lifecycle.
By integrating familiar tools and emphasizing accessibility, AasC fosters active engagement from developers and stakeholders, making architectural practices both adaptable and collaborative.
Source: Architecture as Code – Bucaioni, Di Salle, Iovino, Pelliccione, Raimondi (2023) - Malardalen University (Sweden), Gran Sasso Science Institute (Italy)