Attach a Policy Pack

In this guide, you will attach a policy pack to a resource in your Guardrails workspace. Attaching a pack applies all of its policy settings to the target resource and every descendant beneath it in the hierarchy. This is how you activate a policy pack: until it's attached, its settings don't affect anything.

Prerequisites

Step 1: Open the Resources Tab

Navigate to Policies > Policy Packs and click the policy pack you want to attach. Select the Resources tab. It lists the resources this pack is currently attached to, with Attach Resource and Detach Resource buttons in the top-right corner.

The policy pack Resources tab with no attachments and the Attach Resource button

Step 2: Open the Attach Dialog

Click Attach Resource. The Attach Policy Pack dialog opens, showing the pack name and a Resource picker.

The Attach Policy Pack dialog with the pack name and an empty Resource picker

Step 3: Search and Select a Resource

Click the Resource picker and type the name or identifier of the resource you want to attach the pack to. The list filters as you type, showing matching resources from across your workspace hierarchy. Select the resource you want.

You can attach to any of these resource types:

Resource TypeEffect
Workspace rootPack applies to every account and resource in the entire workspace.
Folder or OUPack applies to all accounts and resources inside it, including nested folders.
Organization (AWS) or Tenant (Azure)Pack applies to all member accounts or subscriptions.
Account or SubscriptionPack applies to that single cloud account and its resources.

The Attach Policy Pack dialog showing Retail Banking search results in the Resource picker

Step 4: Attach the Resource

Click Attach. Guardrails creates the attachment and begins evaluating the pack's policy settings against the target resource and its descendants.

Step 5: Verify the Attachment

The Resources tab now shows the attached resource, and the resource count in the pack header increases. Depending on the number of resources in scope, it may take a few moments for the pack's policies to fully propagate.

The Resources tab showing the Retail Banking folder attached to the pack

How Attachments Work

Understanding a few key behaviors will help you design your policy pack strategy:

Scope inheritance. When you attach a pack to a folder, every account and resource inside that folder inherits the pack's settings. If you later move an account into the folder, it picks up the pack automatically. If you move an account out, the pack no longer applies to it.

Multiple packs on the same resource. You can attach several policy packs to the same resource. This is common: you might have one pack for data retention, another for encryption, and a third for access controls, all attached to the same production folder.

Precedence when packs conflict. When two or more packs set the same policy type on overlapping resources, the pack attached closest to the resource wins. For example, a pack attached directly to an account overrides a pack attached to the account's parent folder for any policies they have in common. If two packs are attached at the same level, the most recently attached pack takes precedence.

Multiple attachments per pack. A single pack can be attached to multiple resources. This is the primary benefit of packs: define a set of policies once, then apply them wherever they're needed.

Troubleshooting

IssueSolution
Resource not found in the pickerVerify the resource name or identifier. The resource must already be imported into your Guardrails workspace.
Attach button is disabledMake sure you've selected a resource in the dialog.
Pack is attached but policies aren't taking effectCheck the Policies tab to confirm the pack has settings defined. A pack with zero settings won't change anything even when attached.
Controls are still in the old state after attachingAllow a few minutes for Guardrails to evaluate the new policies. Check the Activity tab on the policy pack for progress.
Further assistanceOpen a Support Ticket

Next Steps