1. Write scope as a requirement
A central policy does not automatically protect every resource the team has in mind. In Firewall Manager, account selection combines with resource types and tags. ALL and ANY represent different choices; tag matching uses key and value, and an omitted value is an empty string.
Translate the business request into examples inside and outside scope. Include a new account, a missing tag, and a resource changing OU or tag value. Report expected and observed populations.
This comparison helps identify accidental exclusions before the team uses a compliance percentage as proof of complete coverage. Scope matrix: all resources have the approved type. A is in Production with env=prod and protected=yes; B is in the same OU but only has env=prod; C is in Sandbox with both; D is in Production with empty protected.
With ALL and Production scope, only A qualifies. B fails the tag, C the account and D the value. Switching to ANY includes more resources but changes the contract; it is not a neutral count correction.
2. Define who maintains state
If Terraform creates a rule and Firewall Manager removes it, two tools enforce different intentions. Increasing retries does not resolve ownership. Align configuration or define mutually exclusive scopes, using bounded approved exceptions where necessary.
Leaving scope also does not mean every protection disappears: by default, an ALB can retain its web ACL when automatic removal is not selected. The migration plan must state which association remains, who manages it, and how state is confirmed after both tools run their cycles.
During a short window, a defined rollback or bounded correction is preferable to a global shutdown without inventory. Record operational debt when handover is phased. Ownership workshop: ten groups split into eight centrally managed and two with Terraform exceptions.
Excluding all ten resolves contention at the cost of required protection for eight. Define exclusive 8+2 scopes, remove competing configuration and observe all after both managers run. In another exception, only SG-A may leave temporarily for two hours; SG-B/SG-C remain centrally managed.
Excluding env=prod when that tag covers A/B/C improperly expands scope. A first positive test after Terraform does not yet establish stability after Firewall Manager. Assign who removes or renews the exception before its deadline: a tag does not automatically expire because a plan contains a date.
3. Read the SCP path
For an action to pass the SCP boundary, it needs Allow at every level along root, OUs, and account, without an applicable Deny. Multiple Allows can combine within one level; a broad Allow can defeat the intent of a shorter allowlist at that level.
Across levels, a lower Allow neither fills an upper omission nor bypasses inherited Deny. Draw the account’s effective path before changing IAM. A delegated-administrator member account remains subject to applicable SCPs; delegation does not make it the management account.
Rehearsal should include operational dependencies such as evidence collection and recovery so a security policy does not interrupt response capability itself. SCP workshop: at root, R1 allows ec2:DescribeInstances and R2 allows s3:GetObject and s3:DeleteObject.
The OU allows s3:* and denies DeleteObject; the account retains FullAWSAccess. For a regular member-account role, combine the three root Allows, intersect with the OU and apply Deny: only GetObject passes the boundary. DescribeInstances is not allowed at the OU; DeleteObject is explicitly denied.
IAM and other controls still follow. Do not present this calculation as a complete policy simulator with conditions, resources and principal exceptions. Second variant: GetObject and Decrypt are required, root and account allow both, Outer OU omits Decrypt and Inner OU allows both but denies Decrypt.
Adding Decrypt only at Outer still leaves Inner Deny. Identify both blockers and address the exception at the effective levels, with approval and without removing out-of-scope restrictions.
4. Maintain assessment and evidence
A conformance pack is service-managed. Editing its underlying stack directly can create drift and rules that are difficult to remove; use the pack mechanism and investigate failures through status and events. Deleting the pack removes rules, remediations, and results, so required evidence must be preserved beforehand.
Deletion is asynchronous. If you suspend ResourceCompliance recording to reduce CIs during that operation, document the history gap and track restoration after completion. In reporting, the score is a proportion of rule-resource combinations: 18 out of 20 and 90 out of 100 are both 90%, but represent different populations.
Report denominator, scope, and concrete failures without presenting the number as legal certification. Distinguish normal maintenance from recovery of existing drift: dangling-rule documentation describes a specific procedure that can include deleting the stack, deleting the pack and requesting support cleanup with ARNs.
Preserve evidence, diagnose through events and approve effects first; do not generalize that exception to healthy packs. Retirement workshop: recording was suspended at 10:00 with a maximum 30-minute gap. HTTP200 at 10:01 does not prove completion; at 10:25 DELETE_IN_PROGRESS remains.
Twenty-five minutes have elapsed and five remain. Decide before the limit between restoring recording, accepting possible CIs, or explicitly approving an extension. Deletion may take an hour or more; do not promise completion without observed state or hide the actual gap.
Cohort workshop: old scope changes from 18/20 to 16/20; new scope adds 74/80. The total is (16+74)/(20+80)=90%, but the old subset fell ten points from 90% to 80%. New scope is at 92.5%.
Four old and six new combinations are noncompliant. A stable overall percentage hides regression in the retained population; identify combinations before inferring causes or individual transitions from totals.
5. Control new dispatch without inventing rollback
In incident response, Systems Manager Automation can apply a runbook to multiple targets. MaxConcurrency limits simultaneous work and MaxErrors controls when new targets stop launching after errors. With zero, the first received failure stops new dispatch; it does not prevent starting the first target.
Executions already running can continue and fail. This lesson’s local model separates fleet completion from stopped dispatch to make that distinction visible. It does not simulate the AWS scheduler or calculate error percentages.
In production, inspect actual states before repeating, cancelling, or declaring recovery. An observation taking longer than expected is not evidence that the operation ended. Error workshop: with MaxErrors=0, A has failed and B/C are already Running; no other targets have started.
Stopping new dispatch does not prevent B/C from also failing. The final total can be one, two or three failures; three is the scenario’s possible maximum, not an observed result. Inspect states and effects before retrying.
The local model accepts an explicit state list; an empty list, unknown state or Pending does not establish termination. Even closed([Success,Failed]) being true establishes only supplied terminal states, never fleet success.
6. Pin execution and prepare closure
A numeric DocumentVersion allows execution of the rehearsed revision. DEFAULT and LATEST can point to a different revision when the window begins. Also record parameters, targets, role, and per-location controls: TargetsMaxConcurrency and TargetsMaxErrors take precedence over general values when supplied.
Closure needs per-target evidence, produced effects, failures, recovery, and operations still live. Communicate the difference between stopping new dispatch and completing containment to management. When targets remain pending, retain an owner and the next status checkpoint.
End the retrospective with a concrete runbook or acceptance-criteria change and a rehearsal date. The goal is for the next team to operate the control without depending on informal memory. Precedence workshop: the contract requires at most two targets and stopping on the first received failure at each location.
General values are 2/0, R1 supplies 8/3 and R2 supplies 1/0. Specific values prevail: correct R1 to 2/0 and retain R2 at 1/0. Three tolerated errors stop new dispatch on the fourth failure, not the first.
Closure workshop: eight approved targets; A/B/D/E Success, C Failed, F Cancelled and G/H undispatched. There are six terminal executions, four Success states and two targets without execution. Report 6/8 and 4/8 with these meanings; confirm effects and functional validation before acceptance, especially when D/E tests are missing.
The model receives Pending for G/H in the full inventory and must return false; artificially excluding these targets changes the denominator. Approval variant: the contract fixes version 7, targets A/B and parameter Operation=contain in a fictional runbook.
$DEFAULT now points to 8 and $LATEST to 9. Using $DEFAULT changes the revision; pinning 7 but including C changes scope. Only the proposal preserving version, targets and parameters matches approval.
Retain the effective request and execution ID; a start response does not prove effects were accepted.
# Original fictional closure model, not an AWS scheduler or cancellation tool.
# No credentials, network calls, or AWS changes.
TERMINAL = {'Success', 'Failed', 'Cancelled', 'TimedOut'}
def closed(states):
if not isinstance(states, list) or any(not isinstance(s, str) or not s.strip() for s in states):
raise ValueError("a list of nonblank state strings is required")
# Unknown states remain unresolved. This is not a complete AWS state machine.
return bool(states) and all(s in TERMINAL for s in states)
assert closed(['Success','Failed']) is True
assert closed(['Success','Running']) is False
assert closed(['Pending']) is False
assert closed([]) is False
assert closed(['Cancelled','TimedOut']) is True
print('five closure-state cases passed; no automation was cancelled')
started = ['Success', 'Success', 'Failed', 'Success', 'Success', 'Cancelled']
assert closed(started) is True
# Undispatched targets remain part of the approved fleet.
fleet = started + ['Pending', 'Pending']
assert closed(fleet) is False
assert fleet.count('Success') == 4
assert closed(['Unknown']) is False
print('six terminal executions do not establish acceptance of eight targets')
The dashboard window ends, but three targets are still executing containment actions.
Common pitfalls
Lower Allow as override; empty tags as wildcard; deleting a pack as archiving; stopped dispatch as rollback.
Related topics: Evidence and operational acceptance · Security and continuity
Accept a policy only when scope, effects, and operational limits are demonstrated.
References
- Firewall Manager policy scope · AWS documentation consulted 2026-10-12
- Firewall Manager security-group policies · AWS documentation consulted 2026-10-12
- SCP evaluation · AWS documentation consulted 2026-10-12
- Service control policies · AWS documentation consulted 2026-10-12
- DeleteConformancePack · AWS documentation consulted 2026-10-12
- Troubleshooting conformance packs · AWS documentation consulted 2026-10-12
- Conformance pack dashboard · AWS documentation consulted 2026-10-12
- StartAutomationExecution · AWS documentation consulted 2026-10-12
- Run automated operations at scale · AWS documentation consulted 2026-10-12
- SCS-C03 Security Foundations and Governance · SCS-C03
- SCS-C03 Incident Response · SCS-C03