Thursday, October 29, 2026
HomeCloud ComputingDeveloper-Led Community Automation Doesn’t Need to Be Scary

Developer-Led Community Automation Doesn’t Need to Be Scary

[ad_1]

As practitioners of community automation, we typically like to search out methods to lower the mean-time-to-delivery (MTTD) of a community change, and accomplish that in a manner that ensures a dependable and steady configuration being utilized. Generally, these automated modifications are kicked off utilizing a self-service portal; typically based mostly on a periodic scanning of APIs; or typically simply as a part of an Infrastructure as Code (IaC)-based script being run in opposition to a number of targets. Nevertheless, any time these modifications have to be manually initiated, there’s a time period that exists between when the change is requested and when the change is definitely applied. That is fully depending on somebody “kicking off” the method.

In an ideal world, we’d need this time-to-delivery to be zero. The infrastructure would concentrate on purposes transferring on or off the community, and would implement the proper community coverage routinely. Sounds fairly far-fetched. However, it’s really potential utilizing some off the shelf instruments obtainable from HashiCorp, a number of configuration recordsdata, and a middleware binary.

Within the following state of affairs, we’ll be utilizing an API-enabled datacenter cloth, offered by Software Centric Infrastructure (ACI), because the goal infrastructure. This answer will trigger the infrastructure so as to add or take away purposes from an ACI endpoint safety group (ESG). Nevertheless, this transformation will not happen when the appliance host is dwell, however when the app itself is definitely functioning.

How Does It All Work?

Consul-Terraform-Sync (additionally known as Community Infrastructure Automation by HashiCorp) connects a number of completely different HashiCorp instruments in a manner that may drive automation inside a given community platform.

The automation is initiated when some utility or service is introduced on-line throughout the compute atmosphere hooked up to the community. It registers to Consul (HashiCorp’s service discovery and liveliness utility), one thing utility builders construct natively into their apps when Consul is in use throughout the community.  As soon as this utility is decided to be alive, info is gathered from Consul by a middleware binary – the Consul-Terraform-Sync utility.  This binary will feed the reported info from Consul and use it to create variables that may be referenced by a Terraform HCL file.  The resultant accomplished HCL is utilized utilizing Terraform (which is invoked by the middleware binary) to use the specified end-state to our goal. (On this case, outline the appliance as a part of an ESG).

Quinn ACI

Extra situations of the appliance will probably be added to the ESG routinely, so long as the appliance registers with Consul as a part of the identical service group.

Quinn ACI

 

Quinn ACI

Moreover, if an underlying course of supporting the appliance fails (e.g., the nginx course of supporting an internet utility) and the appliance can now not assist customers, this utility failure will probably be mirrored inside Consul, although the platform internet hosting the appliance (a server, container, and so forth) remains to be alive. These well being checks might be as easy or as advanced as required to totally take a look at the appliance’s availability. This offers utility builders full management over what constitutes a “working” app (and when the community modifications will happen to assist the app).

Quinn ACI

All people Wins

By creating event-driven automation, centered on the reachability and liveliness of purposes, the community can work on the velocity of the appliance developer. And, the consistency of every change is assured as a result of the automation is bounded and templated.

  • Community groups are joyful as a result of there is no such thing as a skill to introduce human error by guide configurations and utility improvement.
  • Operations groups are joyful as a result of “it’s now not the community.”

The top outcome – purposes are saved safe as they’re dynamically scaled throughout the infrastructure as wanted.

How Do I Get Began?

When you’d wish to play with the answer, both with your personal cloth or utilizing the ACI Reservable DevNet Sandbox, a code repository might be discovered within the CiscoDevNet GitHub group.  Lastly, for those who’d just like the in-depth particulars and wish to observe a prescriptive path, take a look at this HashiCorp Consul-Terraform-Sync with ACI and ESG Studying Lab.

Seeing actually is believing. So for you visible learners, I sat down with Matt and Kareem to document a Snack Minute video (under), and display how this automation and integration answer works.

Discover ways to use Consul-Terraform-Sync to Routinely Provision Infrastructure.

 

Study extra about Cisco Software Centric Infrastructure (ACI) programmability and developer sources. When you’re seeking to get began, or already utilizing Consul-Terraform-Sync and have a query, remember to drop me a remark under, or attain me on Twitter @qsnyder.  I’d love to listen to the way you’re utilizing this in your networks!


We’d love to listen to what you suppose. Ask a query or go away a remark under.
And keep related with Cisco DevNet on social!

LinkedIn | Twitter @CiscoDevNet | Fb |  Developer Video Channel

 

Share:



[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments