Sumo Logic ahead of the pack
Read articleComplete visibility for DevSecOps
Reduce downtime and move from reactive to proactive monitoring.
Infrastructure-as-Code (IaC) refers to the increasingly common practice of provisioning and managing IT infrastructure using coding. The implementation of code as the control mechanism for IT infrastructure includes the use of software development techniques such as continuous integration, continuous delivery and version control. IaC requires three elements to function: resource pooling, software-defined intelligence, and a unified API.
IaC takes advantage of the API-driven model that underlies cloud services. Engineers can write software applications that directly interact with cloud-based infrastructures such as DNS servers, file servers, networks, and even virtual machines and containers. The ability to pass instructions to these infrastructure elements using APIs means that engineers can provision and manage IT infrastructure at scale using a code-based approach rather than manually configuring each virtualization instance. It is also an important feature of DevOps, as it provides additional automation that streamlines the code development and deployment process, drives continuous integration and reduces manual labor, enabling developers to focus more on their responsibilities in security and operations management.
IaC developed out of a need to standardize deployment environments for software development teams pursuing a continuous integration or continuous delivery model and following the DevOps paradigm. The practice evolved as a response to a repeatedly observed issue in the software release/deployment pipeline known as environmental drift.
Sometimes, the deployment environment is simply the developer's workstation. Other environments can include:
Production - the environment where end users can access the application. Deployment to the production environment means that customers can interact with the updates. Production is also sometimes called the "live" environment.
Staging - acts as a mirror of the production environment. Its purpose is to mimic the conditions of the production environment without actually being accessible to end-users. Staging environments enable developers to test the functioning of an application in a context similar to the production environment while still preventing users from interacting with any bugs. The staging environment may also be called the model or pre-production environment, or demo environment.
Testing - where interface testing is typically performed, and where a team of quality controllers determines whether the updates to the code should be accepted into the core application or further revised.
Integration - teams that are attempting to execute on continuous integration deploy new commits to the integration environment daily. Here, integration testing occurs to verify whether new commits can be integrated into the existing code base without causing errors.
Development - where individual developers can perform basic unit testing of small pieces of code, before its integration with the core application.
Developer teams must maintain the settings of individual deployment environments and ensure that a specific type of environment is configured in the same way each time it is used. Each deployment environment takes on a unique configuration that may be difficult to reproduce, and errors in setting up test environments can lead to inconsistent testing results.
IaC enables software developers working in DevOps to set up virtual deployment environments using scripts, removing the manual process of configuring environments and eliminating a significant potential source of error.
IaC has several use cases, including:
Deploying and automating resource and application configurations
Synchronize versions and update applications across a multi-cloud system
Deploy security policies
Deploy virtual networks
There are many IaC tools available to use. Some examples of infrastructure-as-code tools are:
Before the introduction of DevOps and the enhanced focus on automation technologies like IaC as a part of the software deployment cycle, software delivery was a tedious and wasteful process that required support from a variety of roles. A single deployment might require support from:
A system administrator, who would configure a physical server to mirror the production environment
A database administrator, who would set up a database to support the application testing process
A developer to build and deliver the code
A test team to manually conduct software testing on the delivered code
Only after going through all of these steps would a new piece of code be integrated into the live application and deployed into the production environment. This process requires several man-hours, a lot of human resources, and a significant level of expense. Automation is minimal and the application may still require additional rework if errors are discovered. Using infrastructure-as-code, developers can now complete all of the key tasks associated with software deployment independently.
The developer writes a special piece of code that will provide instructions to a virtualized machine, databases, testing and delivery tools and other infrastructure. This code will tell the virtual machine how to configure the environment according to exact specifications. When a new update is ready, the developer can run the code to automatically create a virtual test environment according to exact specifications.
IaC can be used to launch a new instance of a virtualized environment and configure it to perfectly mirror the production environment, even considering versioning and service packs. Automated testing tools can be implemented in place of a team of manual testers to conduct unit and integration tests on new code commits. Streamlining the process of releasing new code through automation is part of what makes it possible for DevOps teams to achieve continuous integration or continuous delivery.
DevOps is rapidly becoming the most important set of principles that governs how organizations choose to build, run and secure their applications.
Sumo Logic's analytics platform was purpose-built as an enabler for DevSecOps. Developers can use the platform to analyze user interaction with applications and make better decisions about what upcoming features and capabilities should be prioritized for development. From a security standpoint, Sumo Logic provides an integrated view of system and application logs from throughout the cloud environment, making it easier to correlate network events and investigate security threats in real-time.
Sumo Logic's operational analytics functionality can be used to monitor the security and stability of the IT environment and troubleshoot performance issues to ensure the maximum availability of applications and services for the business.
Reduce downtime and move from reactive to proactive monitoring.