Knowledge is Power

Sitewide Search

Search Bare Metal Cyber

Search exact control and technique identifiers, Cyber Wiki articles, framework records, playbooks, books, podcasts, Academy courses, individual lessons, and BMC Cyber Challenge activities.

Complete course · Domain 1 · Cloud Concepts · S01E26

Automation as a Control Against Inconsistency

A city permit office rebuilds the same test application repeatedly, but each environment ends up with slightly different network permissions and dependencies. A routine software update becomes hard to trust because nobody can explain which configuration is authoritative. This le…

AWS Certified Cloud Practitioner Transcript available August 30, 2025
Lesson26

Listen Now

Lesson Focus

What this lesson covers

A city permit office rebuilds the same test application repeatedly, but each environment ends up with slightly different network permissions and dependencies. A routine software update becomes hard to trust because nobody can explain which configuration is authoritative. This lesson explores how automation and infrastructure as code address that problem by making intended resources and relationships repeatable, reviewable, and easier to manage without assuming that automation itself produces correct results.

Follow the office as it moves from informal instructions to a controlled infrastructure definition, uses AWS CloudFormation to manage stacks, and evaluates proposed changes before deploying them. You'll hear why change sets help reveal potentially disruptive updates, why configuration drift requires investigation, and how test environments should be retired without losing important data. The lesson also distinguishes infrastructure provisioning from Auto Scaling, managed services, application testing, security approval, and cost controls. The goal is a reliable process that staff can explain and improve, not simply faster resource creation. This episode is produced by baremetalcyber.com.

Companion Books

Reinforce this lesson with the course books.

Use the study guide to organize the ideas from the audio lesson, then use the flashcards book for active recall and rapid review.

Read the transcript1,908 words · about 10 minutes

The city of Bellford runs a small permit office. It approves street closures, temporary outdoor markets, and construction work. The office uses an application that must be tested whenever a new regulation changes its approval rules. A contractor creates a test environment one month. An employee builds another three months later. Both environments are supposed to resemble production. Yet the second one allows more network access than the first, and nobody remembers who changed the rule.

The problem is not that the city lacks a powerful cloud service. Its people are recreating the same work from memory and informal instructions. Each time someone builds a test environment, a series of small decisions can move away from the approved design. Over time the organization pays for troubleshooting differences it cannot explain. A change that appears to work in testing might fail in production because the two environments were never truly equivalent.

Automation can help by turning repeated operations into predictable procedures. Infrastructure as code takes that idea further. Instead of describing the desired environment only in conversations or screenshots, a team records the intended infrastructure in a machine-readable definition. The definition can be reviewed, kept under version control, and used to create resources consistently. At this level, the important question is what that changes for the organization, not how to type the configuration.

For a later study session, the Bare Metal Cyber AWS Certified Cloud Practitioner study guide is useful for separating automation from the cloud services that carry it out. As you review, explain how a consistent definition helps a team repeat a design and why reviewing that definition still requires human judgment. Nothing in this lesson requires you to write a template while listening.

In Bellford, the application needs an appropriate network, compute resources, storage, access permissions, and monitoring. Those parts must work together. If one person builds the network and another remembers the security settings differently, the application may behave differently across environments. A repeatable definition can describe the approved relationship among those resources. A change to the environment then becomes a proposed change to a reviewed definition rather than a private adjustment that depends on one person's memory.

AWS CloudFormation is one service that can turn infrastructure definitions into running resources. A CloudFormation template describes resources and their intended configuration. CloudFormation uses that template to provision and manage a collection of resources called a stack. The city can use an approved template as the basis for more than one test environment. A stack makes the related resources manageable together, instead of requiring an employee to remember each separate creation step.

This does not make every test environment identical in every possible respect. They may use different sizes, names, or controlled settings because development and production have different demands. The useful property is that those differences are intentional and visible. A small test environment can use a cheaper compute size while retaining the approved security approach. Without that distinction, standardization can become an excuse to copy expensive production capacity into places that do not need it.

Bellford's finance manager notices another benefit. In the old process, a test server often remained running after a project finished. Nobody was certain who owned it, and deleting it seemed risky because no one knew what other resources depended on it. When an environment is described and managed as a set of related resources, the team can establish its owner, its reason for existing, and a controlled retirement process. It still must check for persistent data and resources that require special treatment, but it has a better starting point for managing waste.

Repeatability also changes the cost of recovery. Suppose an employee accidentally deletes a temporary environment. Rebuilding it manually could take days because many small settings were never documented. A maintained infrastructure definition gives the team a reliable record of what was intended. Recreating it can be faster, provided the organization has separately protected any important data and understands the dependencies. Infrastructure as code can recreate the environment. It does not automatically recreate deleted business records.

There is an important difference between defining infrastructure and operating an application. CloudFormation can provision an approved server and networking arrangement. It does not guarantee that the permit application contains correct approval rules, that its database holds valid records, or that a software update produces the right result. The city still needs application testing, change approval, monitoring, backup, and incident response. Automation can make an incorrect deployment repeatable just as efficiently as a correct one.

Consider the original network-access mistake. If the overly broad rule is copied into a template, every new environment could inherit it. The defect might spread faster than it would through a manual process because people trust automated work to be consistent. That is why review belongs before execution. The city needs agreed security requirements, peer review of meaningful changes, and tests that can detect an unauthorized expansion of access. Consistency is useful only when the baseline is worth repeating.

The same rule applies to speed. A team might reduce an environment build from a week to an hour. That can shorten the time needed to test a regulatory change. It also reduces the number of manual handoffs and allows teams to experiment without paying for infrastructure that is no longer needed. But if the approval process is slow or the application team cannot test the new regulation, faster provisioning may not improve the complete delivery cycle. Cloud economics is about removing real constraints, not merely accelerating a single step.

The city adopts a practical change process. A developer proposes a revision to the approved infrastructure definition. Another person examines whether the revision changes network exposure, storage protection, cost, or resource replacement behavior. The team tests the change in an appropriate environment, confirms that the permit application works, and then authorizes the deployment. A version history records what was intended at each stage. If a later change causes a problem, the team has evidence to investigate rather than relying on guesswork.

At this point the Bare Metal Cyber AWS Certified Cloud Practitioner flashcards can be a useful follow-up. Try describing, in your own words, why a reviewed infrastructure definition reduces inconsistent environments but cannot guarantee good security or correct application behavior. That distinction is more valuable than memorizing the name of every CloudFormation feature.

CloudFormation change sets help make one part of that review more concrete. A change set can show the effects CloudFormation expects when an existing stack is updated. It can identify resources that might be added, modified, or replaced. The team can inspect that expected impact before choosing to execute the update. This is especially useful when the city has a database that must not disappear during a routine network change. The preview is an opportunity to catch a dangerous replacement before it occurs.

A preview is still an estimate of the intended infrastructure change, not proof that the update will succeed or that the application will remain healthy. Actual service conditions, resource dependencies, quotas, and application behavior can create failures. Bellford still needs deployment checks and an appropriate recovery plan. It should know which resources contain valuable data and what would happen if a change were rolled back or interrupted.

Now imagine an employee responding to an urgent production problem. They temporarily widen a network rule outside the normal deployment process so the permit system can reach a necessary service. The immediate interruption ends, but the approved definition still specifies the narrower rule. The actual environment and its recorded design are different. Infrastructure practitioners call that difference configuration drift. Drift matters because a later automated deployment may behave unexpectedly when the live environment no longer matches the intended one.

CloudFormation offers drift detection for supported resources and properties. It helps teams identify certain changes made outside the managed definition. Not every property is covered, and seeing drift does not explain whether a change was malicious, accidental, or a justified emergency response. In Bellford's case, the team should investigate the temporary access rule, decide what the approved state ought to be, and reconcile the actual configuration through a controlled process. Blindly reverting every emergency change could cause another outage. Blindly accepting every deviation could make the documented design meaningless.

Notice how this connects operational excellence with cloud economics. When a configuration is traceable, staff can spend less time finding differences between environments. New colleagues can inspect approved definitions instead of reconstructing undocumented conventions. Security reviews become easier to repeat. A team may bring an application online faster after a disruption. These gains are not guaranteed by CloudFormation itself. They come from pairing a repeatable tool with competent ownership, good review, and realistic recovery planning.

Automation should also be distinguished from elasticity. Amazon EC2 Auto Scaling can adjust the number of instances in response to demand or maintain a desired fleet. That helps an existing workload meet changes in traffic. Infrastructure as code defines and manages the resources and relationships from which an environment is built. They can be used together, but solving an inconsistent build process is different from solving a traffic spike. Increasing the number of servers would not make Bellford's access rules more predictable.

Another distinction concerns managed services. The city may choose a managed database to reduce the operating work associated with backups, software maintenance, and infrastructure management. That decision changes the responsibilities it retains. Infrastructure as code can describe the selected managed resource, but it is not itself the managed database. The city could use automated definitions with virtual servers, databases, storage, or a combination of services. It chooses the service based on the work, then chooses how to deploy and manage that service consistently.

Bellford also has several departments with different access responsibilities. A published definition does not replace identity authorization or organizational governance. People and deployment systems still need permission to create resources. Their roles should be limited to the actions required for approved changes. Approval and execution can be separated so that one person cannot quietly alter sensitive infrastructure without appropriate oversight. An automated deployment identity with excessive privileges can make the effects of a mistake far wider than they need to be.

And automation does not mean configuration changes are always free. A new stack may create running compute, storage, public network addresses, data transfers, or other billable resources. Repeated deployment can multiply those charges when teams forget to retire test environments. Cost controls need ownership, budgets, sensible defaults, and review of the resources being created. A template that builds ten unused servers has not optimized cloud spending simply because it is elegant and repeatable.

Bellford's next permit-rule change goes differently. The team starts from an approved infrastructure definition. It makes the intended change visible, reviews access and resource effects, tests the application, and tracks the deployment. When testing ends, the temporary resources are retired according to a documented procedure. The permit office has fewer mystery differences between environments, and its staff can explain what changed when a problem occurs.

The broader lesson is that cloud automation reduces the cost of repeating work only when the repeated work is sound. Infrastructure as code makes infrastructure decisions inspectable, portable within their supported constraints, and more consistent across environments. Change review catches some foreseeable risks, drift checks reveal some unapproved differences, and operational testing determines whether the application actually works. Taken together, those practices make faster cloud delivery a controlled business capability rather than an exercise in generating more resources.