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
- Access to the Guardrails console with
Turbot/AdminorTurbot/Ownerpermissions. - An existing policy pack with at least one policy setting. See Create a Policy Pack and Modify a Policy Pack if you need to set one up first.
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.

Step 2: Open the Attach Dialog
Click Attach Resource. The Attach Policy Pack dialog opens, showing the pack name and a 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 Type | Effect |
|---|---|
| Workspace root | Pack applies to every account and resource in the entire workspace. |
| Folder or OU | Pack 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 Subscription | Pack applies to that single cloud account and its resources. |

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.

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
| Issue | Solution |
|---|---|
| Resource not found in the picker | Verify the resource name or identifier. The resource must already be imported into your Guardrails workspace. |
| Attach button is disabled | Make sure you've selected a resource in the dialog. |
| Pack is attached but policies aren't taking effect | Check 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 attaching | Allow a few minutes for Guardrails to evaluate the new policies. Check the Activity tab on the policy pack for progress. |
| Further assistance | Open a Support Ticket |
Next Steps
- Detach a Policy Pack: remove a pack from a resource when it's no longer needed.
- Modify a Policy Pack: add or change the policy settings in a pack.