Governing AWS
Turbot Guardrails provides deep integration with AWS through dozens of mods covering hundreds of resource types. This section covers everything you need to set up and manage AWS governance in your workspace, from connecting your first account through to configuring real-time events, permissions, and services.
Getting Connected
The recommended path is to connect your AWS Organization, which discovers all member accounts automatically and gives you granular control over which accounts to govern and at what level.
| Guide | Description |
|---|---|
| Connect an AWS Organization | Recommended. Connect your organization, choose discovery levels, deploy IAM roles to member accounts via StackSet, and enable resource-level governance. Covers the complete flow from initial connection through to verification. |
| Connect an Individual Account | Import a single standalone AWS account directly. Use this for accounts not managed through an AWS Organization. |
| Connect a GovCloud or China Account | Import accounts in the aws-us-gov or aws-cn partitions, which require IAM access key pairs. |
[!TIP] When connecting via an organization, you choose a discovery level for each account during the wizard:
- Account Only: metadata and organization-level policies (SCPs). No resource discovery. No IAM role needed in member accounts.
- All Resources: full resource discovery and runtime governance. Requires an IAM role deployed via CloudFormation StackSet.
You can import accounts in All Resources mode during the initial organization connection, or start with Account Only and upgrade individual accounts later.
Real-Time Events
After connecting accounts, configure how Guardrails receives change notifications from AWS. You have three options. Choose one:
| Guide | Description |
|---|---|
| Real-Time Events Overview | Understand the three options and choose the right one for your environment. |
| Event Poller | The simplest option. Guardrails periodically polls CloudTrail for changes. Higher latency and limited scalability, but zero AWS infrastructure required. |
| Global Event Handlers | Recommended. Real-time event delivery via EventBridge rules forwarded to a single primary region. Fast, scalable, and requires fewer AWS resources than regional handlers. |
| Regional Event Handlers | The original real-time mechanism. Deploys EventBridge rules, SNS topics, and subscriptions in every region. Superseded by Global Event Handlers. |
| Migrate to Global Event Handlers | Move from regional to global event handlers. |
Configuration
| Guide | Description |
|---|---|
| Enabling Services | Enable AWS services for governance. Each service must be explicitly enabled before Guardrails discovers its resources. |
| Managing Permissions | Configure how Guardrails manages AWS IAM permissions: Role Mode, User Mode, lockdown, and boundary policies. |
| User Mode | Use IAM users and groups instead of roles for Guardrails-managed permissions. |
Integration and Lifecycle
| Guide | Description |
|---|---|
| Security Hub Integration | Stream Guardrails control findings to AWS Security Hub. |
| Decommission an Account | Safely disconnect an AWS account by removing Guardrails infrastructure and deleting the connection. |