Recently we announced the launch of Coherence 2.0, powered by the first Infrastructure-as-Code Framework, CNC. In this post we’ll go deeper into explaining with CNC is and what it solves for developers.
Over the last ten years Infrastructure-as-Code (IaC) has become a foundation of the DevOps movement - a way to define in code the resources that your application needs in order to run in the cloud. That said, managing IaC and using it to deploy different environments has a few key challenges:
As a result a category of tools we’re calling “platform orchestrator” emerged, which abstracted away the IaC. The challenge with the orchestrator is that it adds a layer of centralization that might have ok failure modes but ultimately becomes a bottleneck to creativity as applications scale.
Instead of fully abstracting IaC, we want to give developers and platform teams a way to write better IaC. That’s what the framework enables. Platform orchestrator is like going from app code to no-code. Framework is like going from writing your own webserver to using Rails or next.js.
Our vision for CNC is an IaC templating engine that is configurable, customizable, open source, with a developer native experience.
CNC is open source and GPL licensed, you can use it freely. With the right deployment reference architectures built in, it will be useful for even small hobby projects. And the free availability of the core components with no limits on use means that larger teams can integrate it into their more complex toolchains without limits. We know this will only happen if the framework provides value, but we’d love to see a community emerge and offer choices of different deployment variations as well as providers. Because you can see exactly how it all works, you can also always customize it for just your team too, using simple override files in your own repo. Coherence is going to support this effort as much as we can.
Provision: Uses terraform to create, manage, and dismantle cloud resources, ensuring each environment is crafted to fit its specific purpose.
Build: Assembles the necessary deployment artifacts for each environment, from docker containers to static assets for web applications.
Deploy: Seamlessly updates infrastructure to deploy new artifacts, such as modifying k8s manifests or updating ECS services.
Toolbox: A toolbox is a managed shell against a cnc-managed environment, making it easy to get a REPL or run database migrations, for example
Experience cnc in just a few minutes: install and see for yourself the power of cnc in under 5 minutes without needing any cloud permissions or incurring any costs.
Rapid Deployment: Have your first environment up and running in less than 15 minutes, demonstrating the straightforward power of cnc.
cnc is designed to be a powertool that empowers you to build and manage your infrastructure with the same attention to detail and creativity that you bring to your code. Just like web devs use frameworks to build better products, with cnc, you gain the freedom to implement your vision precisely as intended, making each project not only functional but finely tuned to your standards.
Intall cnc from the PyPI Python Package Index. For example, using pip
:
You can make a new directory, nothing but the following 2 files is needed by cnc. Save as cnc.yml
:
Save as environments.yml
:
cnc
has robust environment configuration options, including support for environment variables from cloud secrets, terraform outputs, or aliasing from other variables. Read more about configuration here.
All this will do is manipulate text files in your /tmp
directory and won't actually touch anything in your code or cloud. It's the best wayt to get to Aha! quickly before diving in deeper.
Add a 2nd environment (e.g. dev2
) to the environments.yml
and run the commands again, see the power of the framework!
Access full documentation and in-depth tutorials here.
- Issues: Report bugs or suggest features via GitHub Issues.
- Support: For direct support, contact our team at cnc@withcoherence.com.
Interested in contributing to CNC? Check out our Developers Getting Started guide for guidelines and project setup instructions.